You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGCF/MultiparticleCorrelations/Tasks/multiharmonic-correlations.cxx
+83-83Lines changed: 83 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,12 @@ using TrackSim = aod::McParticles::iterator;
43
43
// ...
44
44
45
45
// *) ROOT and C++ include's:
46
-
#include<iostream>
47
-
#include<cstring>
48
-
#include<TH1D.h>
49
46
#include<TGrid.h>
47
+
#include<TH1D.h>
50
48
#include<TSystem.h>
49
+
50
+
#include<cstring>
51
+
#include<iostream>
51
52
// ...
52
53
53
54
usingnamespacestd;
@@ -65,7 +66,6 @@ enum eProcess {
65
66
eProcess_N
66
67
};
67
68
68
-
69
69
enum eEventHistograms {
70
70
eVertexZ = 0,
71
71
ePt,
@@ -106,14 +106,14 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
106
106
structTaskConfiguration {
107
107
boolfProcess[eProcess_N] = {false}; // Set what to process. See enum eProcess for full description. Set via implicit variables within a PROCESS_SWITCH clause.
108
108
boolfDryRun = false; // book all histos and run without filling and calculating anything
109
-
} tc; // you have to prepend "tc." for all objects name in this group later in the code
109
+
} tc; // you have to prepend "tc." for all objects name in this group later in the code
110
110
111
111
// **) Particle histograms:
112
112
structParticleHistograms {
113
113
TList* fParticleHistogramsList = NULL; //!<! list to hold all control particle histograms
114
114
TH1F* fHistPt[2] = {NULL}; // pt distribution of a particle [ 0 = rec, 1 = sim ]
115
115
TH1F* fHistPhi[2] = {NULL};
116
-
TH1F* histWeights=NULL;
116
+
TH1F* histWeights = NULL;
117
117
} pc; // you have to prepend "pc." for all objects name in this group later in the code
118
118
119
119
structEventHistograms {
@@ -129,46 +129,47 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
@@ -241,25 +241,25 @@ struct MultiharmonicCorrelations { // this name is used in lower-case format to
241
241
242
242
// OK, we got the desired TList with efficiency corrections, after that we can use the common code for all 3 cases (local, AliEn, CCDB, that common code is below)
243
243
244
-
} else{
245
-
// this is the local case:
246
-
// Check if the external ROOT file exists at the specified path:
247
-
if (gSystem->AccessPathName(filePath, kFileExists)) {
LOGF(fatal, "\033[1;31m%s at line %d : this crash can happen if in the output file there is no list with weights for the current run number = %s\033[0m", __FUNCTION__, __LINE__ /*, tc.fRunNumber.Data()*/);
271
+
LOGF(fatal, "\033[1;31m%s at line %d : this crash can happen if in the output file there is no list with weights for the current run number = %s\033[0m", __FUNCTION__, __LINE__ /*, tc.fRunNumber.Data()*/);
272
272
}
273
273
}
274
274
275
275
} // end of else
276
276
277
277
// Here comes the common code for all three cases, where from "listWithRuns" you fetch the desired histogram with efficiency corrections:
0 commit comments