1 /** VERSION NUMBER 1.1 */
3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * Author: Ana Marin, Kathrin Koch, Kenneth Aamodt
7 * Contact: kenneth.aamodt@cern.ch
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 class AliAnalysisDataContainer;
20 class AliGammaConversionHistograms;
21 class AliAnalysisTaskGammaConversion;
23 // set this to a number if you want to analyze a set number of files
24 // if it is 0 it will analyze the files listed in the data list
25 Int_t kGCnumberOfFilesToAnalyze=0;
27 Bool_t kGCrunNeutralMeson = kTRUE;
28 Bool_t kGCrunJet = kFALSE;
29 Bool_t kGCrunChic = kFALSE;
30 Bool_t kGCrunCF = kFALSE;
32 /** ---------------------------------- define cuts here ------------------------------------*/
34 Int_t kGCpidOfNegativeTrack=11;
35 Int_t kGCpidOfPositiveTrack=-11;
37 Double_t kGCmaxRCut = 180.;
38 Double_t kGCetaCut = 1.2;
39 Double_t kGCptCut = 0.02;
40 Double_t kGCmaxZCut = 240.;
41 Double_t kGCchi2CutConversion = 30.;
42 Double_t kGCchi2CutMeson = 50.;
44 Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
45 Double_t kGCLineCutZValue = 7.;
48 Double_t kGCxVertexCut = 0.;
49 Double_t kGCyVertexCut = 0.;
50 Double_t kGCzVertexCut = 0.;
52 Double_t kGCsigmaCutGammaMass=0.0001;
54 Bool_t kGCuseImprovedVertex = kTRUE;
56 Bool_t kGCUseOnFlyV0Finder = kTRUE;
58 // define masses of different particles, this will be used by the KF particle
59 // together with the width to set mass constraints. Units in GeV.
60 Double_t kGCelectronMass = 0.00051099892;
61 Double_t kGCgammaMass = 0.;
62 Double_t kGCpi0Mass = 0.1349766;
63 Double_t kGCetaMass = 0.54751;
65 // define the width constraint used by KF particle.
66 Double_t kGCgammaWidth = 0.01;
67 Double_t kGCpi0Width = 0.01;
68 Double_t kGCetaWidth = 0.01;
70 // define the probability of track being an electron
71 Double_t kGCprobElectron = 0.002;
73 Double_t kGCminOpeningAngleGhostCut = 0.01;
75 /** ----------------------------------end define cuts here----------------------------------*/
77 /** -------------------------------- Phi/R Mapping ---------------------------------------*/
78 Int_t kGCnPhiIndex = 8;
81 Double_t kGCminRadius = 0.;
82 Double_t kGCmaxRadius = 200.;
83 Double_t kGCminPhi = -TMath::Pi();
84 Double_t kGCmaxPhi = TMath::Pi();
85 /** ------------------------------- end Phi/R Mapping ------------------------------------*/
87 Bool_t kGCdoOwnXYZCalculation = kFALSE;
89 Bool_t fWriteStandardAOD =kTRUE; // need to be true for train running? CKB
91 /** ------------------- define which histograms to plot here --------------------------------*/
92 /** NB: to change the bin numbers, see below the histogram flags */
94 // NEUTRAL MESON PLOTS
95 Bool_t kGCplotMCConversionR = kTRUE;
96 Bool_t kGCplotMCConversionZR = kTRUE;
97 Bool_t kGCplotMCConversionXY = kTRUE;
98 Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
99 Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE;
100 Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE;
103 Bool_t kGCplotMCEEnergy = kTRUE;
104 Bool_t kGCplotMCEPt = kTRUE;
105 Bool_t kGCplotMCEEta = kTRUE;
106 Bool_t kGCplotMCEPhi = kTRUE;
108 Bool_t kGCplotMCPEnergy = kTRUE;
109 Bool_t kGCplotMCPPt = kTRUE;
110 Bool_t kGCplotMCPEta = kTRUE;
111 Bool_t kGCplotMCPPhi = kTRUE;
113 Bool_t kGCplotMCallGammaEnergy = kTRUE;
114 Bool_t kGCplotMCallGammaPt = kTRUE;
115 Bool_t kGCplotMCallGammaEta = kTRUE;
116 Bool_t kGCplotMCallGammaPhi = kTRUE;
117 Bool_t kGCplotMCallGammaRapid = kTRUE;
120 Bool_t kGCplotMCConvGammaEnergy = kTRUE;
121 Bool_t kGCplotMCConvGammaPt = kTRUE;
122 Bool_t kGCplotMCConvGammaEta = kTRUE;
123 Bool_t kGCplotMCConvGammaPhi = kTRUE;
124 Bool_t kGCplotMCConvGammaRapid = kTRUE;
125 Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
127 Bool_t kGCplotMCallDirectGammaEnergy = kTRUE;
128 Bool_t kGCplotMCallDirectGammaPt = kTRUE;
129 Bool_t kGCplotMCallDirectGammaEta = kTRUE;
130 Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
131 Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
133 Bool_t kGCplotMCConvDirectGammaEnergy = kTRUE;
134 Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
135 Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
136 Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
137 Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
139 Bool_t kGCplotMCMotherEta = kTRUE;
140 Bool_t kGCplotMCMotherRapid = kTRUE;
141 Bool_t kGCplotMCMotherPhi = kTRUE;
142 Bool_t kGCplotMCMotherPt = kTRUE;
143 Bool_t kGCplotMCMotherEnergy = kTRUE;
144 Bool_t kGCplotMCMotherMass = kTRUE;
145 Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
146 Bool_t kGCplotMCMotherR = kTRUE;
147 Bool_t kGCplotMCMotherZR = kTRUE;
148 Bool_t kGCplotMCMotherXY = kTRUE;
149 Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
150 Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
151 Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
152 Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
153 Bool_t kGCplotMCMotherSpectra = kTRUE;
155 Bool_t kGCplotMCPi0Eta = kTRUE;
156 Bool_t kGCplotMCPi0Rapid = kTRUE;
157 Bool_t kGCplotMCPi0Phi = kTRUE;
158 Bool_t kGCplotMCPi0Pt = kTRUE;
159 Bool_t kGCplotMCPi0Energy = kTRUE;
160 Bool_t kGCplotMCPi0Mass = kTRUE;
161 Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
162 Bool_t kGCplotMCPi0R = kTRUE;
163 Bool_t kGCplotMCPi0ZR = kTRUE;
164 Bool_t kGCplotMCPi0XY = kTRUE;
165 Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
166 Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
167 Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
168 Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
169 Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
171 Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
172 Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
173 Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
174 Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
175 Bool_t kGCplotMCPi0SecondaryEnergy = kTRUE;
176 Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
177 Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
178 Bool_t kGCplotMCPi0SecondaryR = kTRUE;
179 Bool_t kGCplotMCPi0SecondaryZR = kTRUE;
180 Bool_t kGCplotMCPi0SecondaryXY = kTRUE;
181 Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
182 Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
183 Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
184 Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
186 Bool_t kGCplotMCEtaEta = kTRUE;
187 Bool_t kGCplotMCEtaRapid = kTRUE;
188 Bool_t kGCplotMCEtaPhi = kTRUE;
189 Bool_t kGCplotMCEtaPt = kTRUE;
190 Bool_t kGCplotMCEtaEnergy = kTRUE;
191 Bool_t kGCplotMCEtaMass = kTRUE;
192 Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
193 Bool_t kGCplotMCEtaR = kTRUE;
194 Bool_t kGCplotMCEtaZR = kTRUE;
195 Bool_t kGCplotMCEtaXY = kTRUE;
196 Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
197 Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
198 Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
199 Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
200 Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
202 // Histograms from esd tracks
203 Bool_t kGCplotESDConversionR = kTRUE;
204 Bool_t kGCplotESDConversionZR = kTRUE;
205 Bool_t kGCplotESDConversionXY = kTRUE;
206 Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
207 Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE;
208 Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE;
209 Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE;
210 Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE;
211 Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE;
212 Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE;
213 Bool_t kGCplotESDConvGammaEdEdxP = kTRUE;
214 Bool_t kGCplotESDConvGammaPdEdxP = kTRUE;
217 Bool_t kGCplotESDEEnergy = kTRUE;
218 Bool_t kGCplotESDEPt = kTRUE;
219 Bool_t kGCplotESDEEta = kTRUE;
220 Bool_t kGCplotESDEPhi = kTRUE;
222 Bool_t kGCplotESDPEnergy = kTRUE;
223 Bool_t kGCplotESDPPt = kTRUE;
224 Bool_t kGCplotESDPEta = kTRUE;
225 Bool_t kGCplotESDPPhi = kTRUE;
227 Bool_t kGCplotESDConvGammaEnergy = kTRUE;
228 Bool_t kGCplotESDConvGammaPt = kTRUE;
229 Bool_t kGCplotESDConvGammaEta = kTRUE;
230 Bool_t kGCplotESDConvGammaPhi = kTRUE;
231 Bool_t kGCplotESDConvGammaMass = kTRUE;
232 Bool_t kGCplotESDConvGammaWidth = kTRUE;
233 Bool_t kGCplotESDConvGammaChi2 = kTRUE;
234 Bool_t kGCplotESDConvGammaNDF = kTRUE;
235 Bool_t kGCplotESDConvGammaRapid = kTRUE;
236 Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
237 Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
238 Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
242 Bool_t kGCplotESDTrueConvGammaEnergy = kTRUE;
243 Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
244 Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
245 Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
246 Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
247 Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
248 Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
249 Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
250 Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
251 Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
252 Bool_t kGCplotESDTrueConversionR = kTRUE;
253 Bool_t kGCplotESDTrueConversionZR = kTRUE;
254 Bool_t kGCplotESDTrueConversionXY = kTRUE;
255 Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
256 Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE;
257 Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE;
258 Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE;
259 Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE;
260 Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE;
261 Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE;
262 Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE;
263 Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE;
266 Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
267 Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
268 Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
269 Bool_t kGCplotESDTrueConversionMCZR = kTRUE;
270 Bool_t kGCplotESDTrueConversionMCXY = kTRUE;
272 Bool_t kGCplotESDNoCutConvGammaEnergy = kTRUE;
273 Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
274 Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
275 Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
276 Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
277 Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
278 Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
279 Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
280 Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
281 Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
282 Bool_t kGCplotESDNoCutConversionR = kTRUE;
283 Bool_t kGCplotESDNoCutConversionZR = kTRUE;
284 Bool_t kGCplotESDNoCutConversionXY = kTRUE;
285 Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
286 Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE;
287 Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE;
288 Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE;
289 Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE;
291 Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE;
292 Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE;
293 Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE;
294 Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE;
295 Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
296 Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
297 Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
298 Bool_t kGCplotESDNoCutConversionMCZR = kTRUE;
299 Bool_t kGCplotESDNoCutConversionMCXY = kTRUE;
301 Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
302 Bool_t kGCplotESDMotherEnergy = kTRUE;
303 Bool_t kGCplotESDMotherPt = kTRUE;
304 Bool_t kGCplotESDMotherEta = kTRUE;
305 Bool_t kGCplotESDMotherPhi = kTRUE;
306 Bool_t kGCplotESDMotherMass = kTRUE;
307 Bool_t kGCplotESDMotherR = kTRUE;
308 Bool_t kGCplotESDMotherZR = kTRUE;
309 Bool_t kGCplotESDMotherXY = kTRUE;
310 Bool_t kGCplotESDMotherRapid = kTRUE;
312 Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
313 Bool_t kGCplotESDBackgroundEnergy = kTRUE;
314 Bool_t kGCplotESDBackgroundPt = kTRUE;
315 Bool_t kGCplotESDBackgroundEta = kTRUE;
316 Bool_t kGCplotESDBackgroundPhi = kTRUE;
317 Bool_t kGCplotESDBackgroundMass = kTRUE;
318 Bool_t kGCplotESDBackgroundR = kTRUE;
319 Bool_t kGCplotESDBackgroundZR = kTRUE;
320 Bool_t kGCplotESDBackgroundXY = kTRUE;
321 Bool_t kGCplotESDBackgroundRapid = kTRUE;
323 Bool_t kGCplotMapping = kTRUE;
325 Bool_t kGCplotResolutiondPt = kTRUE;
326 Bool_t kGCplotResolutiondR = kTRUE;
327 Bool_t kGCplotResolutiondZ = kTRUE;
329 Bool_t kGCplotResolutiondRdPt = kTRUE;
331 Bool_t kGCplotResolutionMCPt = kTRUE;
332 Bool_t kGCplotResolutionMCR = kTRUE;
333 Bool_t kGCplotResolutionMCZ = kTRUE;
335 Bool_t kGCplotResolutionESDPt = kTRUE;
336 Bool_t kGCplotResolutionESDR = kTRUE;
337 Bool_t kGCplotResolutionESDZ = kTRUE;
339 Bool_t kGCplotESDNumberOfV0s = kTRUE;
340 Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
341 Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE;
344 Bool_t kGCplotESDCutGetOnFly = kTRUE;
345 Bool_t kGCplotESDCutNContributors = kTRUE;
346 Bool_t kGCplotESDCutLikeSign = kTRUE;
347 Bool_t kGCplotESDCutRefit = kTRUE;
348 Bool_t kGCplotESDCutKink = kTRUE;
349 Bool_t kGCplotESDCutPIDProb = kTRUE;
350 Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE;
351 Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE;
352 Bool_t kGCplotESDCutR = kTRUE;
353 Bool_t kGCplotESDCutLine = kTRUE;
354 Bool_t kGCplotESDGoodV0s = kTRUE;
355 Bool_t kGCplotESDCutNDF = kTRUE;
356 Bool_t kGCplotESDCutChi2 = kTRUE;
357 Bool_t kGCplotESDCutEta = kTRUE;
358 Bool_t kGCplotESDCutPt = kTRUE;
359 Bool_t kGCplotESDTrueConvGammaTrackLength =kTRUE;
360 Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kTRUE;
362 Bool_t kGCplotPi0Spectra = kTRUE;
363 Bool_t kGCplotEtaSpectra = kTRUE;
365 /////////////Chi_c Analysis//////////////////////////
366 Bool_t kGCplotStatsElectrons = kTRUE;
367 Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
368 Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
369 Bool_t kGCplotRecEPosENegR = kTRUE;
370 Bool_t kGCplotRecEPosENegEta = kTRUE;
371 Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
372 Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
373 Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
374 Bool_t kGCplotESDElectronPosNegPt = kTRUE;
375 Bool_t kGCplotESDElectronPosNegEta = kTRUE;
376 Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
377 Bool_t kGCplotMCElectronPosNegPt = kTRUE;
378 Bool_t kGCplotMCElectronPosNegEta = kTRUE;
379 Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
380 Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
381 Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
382 Bool_t kGCplotTableElectrons = kTRUE;
383 Bool_t kGCplotESDEPosBackground = kTRUE;
384 Bool_t kGCplotESDENegBackground = kTRUE;
385 Bool_t kGCplotESDEPosENegBackground = kTRUE;
386 Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
387 Bool_t kGCplotESDePoseNegAngle = kTRUE;
388 Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
389 Bool_t kGCplotMCLabels = kTRUE;
390 ///////////////////////////////////////////////////////////////////
392 //---------------- Gamma Jet analysis ----------------------------
393 Bool_t kGCplotdPhiHdrGam = kTRUE;
394 Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
395 Bool_t kGCplotMinimumIsoDistance = kTRUE;
396 Bool_t kGCplotFFzHdrGam = kTRUE;
397 Bool_t kGCplotImbalanceHdrGam = kTRUE;
398 //----------------------------------------------------------------
401 /** ----------------- end define which histograms to plot here -------------------------------*/
405 /** ----------- Define the binning for the different plot types here -------------------------*/
407 Int_t kGCnXBinsR = 500;
408 Double_t kGCfirstXBinR = 0.;
409 Double_t kGClastXBinR = 250.;
412 Int_t kGCnXBinsZR = 1200;
413 Double_t kGCfirstXBinZR = -300.;
414 Double_t kGClastXBinZR = 300.;
415 Int_t kGCnYBinsZR = 500;
416 Double_t kGCfirstYBinZR = 0.;
417 Double_t kGClastYBinZR = 250.;
420 Int_t kGCnXBinsXY = 1000;
421 Double_t kGCfirstXBinXY = -250.;
422 Double_t kGClastXBinXY = 250.;
423 Int_t kGCnYBinsXY = 1000;
424 Double_t kGCfirstYBinXY = -250.;
425 Double_t kGClastYBinXY = 250.;
428 Int_t kGCnXBinsOpeningAngle = 400;
429 Double_t kGCfirstXBinOpeningAngle = 0.;
430 Double_t kGClastXBinOpeningAngle = TMath::Pi();
432 //CosPointingAngle-plots
433 Int_t kGCnXBinsCosPointingAngle = 400;
434 Double_t kGCfirstXBinCosPointingAngle = 0.99;
435 Double_t kGClastXBinCosPointingAngle = 1.01;
437 //DCA Daugthers-plots
438 Int_t kGCnXBinsDcaDaughters = 400;
439 Double_t kGCfirstXBinDcaDaughters= 0.;
440 Double_t kGClastXBinDcaDaughters = 5.;
442 //Norm DCA dist Daugthers-plots
443 Int_t kGCnXBinsNormDcaDistDaughters = 400;
444 Double_t kGCfirstXBinNormDcaDistDaughters= 0.;
445 Double_t kGClastXBinNormDcaDistDaughters = 10.;
448 Int_t kGCnXBinsLikelihoodAP = 400;
449 Double_t kGCfirstXBinLikelihoodAP= 0.;
450 Double_t kGClastXBinLikelihoodAP = 2.;
454 Int_t kGCnXBinsEnergy = 200;
455 Double_t kGCfirstXBinEnergy = 0.;
456 Double_t kGClastXBinEnergy = 50.;
459 Int_t kGCnXBinsP = 200;
460 Double_t kGCfirstXBinP = 0.;
461 Double_t kGClastXBinP = 50.;
464 Int_t kGCnYBinsdEdx = 400;
465 Double_t kGCfirstYBindEdx = 0.;
466 Double_t kGClastYBindEdx = 400.;
469 Int_t kGCnYBinsAsymmetry = 200;
470 Double_t kGCfirstYBinAsymmetry = 0.;
471 Double_t kGClastYBinAsymmetry = 1.;
475 Int_t kGCnXBinsPt = 200;
476 Double_t kGCfirstXBinPt = 0.;
477 Double_t kGClastXBinPt = 50.;
480 Int_t kGCnXBinsEta = 40;
481 Double_t kGCfirstXBinEta = -2.;
482 Double_t kGClastXBinEta = 2.;
485 Int_t kGCnXBinsRapid = 200;
486 Double_t kGCfirstXBinRapid = -10.;
487 Double_t kGClastXBinRapid = 10.;
490 Int_t kGCnXBinsPhi = 72;
491 Double_t kGCfirstXBinPhi = -TMath::Pi();
492 Double_t kGClastXBinPhi = TMath::Pi();
495 Int_t kGCnXBinsMapping = 400;
496 Double_t kGCfirstXBinMapping = -100.;
497 Double_t kGClastXBinMapping = 100.;
498 Int_t kGCnYBinsMapping = 40;
499 Double_t kGCfirstYBinMapping = -2;
500 Double_t kGClastYBinMapping = 2;
504 Int_t kGCnXBinsResdPt=500;
505 Int_t kGCfirstXBinResdPt= 0;
506 Int_t kGClastXBinResdPt=5;
507 Int_t kGCnYBinsResdPt=1000;
508 Int_t kGCfirstYBinResdPt= -5;
509 Int_t kGClastYBinResdPt=5;
512 Int_t kGCnXBinsResdR=500;
513 Int_t kGCfirstXBinResdR= 0;
514 Int_t kGClastXBinResdR=250;
515 Int_t kGCnYBinsResdR=100;
516 Int_t kGCfirstYBinResdR= -25;
517 Int_t kGClastYBinResdR=25;
520 Int_t kGCnXBinsResdZ=80;
521 Int_t kGCfirstXBinResdZ= -20;
522 Int_t kGClastXBinResdZ=20;
523 Int_t kGCnYBinsResdZ=80;
524 Int_t kGCfirstYBinResdZ= -20;
525 Int_t kGClastYBinResdZ=20;
528 Int_t kGCnXBinsResdRdPt=440;
529 Int_t kGCfirstXBinResdRdPt= -22;
530 Int_t kGClastXBinResdRdPt=22;
531 Int_t kGCnYBinsResdRdPt=100;
532 Int_t kGCfirstYBinResdRdPt= -5;
533 Int_t kGClastYBinResdRdPt=5;
536 Int_t kGCnXBinsResPt=100;
537 Int_t kGCfirstXBinResPt= 0;
538 Int_t kGClastXBinResPt=5;
541 Int_t kGCnXBinsResR=500;
542 Int_t kGCfirstXBinResR= 0;
543 Int_t kGClastXBinResR=250;
546 Int_t kGCnXBinsResZ=500;
547 Int_t kGCfirstXBinResZ= 0;
548 Int_t kGClastXBinResZ=250;
551 Int_t kGCnXBinsGammaMass = 4000;
552 Double_t kGCfirstXBinGammaMass = 0.;
553 Double_t kGClastXBinGammaMass = 1.;
556 Int_t kGCnXBinsPi0Mass = 100;
557 Double_t kGCfirstXBinPi0Mass = 0.;
558 Double_t kGClastXBinPi0Mass = 1.;
561 Int_t kGCnXBinsEtaMass = 100;
562 Double_t kGCfirstXBinEtaMass = 0.;
563 Double_t kGClastXBinEtaMass = 1.;
566 Int_t kGCnXBinsGammaWidth = 100;
567 Double_t kGCfirstXBinGammaWidth = 0.;
568 Double_t kGClastXBinGammaWidth = 1.;
571 Int_t kGCnXBinsGammaChi2 = 100;
572 Double_t kGCfirstXBinGammaChi2 = 0;
573 Double_t kGClastXBinGammaChi2 = 100.;
576 Int_t kGCnXBinsGammaNDF = 10;
577 Double_t kGCfirstXBinGammaNDF = 0.;
578 Double_t kGClastXBinGammaNDF = 10.;
581 Int_t kGCnXBinsSpectra = 500;
582 Double_t kGCfirstXBinSpectra = 0.;
583 Double_t kGClastXBinSpectra = 1.;
584 Int_t kGCnYBinsSpectra = 100;
585 Double_t kGCfirstYBinSpectra = 0.;
586 Double_t kGClastYBinSpectra = 50.;
589 Int_t kGCnXBinsTrackLength = 1000;
590 Double_t kGCfirstXBinTrackLength = 0;
591 Double_t kGClastXBinTrackLength = 500;
593 /////////Chic_Analysis///////////////////////////////////
594 Int_t kGCnXBinsEPt = 1000;
595 Double_t kGCfirstXBinEPt = 0.;
596 Double_t kGClastXBinJPsiPt = 10;
598 Int_t kGCnXBinsJPsiMass = 1000;
599 Double_t kGCfirstXBinJPsiMass = 0.;
600 Double_t kGClastXBinJPsiMass = 10.;
602 Int_t kGCnXBinsChicMass = 1000;
603 Double_t kGCfirstXBinChicMass = 0.;
604 Double_t kGClastXBinChicMass = 10.;
606 Int_t kGCnXBinsPi0Mass = 1000;
607 Double_t kGCfirstXBinPi0Mass = 0.;
608 Double_t kGClastXBinPi0Mass = 1.;
610 Int_t kGCnXBinsEPosNegPt = 1000;
611 Double_t kGCfirstXBinEPosNegPt = 0.;
612 Double_t kGClastXBinEPosNegPt = 10.;
614 Int_t kGCnXBinsEPosNegEta = 200;
615 Double_t kGCfirstXBinEPosNegEta = -1.2;
616 Double_t kGClastXBinEPosNegEta = 1.2;
618 Int_t kGCnXBinsEPosNegAngle = 200;
619 Double_t kGCfirstXBinEPosNegAngle = 0.;
620 Double_t kGClastXBinEPosNegAngle = TMath::Pi();
622 Int_t kGCnXBinsEBackground = 1000;
623 Double_t kGCfirstXBinEBackground = 0.;
624 Double_t kGClastXBinEBackground = 10.;
626 Int_t kGCnXBinsEBackgroundCut = 100;
627 Double_t kGCfirstXBinEBackgroundCut = 0.;
628 Double_t kGClastXBinEBackgroundCut = 0.015.;
630 Int_t kGCnXBinsMCLabels = 10;
631 Double_t kGCfirstXBinMCLabels = 0.;
632 Double_t kGClastXBinMCLabels = 10.;
634 Int_t kGCnElementsElectronTable = 19;
637 const char * kGCelectronTable[] = {
638 "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",
639 "ESDtracks", "Kink Cut",
640 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
641 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
642 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
646 // for Gamma Jet analysis
647 Int_t kGCnXBinsdphiHdrGam = 100;
648 Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
649 Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
651 Int_t kGCnXBinsMinimumIsoDistance = 100;
652 Double_t kGCfirstXBinMinimumIsoDistance = 0.;
653 Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
655 Int_t kGCnXBinsFFzHdrGam = 100;
656 Double_t kGCfirstXBinFFzHdrGam = 0.;
657 Double_t kGClastXBinFFzHdrGam = 5;
659 Int_t kGCnXBinsImbalanceHdrGam = 100;
660 Double_t kGCfirstXBinImbalanceHdrGam = -5.;
661 Double_t kGClastXBinImbalanceHdrGam = 5.;
662 ////////////////////////////////////////////////////////
665 /** ---------- end Define the binning for the different plot types here ----------------------*/
668 /************************************************************************************************
671 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
674 ************************************************************************************************/
675 TString kGCoutputFileName = "histogramsGammaConversion";
676 TString kGCoutputFileAppendix = "";
677 TString kGCdataList = "";
678 Bool_t kGCwriteNtuple = kFALSE;
679 // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
680 Bool_t kGCusePWG4PartCorr = kTRUE;
682 /** Flag to enable running on train */
683 Bool_t kGCrunOnTrain = kFALSE;
685 /** ------------------------------ Monte Carlo flag -----------------------------------------*/
686 Bool_t kGCdoMCTruth = kTRUE;
687 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
689 /** ------------------------------ Selecting trigger CINT1B -----------------------------------*/
690 Bool_t kGCtriggerCINT1B = kFALSE;
691 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
693 /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
694 Bool_t kGCuseKFParticle = kTRUE;
695 Bool_t kGCuseESDTrack = kFALSE;
696 /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
698 /**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/
699 Bool_t kGCdodEdxSigmaCut= kTRUE;
700 /**------------------------------end Flag to apply NsigmadEdx cut ----------*/
701 Double_t kGCPIDnSigmaAboveElectronLine=10;
702 Double_t kGCPIDnSigmaBelowElectronLine=-4;
703 Double_t kGCPIDnSigmaAbovePionLine=0;
704 Double_t kGCPIDMinPnSigmaAbovePionLine=5;
708 Bool_t kGCcalculateBackground = kTRUE;
710 Bool_t scanArguments(TString arguments){
711 Bool_t iResult = kTRUE;
713 TString allArgs=arguments;
717 TObjArray* pTokens=allArgs.Tokenize(" ");
720 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
721 argument=((TObjString*)pTokens->At(i))->GetString();
723 if(argument.IsNull()) continue;
724 // -- deconvolute-time option
725 if(argument.CompareTo("-data-list") == 0){
726 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
727 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
728 if(kGCdataList.IsNull()){
729 cout<<"-data-list is NULL"<<endl;
733 cout<<"Data list is set to: "<<kGCdataList<<endl;
736 else if(argument.CompareTo("-output-file-name") == 0){
737 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
738 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
739 if(kGCoutputFileName.IsNull()){
740 cout<<"-output-file-name is NULL"<<endl;
744 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
747 else if (argument.CompareTo("-bg-off") == 0){
748 kGCcalculateBackground =kFALSE;
750 else if (argument.CompareTo("-use-offline-finder") == 0){
751 kGCUseOnFlyV0Finder = kFALSE;
753 else if (argument.CompareTo("-write-ntuple") == 0){
754 cout<<"Writing ntuple to file."<<endl;
755 kGCwriteNtuple = kTRUE;
757 else if (argument.CompareTo("-run-on-train") == 0){
758 cout<<"Running on train"<<endl;
759 kGCrunOnTrain = kTRUE;
761 else if (argument.CompareTo("-run-jet") == 0){
762 cout<<"Running jet analysis"<<endl;
765 else if (argument.CompareTo("-run-neutralmeson") == 0){
766 cout<<"Running neutral meson analysis"<<endl;
767 kGCrunNeutralMeson = kTRUE;
769 else if (argument.CompareTo("-run-neutral-meson") == 0){
770 cout<<"Running neutral meson analysis"<<endl;
771 kGCrunNeutralMeson = kTRUE;
773 else if (argument.CompareTo("-run-chic") == 0){
774 cout<<"Running Chi_c analysis"<<endl;
777 else if (argument.CompareTo("-run-cf") == 0){
778 cout<<"Running CF"<<endl;
782 else if (argument.CompareTo("-jet-off") == 0){
783 cout<<"Skipping jet analysis"<<endl;
786 else if (argument.CompareTo("-neutralmeson-off") == 0){
787 cout<<"Skipping neutral meson analysis"<<endl;
788 kGCrunNeutralMeson = kFALSE;
790 else if (argument.CompareTo("-neutral-meson-off") == 0){
791 cout<<"Skipping neutral meson analysis"<<endl;
792 kGCrunNeutralMeson = kFALSE;
794 else if (argument.CompareTo("-chic-off") == 0){
795 cout<<"Skipping Chi_c analysis"<<endl;
798 else if (argument.CompareTo("-mc-off") == 0){
799 cout<<"Switching off kGCdoMCTruth"<<endl;
800 kGCdoMCTruth = kFALSE;
802 else if (argument.CompareTo("-trigger-CINT1B") == 0){
803 cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl;
804 kGCtriggerCINT1B = kTRUE;
806 else if (argument.CompareTo("-use-own-xyz") == 0){
807 cout<<"Switching on use own xyz calculation"<<endl;
808 kGCdoOwnXYZCalculation = kTRUE;
810 else if(argument.CompareTo("-append-to-output-file") == 0){
811 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
812 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
813 if(kGCoutputFileAppendix.IsNull()){
814 cout<<"-appending-to-output-file is NULL"<<endl;
818 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
825 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
831 void SetVersionLibrary(){
832 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
833 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
834 // If no, kGCusePWG4PartCorr is true.
836 TString file = gSystem->Getenv("ALICE_ROOT");
837 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
840 stream.open(file.Data());
843 kGCusePWG4PartCorr=kFALSE;
846 kGCusePWG4PartCorr=kTRUE;
853 AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments,AliAnalysisDataContainer *cin_esd=NULL){
855 if(!scanArguments(arguments)){
859 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
861 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
862 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
863 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
867 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
868 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
869 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
872 if(kGCrunOnTrain == kFALSE){
873 if(kGCnumberOfFilesToAnalyze==0){
874 ifstream dataInStream;
875 dataInStream.open(kGCdataList.Data());
876 if ( !dataInStream ){
877 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
881 while ( !dataInStream.eof() )
883 getline(dataInStream, line);
884 if(line.compare("") != 0){//checks if there is an empty line in the data list
885 kGCnumberOfFilesToAnalyze++;
889 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
891 build();//build (if necessary) and load the libraries needed
893 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
897 // for the train leave this to the steering macro
898 AliLog::SetGlobalDebugLevel(0);
899 AliLog::SetGlobalLogLevel(AliLog::kFatal);
901 // ------------------------------------------------------------------------
906 const Double_t ptmin = kGCfirstXBinPt;
907 const Double_t ptmax = kGClastXBinPt;
908 const Double_t etamin = kGCfirstXBinEta;
909 const Double_t etamax = kGClastXBinEta;
910 const Double_t massmin = kGCfirstXBinPi0Mass;
911 const Double_t massmax = kGClastXBinPi0Mass;
914 // sensitive variables
919 //how many selection steps
921 const Int_t nvar = 3;
922 const Int_t nbin0 = kGCnXBinsPt;
923 const Int_t nbin1 = kGCnXBinsEta;
924 const Int_t nbin2 = kGCnXBinsPi0Mass;
926 //arrays for the number of bins in each dimension
932 //arrays for lower bounds
933 Double_t *binLim0 = new Double_t[nbin0+1];
934 Double_t *binLim1 = new Double_t[nbin1+1];
935 Double_t *binLim2 = new Double_t[nbin2+1];
937 // values for lower bounds
938 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
939 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
940 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
943 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
944 container->SetBinLimits(ipt,binLim0);
945 container->SetBinLimits(ieta,binLim1);
946 container->SetBinLimits(imass,binLim2);
948 AliCFManager *man = new AliCFManager();
949 man->SetParticleContainer(container);
951 // end ---------------------------------------------------------------------------
956 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
957 AddHistograms(histograms);
959 // Create the Analysis manager
960 AliAnalysisManager *mgr =NULL;
961 if(kGCrunOnTrain == kFALSE){
962 mgr = new AliAnalysisManager("My Manager", "My Analysis");
965 mgr = AliAnalysisManager::GetAnalysisManager();
969 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
972 if(kGCrunOnTrain == kTRUE){
973 if (!mgr->GetInputEventHandler()) {
974 ::Error("ConfigGammaConversion", "This task requires an input event handler");
978 AliESDInputHandler* inpHandler = NULL;
980 if(kGCrunOnTrain == kFALSE){
981 // Define Input Event Handler
982 inpHandler = new AliESDInputHandler();
984 // Define MC Truth Event Handler
985 AliMCEventHandler* mcHandler = NULL;
987 if(kGCrunOnTrain == kFALSE){
988 mcHandler = new AliMCEventHandler();
991 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
994 ::Error("", "No MC handler connected");
999 // Define Output Event Handler and ad
1000 if(kGCrunOnTrain == kFALSE){
1001 if(fWriteStandardAOD == kTRUE){
1002 AliAODHandler* aodHandler = new AliAODHandler();
1003 TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root";
1004 aodHandler->SetOutputFileName(fileOutAOD);
1005 mgr->SetOutputEventHandler (aodHandler);
1009 if(kGCrunOnTrain == kFALSE){
1010 mgr->SetInputEventHandler (inpHandler);
1011 mgr->SetMCtruthEventHandler(mcHandler);
1013 // Be sure you are told what you are doing
1014 // mgr->SetDebugLevel(10);
1016 // Declare Common Input Tchain
1017 AliAnalysisDataContainer *cinput1 = NULL;
1018 if(kGCusePWG4PartCorr){
1019 if(kGCrunOnTrain == kFALSE){
1020 cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer);
1027 cinput1 = mgr->GetCommonInputContainer();
1030 // Common Output Tree in common â
\80\98defaultâ
\80\99 output file
1031 // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive?
1032 AliAnalysisDataContainer *coutput1 = NULL;
1033 if(kGCusePWG4PartCorr){
1034 // coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1035 coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1038 if(fWriteStandardAOD){
1039 coutput1 = mgr->GetCommonOutputContainer();
1043 // Private output objects
1044 if(kGCoutputFileName.Contains(".root")){
1045 kGCoutputFileName.ReplaceAll(".root","");
1047 if(kGCoutputFileAppendix.Contains(".root")){
1048 kGCoutputFileAppendix.ReplaceAll(".root","");
1050 //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
1052 TString outputfile = AliAnalysisManager::GetCommonFileName();
1053 outputfile += ":PWG4_GammaConversion";
1055 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histogramsAliGammaConversion", TList::Class(),AliAnalysisManager::kOutputContainer, outputfile);
1057 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer("GammaConvccontainer0",AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile);
1059 //------------------------ END: Define input/output handlers ---------------------------------------------------
1061 //check for errors in the specified data
1062 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
1063 //Print warning, cannot use both
1064 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
1066 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
1067 //Print warning, one have to be specified
1068 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
1072 //Create the V0Reader
1073 AliV0Reader * v0Reader = new AliV0Reader();
1074 if(kGCuseKFParticle){
1075 v0Reader->UseKFParticle();
1077 else if(kGCuseESDTrack){
1078 v0Reader->UseESDTrack();
1080 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1081 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1082 v0Reader->SetMaxRCut(kGCmaxRCut);
1083 v0Reader->SetEtaCut(kGCetaCut);
1084 v0Reader->SetPtCut(kGCptCut);
1085 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1086 v0Reader->SetLineCutZValue(kGCLineCutZValue);
1087 v0Reader->SetMaxZCut(kGCmaxZCut);
1088 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1089 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
1090 v0Reader->SetPIDProbability(kGCprobElectron);
1091 v0Reader->SetXVertexCut(kGCxVertexCut);
1092 v0Reader->SetYVertexCut(kGCyVertexCut);
1093 v0Reader->SetZVertexCut(kGCzVertexCut);
1094 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1095 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1096 v0Reader->SetDoMCTruth(kGCdoMCTruth);
1097 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
1099 v0Reader->SetCFManager(man);
1101 // for dEdx N sigma Cut
1102 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1103 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1104 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1105 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1106 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
1107 v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder);
1108 v0Reader->SetCalculateBackground(kGCcalculateBackground);
1109 // Create the GammaConversionTask
1110 AliAnalysisTaskGammaConversion *gammaconversion = new AliAnalysisTaskGammaConversion("GammaConversionTask");
1111 gammaconversion->SetDebugLevel(0);
1113 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
1115 gammaconversion->SetV0Reader(v0Reader);
1116 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
1117 gammaconversion->Init();
1119 gammaconversion->SetElectronMass(kGCelectronMass);
1120 gammaconversion->SetGammaMass(kGCgammaMass);
1121 gammaconversion->SetPi0Mass(kGCpi0Mass);
1122 gammaconversion->SetEtaMass(kGCetaMass);
1124 gammaconversion->SetGammaWidth(kGCgammaWidth);
1125 gammaconversion->SetPi0Width(kGCpi0Width);
1126 gammaconversion->SetEtaWidth(kGCetaWidth);
1128 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
1130 // define the width constraint used by KF particle.
1131 Double_t gammaWidth = 0.01;
1132 Double_t pi0Width = 0.01;
1133 Double_t etaWidth = 0.01;
1135 gammaconversion->SetHistograms(histograms);
1136 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
1138 gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B);
1139 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
1141 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
1142 gammaconversion->SetDoJet(kGCrunJet);
1143 gammaconversion->SetDoChic(kGCrunChic);
1146 gammaconversion->SetCFManager(man);
1147 gammaconversion->SetDoCF(kGCrunCF);
1148 v0Reader->SetDoCF(kGCrunCF);
1150 // Add task to the manager
1151 mgr->AddTask(gammaconversion);
1153 // Connect I/O to the task
1154 mgr->ConnectInput (gammaconversion, 0, cinput1);
1157 // CKB Output slot 0 is NOT connected if WriteStandardAOD is false?
1158 if(fWriteStandardAOD){
1159 mgr->ConnectOutput(gammaconversion, 0, coutput1);
1161 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1162 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1164 if(kGCrunOnTrain == kFALSE){
1165 if(kGCdataList.IsNull()){
1166 cout<<"Data list is not set, aborting."<<endl;
1170 if(kGCrunOnTrain == kFALSE){
1171 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
1173 mgr->InitAnalysis();
1177 mgr->StartAnalysis("local",chain);
1180 return gammaconversion;
1187 gSystem->Load("libTree.so");
1188 gSystem->Load("libGeom");
1191 //Setting up ESD.par//
1193 cout<<"compiling ESD"<<endl;
1195 gSystem->Load("libVMC.so");
1196 gSystem->Load("libESD.so");
1200 //Setting up STEERBase.par//
1202 cout<<"compiling STEERBase"<<endl;
1203 setupPar("STEERBase");
1204 gSystem->Load("libSTEERBase.so");
1207 //Setting up AOD.par//
1209 cout<<"compiling AOD"<<endl;
1211 gSystem->Load("libAOD.so");
1214 //Setting up ANALYSIS.par//
1216 cout<<"compiling ANALYSIS"<<endl;
1217 setupPar("ANALYSIS");
1218 gSystem->Load("libANALYSIS.so");
1221 //Setting up ANALYSISalice.par//
1223 cout<<"compiling ANALYSISalice"<<endl;
1224 setupPar("ANALYSISalice");
1225 gSystem->Load("libANALYSISalice.so");
1228 //Setting up CORRFW.par//
1230 cout<<"compiling CORRFW"<<endl;
1232 gSystem->Load("CORRFW.so");
1235 //Setting up PWG4GammaConv.par//
1237 cout<<"compiling PWG4GammaConv"<<endl;
1238 setupPar("PWG4GammaConv");
1239 gSystem->Load("libPWG4GammaConv.so");
1242 Int_t setupPar(const char* pararchivename) {
1246 if (pararchivename) {
1247 char processline[1024];
1248 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1249 gROOT->ProcessLine(processline);
1250 const char* ocwd = gSystem->WorkingDirectory();
1251 gSystem->ChangeDirectory(pararchivename);
1253 // check for BUILD.sh and execute
1254 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1255 printf("*******************************\n");
1256 printf("*** Building PAR archive ***\n");
1257 printf("*******************************\n");
1259 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
1260 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1264 // check for SETUP.C and execute
1265 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1266 printf("*******************************\n");
1267 printf("*** Setup PAR archive ***\n");
1268 printf("*******************************\n");
1269 gROOT->Macro("PROOF-INF/SETUP.C");
1272 gSystem->ChangeDirectory("../");
1279 void AddHistograms(AliGammaConversionHistograms *histograms){
1280 //---------------------------------------------- Jets ---------------------------------------------------------
1281 if(kGCrunJet == kTRUE){
1282 if (kGCplotdPhiHdrGam == kTRUE){
1283 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
1286 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1287 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
1290 if (kGCplotMinimumIsoDistance == kTRUE){
1291 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
1294 if (kGCplotFFzHdrGam == kTRUE){
1295 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
1298 if (kGCplotImbalanceHdrGam == kTRUE){
1299 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
1301 }//end if(kGCrunJet)
1303 //---------------------------------------------- Chi_c ---------------------------------------------------------
1306 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1308 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
1310 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1312 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1313 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
1316 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1317 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1319 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPo
1321 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1322 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","")
1324 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinE
1325 PosNegAngle,"","");}
1326 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1327 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1328 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1329 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1330 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1331 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1332 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1334 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1336 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1339 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1340 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1341 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
1343 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1344 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1346 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
1349 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
1350 if(kGCrunNeutralMeson){
1351 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
1352 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
1353 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
1354 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
1355 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1356 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1359 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1360 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1361 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1362 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1364 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1365 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1366 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1367 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1369 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1370 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1371 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1372 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1373 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1375 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1376 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1377 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1378 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1379 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1380 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
1382 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1383 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1384 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1385 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1386 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1388 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1389 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1390 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1391 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1392 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1394 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1395 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1396 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1397 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1398 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1399 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1400 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1401 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1402 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1403 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1404 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1405 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1406 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1407 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1409 if(kGCplotMCMotherSpectra == kTRUE){
1410 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1411 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1412 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1416 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1417 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1418 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1419 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1420 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1421 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1422 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1423 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1424 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1425 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1426 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1427 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1428 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1429 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1430 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1433 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1434 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1435 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1436 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1437 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1438 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1439 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1440 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1441 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1442 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1443 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1444 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1445 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1446 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1450 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1451 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1452 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1453 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1454 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1455 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1456 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1457 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1458 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1459 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1460 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1461 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1462 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1463 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1464 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1467 // Histograms from esd tracks
1468 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1469 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1470 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1471 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1473 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1474 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1475 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1476 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1478 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1479 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1480 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1481 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1482 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1483 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1484 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1485 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1486 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1487 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1488 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1489 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1493 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1494 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1495 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1496 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1498 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1499 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1500 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1501 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1502 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1503 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1504 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1505 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1510 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1511 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1512 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1513 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1514 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1515 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1516 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1517 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1518 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1519 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1520 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1521 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1523 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1524 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1525 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1526 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1528 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1529 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1530 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1531 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1532 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1533 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1534 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1535 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1538 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1539 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1540 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1544 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1545 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1546 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1547 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1548 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1549 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1550 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1551 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1552 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1553 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1554 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1555 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1557 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1558 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1559 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1560 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1562 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1563 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1564 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1565 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1566 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1567 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1570 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1571 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1573 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1574 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1575 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1579 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1580 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1581 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1582 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1583 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1584 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1585 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1586 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1587 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1588 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1591 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1592 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1593 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1594 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1595 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1596 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1597 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1598 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1599 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1600 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1603 if(kGCplotMapping == kTRUE){
1604 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1605 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
1606 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1609 if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");}
1610 if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1611 if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
1613 if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
1615 if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1616 if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1617 if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1619 if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1620 if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1621 if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1623 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, 0, 100,"","");}
1624 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, 0, 100,"","");}
1625 if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",100, 0, 100,"","");}
1628 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1629 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1630 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1631 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1632 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1633 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1635 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1636 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1638 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1639 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1640 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1641 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1642 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1643 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1644 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1646 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
1647 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
1650 if(kGCplotPi0Spectra == kTRUE){
1651 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1652 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1654 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_Fiducial" ,"Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1655 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1659 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
1660 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1661 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1663 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt_Fiducial" ,"Background Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1664 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1667 }// end kGCrunNeutralMeson