1 /** VERSION NUMBER 1.1 */
3 class AliAnalysisDataContainer;
4 class AliGammaConversionHistograms;
5 class AliAnalysisTaskGammaConversion;
7 // set this to a number if you want to analyze a set number of files
8 // if it is 0 it will analyze the files listed in the data list
9 Int_t kGCnumberOfFilesToAnalyze=0;
11 Bool_t kGCrunNeutralMeson = kTRUE;
12 Bool_t kGCrunJet = kFALSE;
13 Bool_t kGCrunChic = kFALSE;
15 /** ---------------------------------- define cuts here ------------------------------------*/
17 Int_t kGCpidOfNegativeTrack=11;
18 Int_t kGCpidOfPositiveTrack=-11;
20 Double_t kGCLineCutZRSlope = 0.662487;
21 Double_t kGCLineCutZValue = 7.;
23 Double_t kGCmaxRCut = 180.;
24 Double_t kGCetaCut = 1.2;
25 Double_t kGCptCut = 0.02;
26 Double_t kGCmaxZCut = 240.;
27 Double_t kGCchi2CutConversion = 20.;
28 Double_t kGCchi2CutMeson = 20.;
30 Double_t kGCxVertexCut = 0.;
31 Double_t kGCyVertexCut = 0.;
32 Double_t kGCzVertexCut = 0.;
34 Double_t kGCsigmaCutGammaMass=0.0001;
36 Bool_t kGCuseImprovedVertex = kTRUE;
38 // define masses of different particles, this will be used by the KF particle
39 // together with the width to set mass constraints. Units in GeV.
40 Double_t kGCelectronMass = 0.00051099892;
41 Double_t kGCgammaMass = 0.;
42 Double_t kGCpi0Mass = 0.1349766;
43 Double_t kGCetaMass = 0.54751;
45 // define the width constraint used by KF particle.
46 Double_t kGCgammaWidth = 0.01;
47 Double_t kGCpi0Width = 0.01;
48 Double_t kGCetaWidth = 0.01;
50 // define the probability of track being an electron
51 Double_t kGCprobElectron = 0.002;
53 Double_t kGCminOpeningAngleGhostCut = 0.01;
55 /** ----------------------------------end define cuts here----------------------------------*/
57 /** -------------------------------- Phi/R Mapping ---------------------------------------*/
58 Int_t kGCnPhiIndex = 8;
61 Double_t kGCminRadius = 0.;
62 Double_t kGCmaxRadius = 200.;
63 Double_t kGCminPhi = -TMath::Pi();
64 Double_t kGCmaxPhi = TMath::Pi();
65 /** ------------------------------- end Phi/R Mapping ------------------------------------*/
67 Bool_t kGCdoOwnXYZCalculation = kFALSE;
69 Bool_t fWriteStandardAOD =kFALSE;
71 /** ------------------- define which histograms to plot here --------------------------------*/
72 /** NB: to change the bin numbers, see below the histogram flags */
74 // NEUTRAL MESON PLOTS
75 Bool_t kGCplotMCConversionR = kTRUE;
76 Bool_t kGCplotMCConversionZR = kTRUE;
77 Bool_t kGCplotMCConversionXY = kTRUE;
78 Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
80 Bool_t kGCplotMCEEnergy = kTRUE;
81 Bool_t kGCplotMCEPt = kTRUE;
82 Bool_t kGCplotMCEEta = kTRUE;
83 Bool_t kGCplotMCEPhi = kTRUE;
85 Bool_t kGCplotMCPEnergy = kTRUE;
86 Bool_t kGCplotMCPPt = kTRUE;
87 Bool_t kGCplotMCPEta = kTRUE;
88 Bool_t kGCplotMCPPhi = kTRUE;
90 Bool_t kGCplotMCallGammaEnergy = kTRUE;
91 Bool_t kGCplotMCallGammaPt = kTRUE;
92 Bool_t kGCplotMCallGammaEta = kTRUE;
93 Bool_t kGCplotMCallGammaPhi = kTRUE;
94 Bool_t kGCplotMCallGammaRapid = kTRUE;
97 Bool_t kGCplotMCConvGammaEnergy = kTRUE;
98 Bool_t kGCplotMCConvGammaPt = kTRUE;
99 Bool_t kGCplotMCConvGammaEta = kTRUE;
100 Bool_t kGCplotMCConvGammaPhi = kTRUE;
101 Bool_t kGCplotMCConvGammaRapid = kTRUE;
102 Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
104 Bool_t kGCplotMCallDirectGammaEnergy = kTRUE;
105 Bool_t kGCplotMCallDirectGammaPt = kTRUE;
106 Bool_t kGCplotMCallDirectGammaEta = kTRUE;
107 Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
108 Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
110 Bool_t kGCplotMCConvDirectGammaEnergy = kTRUE;
111 Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
112 Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
113 Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
114 Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
116 Bool_t kGCplotMCMotherEta = kTRUE;
117 Bool_t kGCplotMCMotherRapid = kTRUE;
118 Bool_t kGCplotMCMotherPhi = kTRUE;
119 Bool_t kGCplotMCMotherPt = kTRUE;
120 Bool_t kGCplotMCMotherEnergy = kTRUE;
121 Bool_t kGCplotMCMotherMass = kTRUE;
122 Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
123 Bool_t kGCplotMCMotherR = kTRUE;
124 Bool_t kGCplotMCMotherZR = kTRUE;
125 Bool_t kGCplotMCMotherXY = kTRUE;
126 Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
127 Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
128 Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
129 Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
130 Bool_t kGCplotMCMotherSpectra = kTRUE;
132 Bool_t kGCplotMCPi0Eta = kTRUE;
133 Bool_t kGCplotMCPi0Rapid = kTRUE;
134 Bool_t kGCplotMCPi0Phi = kTRUE;
135 Bool_t kGCplotMCPi0Pt = kTRUE;
136 Bool_t kGCplotMCPi0Energy = kTRUE;
137 Bool_t kGCplotMCPi0Mass = kTRUE;
138 Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
139 Bool_t kGCplotMCPi0R = kTRUE;
140 Bool_t kGCplotMCPi0ZR = kTRUE;
141 Bool_t kGCplotMCPi0XY = kTRUE;
142 Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
143 Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
144 Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
145 Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
146 Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
148 Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
149 Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
150 Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
151 Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
152 Bool_t kGCplotMCPi0SecondaryEnergy = kTRUE;
153 Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
154 Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
155 Bool_t kGCplotMCPi0SecondaryR = kTRUE;
156 Bool_t kGCplotMCPi0SecondaryZR = kTRUE;
157 Bool_t kGCplotMCPi0SecondaryXY = kTRUE;
158 Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
159 Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
160 Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
161 Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
163 Bool_t kGCplotMCEtaEta = kTRUE;
164 Bool_t kGCplotMCEtaRapid = kTRUE;
165 Bool_t kGCplotMCEtaPhi = kTRUE;
166 Bool_t kGCplotMCEtaPt = kTRUE;
167 Bool_t kGCplotMCEtaEnergy = kTRUE;
168 Bool_t kGCplotMCEtaMass = kTRUE;
169 Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
170 Bool_t kGCplotMCEtaR = kTRUE;
171 Bool_t kGCplotMCEtaZR = kTRUE;
172 Bool_t kGCplotMCEtaXY = kTRUE;
173 Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
174 Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
175 Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
176 Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
177 Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
179 // Histograms from esd tracks
180 Bool_t kGCplotESDConversionR = kTRUE;
181 Bool_t kGCplotESDConversionZR = kTRUE;
182 Bool_t kGCplotESDConversionXY = kTRUE;
183 Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
185 Bool_t kGCplotESDEEnergy = kTRUE;
186 Bool_t kGCplotESDEPt = kTRUE;
187 Bool_t kGCplotESDEEta = kTRUE;
188 Bool_t kGCplotESDEPhi = kTRUE;
190 Bool_t kGCplotESDPEnergy = kTRUE;
191 Bool_t kGCplotESDPPt = kTRUE;
192 Bool_t kGCplotESDPEta = kTRUE;
193 Bool_t kGCplotESDPPhi = kTRUE;
195 Bool_t kGCplotESDConvGammaEnergy = kTRUE;
196 Bool_t kGCplotESDConvGammaPt = kTRUE;
197 Bool_t kGCplotESDConvGammaEta = kTRUE;
198 Bool_t kGCplotESDConvGammaPhi = kTRUE;
199 Bool_t kGCplotESDConvGammaMass = kTRUE;
200 Bool_t kGCplotESDConvGammaWidth = kTRUE;
201 Bool_t kGCplotESDConvGammaChi2 = kTRUE;
202 Bool_t kGCplotESDConvGammaNDF = kTRUE;
203 Bool_t kGCplotESDConvGammaRapid = kTRUE;
204 Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
205 Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
206 Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
208 Bool_t kGCplotESDTrueConvGammaEnergy = kTRUE;
209 Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
210 Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
211 Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
212 Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
213 Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
214 Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
215 Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
216 Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
217 Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
218 Bool_t kGCplotESDTrueConversionR = kTRUE;
219 Bool_t kGCplotESDTrueConversionZR = kTRUE;
220 Bool_t kGCplotESDTrueConversionXY = kTRUE;
221 Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
222 Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
223 Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
224 Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
225 Bool_t kGCplotESDTrueConversionMCZR = kTRUE;
226 Bool_t kGCplotESDTrueConversionMCXY = kTRUE;
228 Bool_t kGCplotESDNoCutConvGammaEnergy = kTRUE;
229 Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
230 Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
231 Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
232 Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
233 Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
234 Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
235 Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
236 Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
237 Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
238 Bool_t kGCplotESDNoCutConversionR = kTRUE;
239 Bool_t kGCplotESDNoCutConversionZR = kTRUE;
240 Bool_t kGCplotESDNoCutConversionXY = kTRUE;
241 Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
242 Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
243 Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
244 Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
245 Bool_t kGCplotESDNoCutConversionMCZR = kTRUE;
246 Bool_t kGCplotESDNoCutConversionMCXY = kTRUE;
248 Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
249 Bool_t kGCplotESDMotherEnergy = kTRUE;
250 Bool_t kGCplotESDMotherPt = kTRUE;
251 Bool_t kGCplotESDMotherEta = kTRUE;
252 Bool_t kGCplotESDMotherPhi = kTRUE;
253 Bool_t kGCplotESDMotherMass = kTRUE;
254 Bool_t kGCplotESDMotherR = kTRUE;
255 Bool_t kGCplotESDMotherZR = kTRUE;
256 Bool_t kGCplotESDMotherXY = kTRUE;
257 Bool_t kGCplotESDMotherRapid = kTRUE;
259 Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
260 Bool_t kGCplotESDBackgroundEnergy = kTRUE;
261 Bool_t kGCplotESDBackgroundPt = kTRUE;
262 Bool_t kGCplotESDBackgroundEta = kTRUE;
263 Bool_t kGCplotESDBackgroundPhi = kTRUE;
264 Bool_t kGCplotESDBackgroundMass = kTRUE;
265 Bool_t kGCplotESDBackgroundR = kTRUE;
266 Bool_t kGCplotESDBackgroundZR = kTRUE;
267 Bool_t kGCplotESDBackgroundXY = kTRUE;
268 Bool_t kGCplotESDBackgroundRapid = kTRUE;
270 Bool_t kGCplotMapping = kTRUE;
272 Bool_t kGCplotResolutiondPt = kTRUE;
273 Bool_t kGCplotResolutiondR = kTRUE;
274 Bool_t kGCplotResolutiondZ = kTRUE;
276 Bool_t kGCplotResolutiondRdPt = kTRUE;
278 Bool_t kGCplotResolutionMCPt = kTRUE;
279 Bool_t kGCplotResolutionMCR = kTRUE;
280 Bool_t kGCplotResolutionMCZ = kTRUE;
282 Bool_t kGCplotResolutionESDPt = kTRUE;
283 Bool_t kGCplotResolutionESDR = kTRUE;
284 Bool_t kGCplotResolutionESDZ = kTRUE;
286 Bool_t kGCplotESDNumberOfV0s = kTRUE;
287 Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
290 Bool_t kGCplotESDCutGetOnFly = kTRUE;
291 Bool_t kGCplotESDCutNContributors = kTRUE;
292 Bool_t kGCplotESDCutLikeSign = kTRUE;
293 Bool_t kGCplotESDCutRefit = kTRUE;
294 Bool_t kGCplotESDCutKink = kTRUE;
295 Bool_t kGCplotESDCutPIDProb = kTRUE;
296 Bool_t kGCplotESDCutR = kTRUE;
297 Bool_t kGCplotESDCutLine = kTRUE;
298 Bool_t kGCplotESDCutNDF = kTRUE;
299 Bool_t kGCplotESDCutChi2 = kTRUE;
300 Bool_t kGCplotESDCutEta = kTRUE;
301 Bool_t kGCplotESDCutPt = kTRUE;
302 Bool_t kGCplotESDTrueConvGammaTrackLength =kTRUE;
303 Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kTRUE;
305 Bool_t kGCplotPi0Spectra = kTRUE;
306 Bool_t kGCplotEtaSpectra = kTRUE;
308 /////////////Chi_c Analysis//////////////////////////
309 Bool_t kGCplotStatsElectrons = kTRUE;
310 Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
311 Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
312 Bool_t kGCplotRecEPosENegR = kTRUE;
313 Bool_t kGCplotRecEPosENegEta = kTRUE;
314 Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
315 Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
316 Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
317 Bool_t kGCplotESDElectronPosNegPt = kTRUE;
318 Bool_t kGCplotESDElectronPosNegEta = kTRUE;
319 Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
320 Bool_t kGCplotMCElectronPosNegPt = kTRUE;
321 Bool_t kGCplotMCElectronPosNegEta = kTRUE;
322 Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
323 Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
324 Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
325 Bool_t kGCplotTableElectrons = kTRUE;
326 Bool_t kGCplotESDEPosBackground = kTRUE;
327 Bool_t kGCplotESDENegBackground = kTRUE;
328 Bool_t kGCplotESDEPosENegBackground = kTRUE;
329 Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
330 Bool_t kGCplotESDePoseNegAngle = kTRUE;
331 Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
332 Bool_t kGCplotMCLabels = kTRUE;
333 ///////////////////////////////////////////////////////////////////
335 //---------------- Gamma Jet analysis ----------------------------
336 Bool_t kGCplotdPhiHdrGam = kTRUE;
337 Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
338 Bool_t kGCplotMinimumIsoDistance = kTRUE;
339 Bool_t kGCplotFFzHdrGam = kTRUE;
340 Bool_t kGCplotImbalanceHdrGam = kTRUE;
341 //----------------------------------------------------------------
344 /** ----------------- end define which histograms to plot here -------------------------------*/
348 /** ----------- Define the binning for the different plot types here -------------------------*/
350 Int_t kGCnXBinsR = 500;
351 Double_t kGCfirstXBinR = 0.;
352 Double_t kGClastXBinR = 250.;
355 Int_t kGCnXBinsZR = 1200;
356 Double_t kGCfirstXBinZR = -300.;
357 Double_t kGClastXBinZR = 300.;
358 Int_t kGCnYBinsZR = 500;
359 Double_t kGCfirstYBinZR = 0.;
360 Double_t kGClastYBinZR = 250.;
363 Int_t kGCnXBinsXY = 1000;
364 Double_t kGCfirstXBinXY = -250.;
365 Double_t kGClastXBinXY = 250.;
366 Int_t kGCnYBinsXY = 1000;
367 Double_t kGCfirstYBinXY = -250.;
368 Double_t kGClastYBinXY = 250.;
371 Int_t kGCnXBinsOpeningAngle = 400;
372 Double_t kGCfirstXBinOpeningAngle = 0.;
373 Double_t kGClastXBinOpeningAngle = TMath::Pi();
376 Int_t kGCnXBinsEnergy = 200;
377 Double_t kGCfirstXBinEnergy = 0.;
378 Double_t kGClastXBinEnergy = 50.;
381 Int_t kGCnXBinsPt = 200;
382 Double_t kGCfirstXBinPt = 0.;
383 Double_t kGClastXBinPt = 50.;
386 Int_t kGCnXBinsEta = 40;
387 Double_t kGCfirstXBinEta = -2.;
388 Double_t kGClastXBinEta = 2.;
391 Int_t kGCnXBinsRapid = 200;
392 Double_t kGCfirstXBinRapid = -10.;
393 Double_t kGClastXBinRapid = 10.;
396 Int_t kGCnXBinsPhi = 72;
397 Double_t kGCfirstXBinPhi = -TMath::Pi();
398 Double_t kGClastXBinPhi = TMath::Pi();
401 Int_t kGCnXBinsMapping = 400;
402 Double_t kGCfirstXBinMapping = -100.;
403 Double_t kGClastXBinMapping = 100.;
404 Int_t kGCnYBinsMapping = 40;
405 Double_t kGCfirstYBinMapping = -2;
406 Double_t kGClastYBinMapping = 2;
410 Int_t kGCnXBinsResdPt=500;
411 Int_t kGCfirstXBinResdPt= 0;
412 Int_t kGClastXBinResdPt=5;
413 Int_t kGCnYBinsResdPt=1000;
414 Int_t kGCfirstYBinResdPt= -5;
415 Int_t kGClastYBinResdPt=5;
418 Int_t kGCnXBinsResdR=500;
419 Int_t kGCfirstXBinResdR= 0;
420 Int_t kGClastXBinResdR=250;
421 Int_t kGCnYBinsResdR=100;
422 Int_t kGCfirstYBinResdR= -25;
423 Int_t kGClastYBinResdR=25;
426 Int_t kGCnXBinsResdZ=80;
427 Int_t kGCfirstXBinResdZ= -20;
428 Int_t kGClastXBinResdZ=20;
429 Int_t kGCnYBinsResdZ=80;
430 Int_t kGCfirstYBinResdZ= -20;
431 Int_t kGClastYBinResdZ=20;
434 Int_t kGCnXBinsResdRdPt=440;
435 Int_t kGCfirstXBinResdRdPt= -22;
436 Int_t kGClastXBinResdRdPt=22;
437 Int_t kGCnYBinsResdRdPt=100;
438 Int_t kGCfirstYBinResdRdPt= -5;
439 Int_t kGClastYBinResdRdPt=5;
442 Int_t kGCnXBinsResPt=100;
443 Int_t kGCfirstXBinResPt= 0;
444 Int_t kGClastXBinResPt=5;
447 Int_t kGCnXBinsResR=500;
448 Int_t kGCfirstXBinResR= 0;
449 Int_t kGClastXBinResR=250;
452 Int_t kGCnXBinsResZ=500;
453 Int_t kGCfirstXBinResZ= 0;
454 Int_t kGClastXBinResZ=250;
457 Int_t kGCnXBinsGammaMass = 4000;
458 Double_t kGCfirstXBinGammaMass = 0.;
459 Double_t kGClastXBinGammaMass = 1.;
462 Int_t kGCnXBinsPi0Mass = 100;
463 Double_t kGCfirstXBinPi0Mass = 0.;
464 Double_t kGClastXBinPi0Mass = 1.;
467 Int_t kGCnXBinsEtaMass = 100;
468 Double_t kGCfirstXBinEtaMass = 0.;
469 Double_t kGClastXBinEtaMass = 1.;
472 Int_t kGCnXBinsGammaWidth = 100;
473 Double_t kGCfirstXBinGammaWidth = 0.;
474 Double_t kGClastXBinGammaWidth = 1.;
477 Int_t kGCnXBinsGammaChi2 = 100;
478 Double_t kGCfirstXBinGammaChi2 = 0;
479 Double_t kGClastXBinGammaChi2 = 100.;
482 Int_t kGCnXBinsGammaNDF = 10;
483 Double_t kGCfirstXBinGammaNDF = 0.;
484 Double_t kGClastXBinGammaNDF = 10.;
487 Int_t kGCnXBinsSpectra = 500;
488 Double_t kGCfirstXBinSpectra = 0.;
489 Double_t kGClastXBinSpectra = 1.;
490 Int_t kGCnYBinsSpectra = 100;
491 Double_t kGCfirstYBinSpectra = 0.;
492 Double_t kGClastYBinSpectra = 50.;
495 Int_t kGCnXBinsTrackLength = 1000;
496 Double_t kGCfirstXBinTrackLength = 0;
497 Double_t kGClastXBinTrackLength = 500;
499 /////////Chic_Analysis///////////////////////////////////
500 Int_t kGCnXBinsEPt = 1000;
501 Double_t kGCfirstXBinEPt = 0.;
502 Double_t kGClastXBinJPsiPt = 10;
504 Int_t kGCnXBinsJPsiMass = 1000;
505 Double_t kGCfirstXBinJPsiMass = 0.;
506 Double_t kGClastXBinJPsiMass = 10.;
508 Int_t kGCnXBinsChicMass = 1000;
509 Double_t kGCfirstXBinChicMass = 0.;
510 Double_t kGClastXBinChicMass = 10.;
512 Int_t kGCnXBinsPi0Mass = 1000;
513 Double_t kGCfirstXBinPi0Mass = 0.;
514 Double_t kGClastXBinPi0Mass = 1.;
516 Int_t kGCnXBinsEPosNegPt = 1000;
517 Double_t kGCfirstXBinEPosNegPt = 0.;
518 Double_t kGClastXBinEPosNegPt = 10.;
520 Int_t kGCnXBinsEPosNegEta = 200;
521 Double_t kGCfirstXBinEPosNegEta = -1.2;
522 Double_t kGClastXBinEPosNegEta = 1.2;
524 Int_t kGCnXBinsEPosNegAngle = 200;
525 Double_t kGCfirstXBinEPosNegAngle = 0.;
526 Double_t kGClastXBinEPosNegAngle = TMath::Pi();
528 Int_t kGCnXBinsEBackground = 1000;
529 Double_t kGCfirstXBinEBackground = 0.;
530 Double_t kGClastXBinEBackground = 10.;
532 Int_t kGCnXBinsEBackgroundCut = 100;
533 Double_t kGCfirstXBinEBackgroundCut = 0.;
534 Double_t kGClastXBinEBackgroundCut = 0.015.;
536 Int_t kGCnXBinsMCLabels = 10;
537 Double_t kGCfirstXBinMCLabels = 0.;
538 Double_t kGClastXBinMCLabels = 10.;
540 Int_t kGCnElementsElectronTable = 19;
543 const char * kGCelectronTable[] = {
544 "Num. Events", "MC e+ J/Psi |\\eta|<0.9","MC e- J/Psi |\\eta|<0.9","MC e+ e+ from J/Psi |\\eta|<0.9",
545 "ESDtracks", "Kink Cut",
546 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
547 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
548 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
552 // for Gamma Jet analysis
553 Int_t kGCnXBinsdphiHdrGam = 100;
554 Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
555 Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
557 Int_t kGCnXBinsMinimumIsoDistance = 100;
558 Double_t kGCfirstXBinMinimumIsoDistance = 0.;
559 Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
561 Int_t kGCnXBinsFFzHdrGam = 100;
562 Double_t kGCfirstXBinFFzHdrGam = 0.;
563 Double_t kGClastXBinFFzHdrGam = 5;
565 Int_t kGCnXBinsImbalanceHdrGam = 100;
566 Double_t kGCfirstXBinImbalanceHdrGam = -5.;
567 Double_t kGClastXBinImbalanceHdrGam = 5.;
568 ////////////////////////////////////////////////////////
571 /** ---------- end Define the binning for the different plot types here ----------------------*/
574 /************************************************************************************************
577 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
580 ************************************************************************************************/
581 TString kGCoutputFileName = "histogramsGammaConversion";
582 TString kGCoutputFileAppendix = "";
583 TString kGCdataList = "";
584 Bool_t kGCwriteNtuple = kFALSE;
585 // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
586 Bool_t kGCusePWG4PartCorr = kTRUE;
588 /** Flag to enable running on train */
589 Bool_t kGCrunOnTrain = kFALSE;
591 /** ------------------------------ Monte Carlo flag -----------------------------------------*/
592 Bool_t kGCdoMCTruth = kTRUE;
593 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
595 /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
596 Bool_t kGCuseKFParticle = kTRUE;
597 Bool_t kGCuseESDTrack = kFALSE;
598 /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
601 Bool_t kGCcalculateBackground = kTRUE;
603 Bool_t scanArguments(TString arguments){
604 Bool_t iResult = kTRUE;
606 TString allArgs=arguments;
610 TObjArray* pTokens=allArgs.Tokenize(" ");
613 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
614 argument=((TObjString*)pTokens->At(i))->GetString();
616 if(argument.IsNull()) continue;
617 // -- deconvolute-time option
618 if(argument.CompareTo("-data-list") == 0){
619 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
620 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
621 if(kGCdataList.IsNull()){
622 cout<<"-data-list is NULL"<<endl;
626 cout<<"Data list is set to: "<<kGCdataList<<endl;
629 else if(argument.CompareTo("-output-file-name") == 0){
630 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
631 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
632 if(kGCoutputFileName.IsNull()){
633 cout<<"-output-file-name is NULL"<<endl;
637 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
640 else if (argument.CompareTo("-write-ntuple") == 0){
641 cout<<"Writing ntuple to file."<<endl;
642 kGCwriteNtuple = kTRUE;
644 else if (argument.CompareTo("-run-on-train") == 0){
645 cout<<"Running on train"<<endl;
646 kGCrunOnTrain = kTRUE;
648 else if (argument.CompareTo("-run-jet") == 0){
649 cout<<"Running jet analysis"<<endl;
652 else if (argument.CompareTo("-run-neutralmeson") == 0){
653 cout<<"Running neutral meson analysis"<<endl;
654 kGCrunNeutralMeson = kTRUE;
656 else if (argument.CompareTo("-run-neutral-meson") == 0){
657 cout<<"Running neutral meson analysis"<<endl;
658 kGCrunNeutralMeson = kTRUE;
660 else if (argument.CompareTo("-run-chic") == 0){
661 cout<<"Running Chi_c analysis"<<endl;
664 else if (argument.CompareTo("-jet-off") == 0){
665 cout<<"Skipping jet analysis"<<endl;
668 else if (argument.CompareTo("-neutralmeson-off") == 0){
669 cout<<"Skipping neutral meson analysis"<<endl;
670 kGCrunNeutralMeson = kFALSE;
672 else if (argument.CompareTo("-neutral-meson-off") == 0){
673 cout<<"Skipping neutral meson analysis"<<endl;
674 kGCrunNeutralMeson = kFALSE;
676 else if (argument.CompareTo("-chic-off") == 0){
677 cout<<"Skipping Chi_c analysis"<<endl;
680 else if (argument.CompareTo("-mc-off") == 0){
681 cout<<"Switching off kGCdoMCTruth"<<endl;
682 kGCdoMCTruth = kFALSE;
684 else if (argument.CompareTo("-use-own-xyz") == 0){
685 cout<<"Switching on use own xyz calculation"<<endl;
686 kGCdoOwnXYZCalculation = kTRUE;
688 else if(argument.CompareTo("-append-to-output-file") == 0){
689 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
690 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
691 if(kGCoutputFileAppendix.IsNull()){
692 cout<<"-appending-to-output-file is NULL"<<endl;
696 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
703 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
709 void SetVersionLibrary(){
710 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
711 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
712 // If no, kGCusePWG4PartCorr is true.
714 TString file = gSystem->Getenv("ALICE_ROOT");
715 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
718 stream.open(file.Data());
721 kGCusePWG4PartCorr=kFALSE;
724 kGCusePWG4PartCorr=kTRUE;
731 AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments,AliAnalysisDataContainer *cin_esd=NULL){
733 if(!scanArguments(arguments)){
737 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
739 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
740 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
741 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
745 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
746 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
747 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
750 if(kGCrunOnTrain == kFALSE){
751 if(kGCnumberOfFilesToAnalyze==0){
752 ifstream dataInStream;
753 dataInStream.open(kGCdataList.Data());
754 if ( !dataInStream ){
755 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
759 while ( !dataInStream.eof() )
761 getline(dataInStream, line);
762 if(line.compare("") != 0){//checks if there is an empty line in the data list
763 kGCnumberOfFilesToAnalyze++;
767 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
769 build();//build (if necessary) and load the libraries needed
771 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
773 AliLog::SetGlobalLogLevel(AliLog::kError);
776 // ------------------------------------------------------------------------
781 const Double_t ptmin = kGCfirstXBinPt;
782 const Double_t ptmax = kGClastXBinPt;
783 const Double_t etamin = kGCfirstXBinEta;
784 const Double_t etamax = kGClastXBinEta;
785 const Double_t massmin = kGCfirstXBinPi0Mass;
786 const Double_t massmax = kGClastXBinPi0Mass;
789 // sensitive variables
794 //how many selection steps
796 const Int_t nvar = 3;
797 const Int_t nbin0 = kGCnXBinsPt;
798 const Int_t nbin1 = kGCnXBinsEta;
799 const Int_t nbin2 = kGCnXBinsPi0Mass;
801 //arrays for the number of bins in each dimension
807 //arrays for lower bounds
808 Double_t *binLim0 = new Double_t[nbin0+1];
809 Double_t *binLim1 = new Double_t[nbin1+1];
810 Double_t *binLim2 = new Double_t[nbin2+1];
812 // values for lower bounds
813 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
814 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
815 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
818 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
819 container->SetBinLimits(ipt,binLim0);
820 container->SetBinLimits(ieta,binLim1);
821 container->SetBinLimits(imass,binLim2);
823 AliCFManager *man = new AliCFManager();
824 man->SetParticleContainer(container);
826 // end ---------------------------------------------------------------------------
831 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
832 AddHistograms(histograms);
834 // Create the Analysis manager
835 AliAnalysisManager *mgr =NULL;
836 if(kGCrunOnTrain == kFALSE){
837 mgr = new AliAnalysisManager("My Manager", "My Analysis");
840 mgr = AliAnalysisManager::GetAnalysisManager();
844 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
847 if(kGCrunOnTrain == kTRUE){
848 if (!mgr->GetInputEventHandler()) {
849 ::Error("ConfigGammaConversion", "This task requires an input event handler");
853 AliESDInputHandler* inpHandler = NULL;
855 if(kGCrunOnTrain == kFALSE){
856 // Define Input Event Handler
857 inpHandler = new AliESDInputHandler();
859 // Define MC Truth Event Handler
860 AliMCEventHandler* mcHandler = NULL;
862 if(kGCrunOnTrain == kFALSE){
863 mcHandler = new AliMCEventHandler();
866 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
869 ::Error("", "No MC handler connected");
874 // Define Output Event Handler and ad
875 // if(kGCrunOnTrain == kFALSE){
876 if(fWriteStandardAOD == kTRUE){
877 AliAODHandler* aodHandler = new AliAODHandler();
878 TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root";
879 aodHandler->SetOutputFileName(fileOutAOD);
880 mgr->SetOutputEventHandler (aodHandler);
883 if(kGCrunOnTrain == kFALSE){
884 mgr->SetInputEventHandler (inpHandler);
885 mgr->SetMCtruthEventHandler(mcHandler);
887 // Be sure you are told what you are doing
888 mgr->SetDebugLevel(10);
890 // Declare Common Input Tchain
891 AliAnalysisDataContainer *cinput1 = NULL;
892 if(kGCusePWG4PartCorr){
893 if(kGCrunOnTrain == kFALSE){
894 cinput1 = mgr->CreateContainer("Chain",TChain::Class(),AliAnalysisManager::kInputContainer);
901 if(kGCrunOnTrain == kFALSE){
902 cinput1 = mgr->GetCommonInputContainer(); // added by kenneth to avoid writing the standard AOD
906 cinput1 = mgr->GetCommonInputContainer();
910 // Common Output Tree in common â
\80\98defaultâ
\80\99 output file
911 AliAnalysisDataContainer *coutput1 = NULL;
912 if(kGCusePWG4PartCorr){
913 coutput1 = mgr->CreateContainer("tree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
916 if(fWriteStandardAOD){
917 coutput1 = mgr->GetCommonOutputContainer();
921 // Private output objects
922 if(kGCoutputFileName.Contains(".root")){
923 kGCoutputFileName.ReplaceAll(".root","");
925 if(kGCoutputFileAppendix.Contains(".root")){
926 kGCoutputFileAppendix.ReplaceAll(".root","");
928 TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
930 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histogramsAliGammaConversion", TList::Class(),AliAnalysisManager::kOutputContainer, fileOut);
932 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer("ccontainer0",AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,fileOut);
934 //------------------------ END: Define input/output handlers ---------------------------------------------------
936 //check for errors in the specified data
937 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
938 //Print warning, cannot use both
939 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
941 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
942 //Print warning, one have to be specified
943 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
947 //Create the V0Reader
948 AliV0Reader * v0Reader = new AliV0Reader();
949 if(kGCuseKFParticle){
950 v0Reader->UseKFParticle();
952 else if(kGCuseESDTrack){
953 v0Reader->UseESDTrack();
955 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
956 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
957 v0Reader->SetMaxRCut(kGCmaxRCut);
958 v0Reader->SetEtaCut(kGCetaCut);
959 v0Reader->SetPtCut(kGCptCut);
960 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
961 v0Reader->SetLineCutZValue(kGCLineCutZValue);
962 v0Reader->SetMaxZCut(kGCmaxZCut);
963 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
964 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
965 v0Reader->SetPIDProbability(kGCprobElectron);
966 v0Reader->SetXVertexCut(kGCxVertexCut);
967 v0Reader->SetYVertexCut(kGCyVertexCut);
968 v0Reader->SetZVertexCut(kGCzVertexCut);
969 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
970 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
971 v0Reader->SetDoMCTruth(kGCdoMCTruth);
972 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
974 v0Reader->SetCFManager(man);
977 // Create the GammaConversionTask
978 AliAnalysisTaskGammaConversion *gammaconversion = new AliAnalysisTaskGammaConversion("GammaConversionTask");
979 gammaconversion->SetDebugLevel(10);
981 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
983 gammaconversion->SetV0Reader(v0Reader);
984 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
985 gammaconversion->Init();
987 gammaconversion->SetElectronMass(kGCelectronMass);
988 gammaconversion->SetGammaMass(kGCgammaMass);
989 gammaconversion->SetPi0Mass(kGCpi0Mass);
990 gammaconversion->SetEtaMass(kGCetaMass);
992 gammaconversion->SetGammaWidth(kGCgammaWidth);
993 gammaconversion->SetPi0Width(kGCpi0Width);
994 gammaconversion->SetEtaWidth(kGCetaWidth);
996 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
998 // define the width constraint used by KF particle.
999 Double_t gammaWidth = 0.01;
1000 Double_t pi0Width = 0.01;
1001 Double_t etaWidth = 0.01;
1003 gammaconversion->SetHistograms(histograms);
1004 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
1006 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
1008 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
1009 gammaconversion->SetDoJet(kGCrunJet);
1010 gammaconversion->SetDoChic(kGCrunChic);
1012 gammaconversion->SetCFManager(man);
1015 // Add task to the manager
1016 mgr->AddTask(gammaconversion);
1018 // Connect I/O to the task
1019 mgr->ConnectInput (gammaconversion, 0, cinput1);
1021 if(fWriteStandardAOD){
1022 mgr->ConnectOutput(gammaconversion, 0, coutput1);
1024 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1025 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1027 if(kGCrunOnTrain == kFALSE){
1028 if(kGCdataList.IsNull()){
1029 cout<<"Data list is not set, aborting."<<endl;
1033 if(kGCrunOnTrain == kFALSE){
1034 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
1036 mgr->InitAnalysis();
1040 mgr->StartAnalysis("local",chain);
1043 return gammaconversion;
1050 gSystem->Load("libTree.so");
1051 gSystem->Load("libGeom");
1054 //Setting up ESD.par//
1056 cout<<"compiling ESD"<<endl;
1058 gSystem->Load("libVMC.so");
1059 gSystem->Load("libESD.so");
1063 //Setting up STEERBase.par//
1065 cout<<"compiling STEERBase"<<endl;
1066 setupPar("STEERBase");
1067 gSystem->Load("libSTEERBase.so");
1070 //Setting up AOD.par//
1072 cout<<"compiling AOD"<<endl;
1074 gSystem->Load("libAOD.so");
1077 //Setting up ANALYSIS.par//
1079 cout<<"compiling ANALYSIS"<<endl;
1080 setupPar("ANALYSIS");
1081 gSystem->Load("libANALYSIS.so");
1084 //Setting up ANALYSISalice.par//
1086 cout<<"compiling ANALYSISalice"<<endl;
1087 setupPar("ANALYSISalice");
1088 gSystem->Load("libANALYSISalice.so");
1091 //Setting up CORRFW.par//
1093 cout<<"compiling CORRFW"<<endl;
1095 gSystem->Load("CORRFW.so");
1098 //Setting up PWG4GammaConv.par//
1100 cout<<"compiling PWG4GammaConv"<<endl;
1101 setupPar("PWG4GammaConv");
1102 gSystem->Load("libPWG4GammaConv.so");
1105 Int_t setupPar(const char* pararchivename) {
1109 if (pararchivename) {
1110 char processline[1024];
1111 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1112 gROOT->ProcessLine(processline);
1113 const char* ocwd = gSystem->WorkingDirectory();
1114 gSystem->ChangeDirectory(pararchivename);
1116 // check for BUILD.sh and execute
1117 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1118 printf("*******************************\n");
1119 printf("*** Building PAR archive ***\n");
1120 printf("*******************************\n");
1122 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
1123 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1127 // check for SETUP.C and execute
1128 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1129 printf("*******************************\n");
1130 printf("*** Setup PAR archive ***\n");
1131 printf("*******************************\n");
1132 gROOT->Macro("PROOF-INF/SETUP.C");
1135 gSystem->ChangeDirectory("../");
1142 void AddHistograms(AliGammaConversionHistograms *histograms){
1143 //---------------------------------------------- Jets ---------------------------------------------------------
1144 if(kGCrunJet == kTRUE){
1145 if (kGCplotdPhiHdrGam == kTRUE){
1146 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
1149 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1150 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
1153 if (kGCplotMinimumIsoDistance == kTRUE){
1154 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
1157 if (kGCplotFFzHdrGam == kTRUE){
1158 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
1161 if (kGCplotImbalanceHdrGam == kTRUE){
1162 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
1164 }//end if(kGCrunJet)
1166 //---------------------------------------------- Chi_c ---------------------------------------------------------
1169 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1171 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
1173 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1175 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1176 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
1179 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1180 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1182 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPo
1184 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1185 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","")
1187 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinE
1188 PosNegAngle,"","");}
1189 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1190 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1191 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1192 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1193 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1194 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1195 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1197 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1199 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1202 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1203 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1204 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
1206 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1207 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1209 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
1212 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
1213 if(kGCrunNeutralMeson){
1214 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
1215 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
1216 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
1217 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
1219 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1220 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1221 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1222 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1224 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1225 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1226 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1227 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1229 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1230 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1231 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1232 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1233 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1235 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1236 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1237 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1238 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1239 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1240 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
1242 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1243 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1244 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1245 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1246 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1248 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1249 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1250 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1251 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1252 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1254 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1255 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1256 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1257 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1258 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1259 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1260 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1261 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1262 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1263 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1264 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1265 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1266 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1267 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1269 if(kGCplotMCMotherSpectra == kTRUE){
1270 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1271 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1272 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1276 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1277 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1278 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1279 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1280 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1281 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1282 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1283 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1284 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1285 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1286 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1287 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1288 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1289 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1290 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1293 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1294 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1295 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1296 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1297 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1298 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1299 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1300 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1301 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1302 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1303 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1304 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1305 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1306 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1310 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1311 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1312 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1313 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1314 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1315 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1316 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1317 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1318 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1319 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1320 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1321 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1322 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1323 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1324 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1327 // Histograms from esd tracks
1328 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1329 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1330 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1331 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1333 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1334 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1335 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1336 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1338 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1339 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1340 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1341 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1342 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1343 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1344 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1345 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1346 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1347 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1348 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1349 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1353 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1354 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1355 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1356 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1359 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1360 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1361 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1362 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1363 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1364 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1365 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1366 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1367 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1368 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1369 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1370 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1372 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1373 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1374 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1375 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1377 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1378 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1379 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1383 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1384 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1385 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1386 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1387 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1388 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1389 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1390 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1391 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1392 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1393 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1394 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1396 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1397 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1398 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1399 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1401 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1402 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1403 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1407 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1408 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1409 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1410 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1411 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1412 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1413 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1414 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1415 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1416 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1419 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1420 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1421 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1422 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1423 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1424 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1425 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1426 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1427 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1428 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1431 if(kGCplotMapping == kTRUE){
1432 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1433 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1436 if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");}
1437 if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1438 if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
1440 if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
1442 if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1443 if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1444 if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1446 if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1447 if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1448 if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1450 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, 0, 100,"","");}
1451 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, 0, 100,"","");}
1454 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1455 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1456 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1457 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1458 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1459 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1460 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1461 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1462 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1463 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1464 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1465 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1466 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
1467 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
1470 if(kGCplotPi0Spectra == kTRUE){
1471 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1472 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1474 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
1475 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1476 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1478 }// end kGCrunNeutralMeson