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 **************************************************************************/
18 const int c_array_size = 20;
20 class AliAnalysisDataContainer;
21 class AliGammaConversionHistograms;
22 class AliAnalysisTaskGammaConversion;
23 class AliAnalysisTaskGammaJet;
25 // set this to a number if you want to analyze a set number of files
26 // if it is 0 it will analyze the files listed in the data list
27 Int_t kGCnumberOfFilesToAnalyze=0;
29 Bool_t kGCrunNeutralMeson = kTRUE;
30 Bool_t kGCrunJet = kFALSE;
31 Bool_t kGCrunChic = kFALSE;
32 Bool_t kGCrunDalitz = kFALSE;
33 Bool_t kGCrunCF = kFALSE;
34 Bool_t kGCcalculateBackground = kTRUE;
35 Bool_t kGCdoNeutralMesonV0MCCheck =kFALSE;
36 Bool_t kGCrunOmegaMeson = kFALSE;
37 Bool_t kGCrunRES = kFALSE;
38 Bool_t kGCRecalculateV0ForGamma = kFALSE;
39 Bool_t kGCUseTrackMultiplicityForBG = kTRUE;
40 Bool_t kGCMoveParticlesAccordingToVertex = kFALSE;
41 Bool_t kGCLowMemoryConsumption = kFALSE;
42 Bool_t kGCApplyChi2Cut = kFALSE;
44 Bool_t kGCUseRotationMethodInBG=kTRUE;
45 Int_t kGCnDegreeRotationPMForBG=15;
46 Int_t kGCnumberOfRotationEventsForBG=15;
47 Bool_t kGCdoBGProbability=kFALSE;
49 Bool_t kGCRunGammaJetTask = kFALSE;
50 /** ---------------------------------- define cuts here ------------------------------------*/
51 TString kGCAnalysisCutSelectionId="90035620401003321022"; // do not change here, use -set-cut-selection in argument instead
53 Int_t kGCNEventsForBGCalculation=20;
55 Int_t kGCpidOfNegativeTrack=11;
56 Int_t kGCpidOfPositiveTrack=-11;
58 Double_t kGCmaxVertexZ = 10.;
59 Double_t kGCmaxRCut = 180.;
60 Double_t kGCminRCut = 2.8;
61 Double_t kGCetaCut = 0.9;
62 Double_t kGCptCut = 0.02;
63 Double_t kGCsingleptCut = 0.02;
64 Double_t kGCmaxZCut = 240.;
65 Double_t kGCminClsTPCCut= 0.;
66 Double_t kGCminClsTPCCutToF= 0.;
67 Double_t kGCchi2CutConversion = 30.;
68 Double_t kGCchi2CutMeson = 50.;
69 Double_t kGCalphaCutMeson = 0.7;
70 Double_t kGCalphaMinCutMeson = 0.0;
71 Double_t kGCrapidityCutMeson = 0.9;
73 Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
74 Double_t kGCLineCutZValue = 7.;
77 Double_t kGCxVertexCut = 0.;
78 Double_t kGCyVertexCut = 0.;
79 Double_t kGCzVertexCut = 0.;
81 Double_t kGCsigmaCutGammaMass=0.0001;
83 Bool_t kGCuseImprovedVertex = kTRUE;
85 Bool_t kGCUseOnFlyV0Finder = kTRUE;
87 // define masses of different particles, this will be used by the KF particle
88 // together with the width to set mass constraints. Units in GeV.
89 Double_t kGCelectronMass = 0.00051099892;
90 Double_t kGCgammaMass = 0.;
91 Double_t kGCpi0Mass = 0.1349766;
92 Double_t kGCetaMass = 0.54751;
94 // define the width constraint used by KF particle.
95 Double_t kGCgammaWidth = 0.01;
96 Double_t kGCpi0Width = 0.01;
97 Double_t kGCetaWidth = 0.01;
99 // define the probability of track being an electron
100 Double_t kGCprobElectron = 0.000;
102 Double_t kGCminOpeningAngleGhostCut = 0.005;
104 /** ---------------------------------- define pi0 dalitz cuts here ------------------------------------*/
106 Bool_t kGCRunStandalone = kFALSE;
107 Bool_t kGCUseBayesPID = kFALSE;
108 Bool_t kGCUseTrackIndexCut = kTRUE;
109 Bool_t kGCUsePsiPairCut = kTRUE;
110 Bool_t kGCUseMassCut = kFALSE;
111 Bool_t kGCUseGammaCut = kFALSE;
112 Bool_t kGCReadMagFieldSign = kTRUE;
113 Bool_t kGCUseAliKF = kFALSE;
115 Double_t kGCPsiPairCut = 0.45;
116 Double_t kGCDeltaPhiCutMin = 0.;
117 Double_t kGCDeltaPhiCutMax = 0.12;
118 Double_t kGCMassCutMin = 0.;
119 Double_t kGCMassCutMax = 0.1;
120 Double_t kGCNSigmaBelowElecTPCbethe = -2.;
121 Double_t kGCNSigmaAboveElecTPCbethe = 3.;
122 Double_t kGCNSigmaAbovePionTPCbethe = 2.;
123 Double_t kGCNSigmaAboveKaonTPCbethe = 2.;
124 Double_t kGCNSigmaAboveProtonTPCbethe = 2.;
126 Int_t kGCTrkSelectionCriteria = 1; // kITSsaTrack=0, kGlobalTrack=1, kITSsaGlobalTrack=2
127 // NOTE: for details in the track cuts and defined histograms see AddGammaConvDalitz.C
129 /** ----------------------------------end define cuts here----------------------------------*/
131 /** -------------------------------- Phi/R Mapping ---------------------------------------*/
132 Int_t kGCnPhiIndex = 8;
133 Int_t kGCnRIndex = 14;
135 Double_t kGCminRadius = 0.;
136 Double_t kGCmaxRadius = 200.;
137 Double_t kGCminPhi = -TMath::Pi();
138 Double_t kGCmaxPhi = TMath::Pi();
139 /** ------------------------------- end Phi/R Mapping ------------------------------------*/
141 Bool_t kGCdoOwnXYZCalculation = kFALSE;
142 Bool_t kGCdoConstructGamma = kFALSE;
144 /** -------------AOD stuff ---------------------------------------------------------------*/
145 TString kGCDeltaAODFilename = "AliAODGammaConversion.root"; //If empty, writes to standard common aod file.
146 Bool_t kGCWriteAOD =kTRUE; // Turn on AOD
147 Bool_t kGCForceAOD = kFALSE; // Call AliAnalysisManager::SetFillAOD(kTRUE) every ESD event.
149 /** ------------------- define which histograms to plot here --------------------------------*/
150 /** NB: to change the bin numbers, see below the histogram flags */
152 Bool_t kGCplotEventQuality = kTRUE;
155 // MC GAMMA DECAY PLOTS
156 Bool_t kGCplotMCGammaFromDecay = kTRUE;
157 // NEUTRAL MESON PLOTS
158 Bool_t kGCplotMCConversionR = kTRUE;
159 Bool_t kGCplotMCConversionZR = kTRUE;
160 Bool_t kGCplotMCConversionXY = kTRUE;
161 Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
162 Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE;
163 Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE;
166 Bool_t kGCplotMCEEnergy = kFALSE;
167 Bool_t kGCplotMCEPt = kTRUE;
168 Bool_t kGCplotMCEEta = kTRUE;
169 Bool_t kGCplotMCEPhi = kTRUE;
170 Bool_t kGCplotMCENTPCClusters = kTRUE;
171 Bool_t kGCplotMCENITSClusters = kTRUE;
173 Bool_t kGCplotMCPEnergy = kFALSE;
174 Bool_t kGCplotMCPPt = kTRUE;
175 Bool_t kGCplotMCPEta = kTRUE;
176 Bool_t kGCplotMCPPhi = kTRUE;
177 Bool_t kGCplotMCPNTPCClusters = kTRUE;
178 Bool_t kGCplotMCPNITSClusters = kTRUE;
180 Bool_t kGCplotMCallGammaEnergy = kFALSE;
181 Bool_t kGCplotMCallGammaPt = kTRUE;
182 Bool_t kGCplotMCallGammaEta = kTRUE;
183 Bool_t kGCplotMCallGammaPhi = kTRUE;
184 Bool_t kGCplotMCallGammaRapid = kTRUE;
187 Bool_t kGCplotMCConvGammaEnergy = kFALSE;
188 Bool_t kGCplotMCConvGammaPt = kTRUE;
189 Bool_t kGCplotMCConvGammaEta = kTRUE;
190 Bool_t kGCplotMCConvGammaPhi = kTRUE;
191 Bool_t kGCplotMCConvGammaRapid = kTRUE;
192 Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
194 Bool_t kGCplotMCallDirectGammaEnergy = kFALSE;
195 Bool_t kGCplotMCallDirectGammaPt = kTRUE;
196 Bool_t kGCplotMCallDirectGammaEta = kTRUE;
197 Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
198 Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
200 Bool_t kGCplotMCConvDirectGammaEnergy = kFALSE;
201 Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
202 Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
203 Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
204 Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
206 Bool_t kGCplotMCMotherEta = kTRUE;
207 Bool_t kGCplotMCMotherRapid = kTRUE;
208 Bool_t kGCplotMCMotherPhi = kTRUE;
209 Bool_t kGCplotMCMotherPt = kTRUE;
210 Bool_t kGCplotMCMotherEnergy = kFALSE;
211 Bool_t kGCplotMCMotherMass = kTRUE;
212 Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
213 Bool_t kGCplotMCMotherR = kTRUE;
214 Bool_t kGCplotMCMotherZR = kFALSE;
215 Bool_t kGCplotMCMotherXY = kFALSE;
216 Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
217 Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
218 Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
219 Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
220 Bool_t kGCplotMCMotherSpectra = kTRUE;
222 Bool_t kGCplotMCPhysicalPrimaryChargedPt = kTRUE;
224 Bool_t kGCplotMCPi0Eta = kTRUE;
225 Bool_t kGCplotMCPi0Rapid = kTRUE;
226 Bool_t kGCplotMCPi0PtvsRapid = kTRUE;
227 Bool_t kGCplotMCPi0Phi = kTRUE;
228 Bool_t kGCplotMCPi0Pt = kTRUE;
229 Bool_t kGCplotMCPi0PtFiducial = kTRUE;
230 Bool_t kGCplotMCPi0PtWithinAcceptanceFiducial = kTRUE;
231 Bool_t kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial = kTRUE;
232 Bool_t kGCplotMCPi0OpeningPtConvGammaWithinAcceptance = kTRUE;
233 Bool_t kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance = kTRUE;
234 Bool_t kGCplotMCPi0Energy = kFALSE;
235 Bool_t kGCplotMCPi0Mass = kTRUE;
236 Bool_t kGCplotMCPi0Alpha = kTRUE;
237 Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
238 Bool_t kGCplotMCPi0R = kTRUE;
239 Bool_t kGCplotMCPi0ZR = kFALSE;
240 Bool_t kGCplotMCPi0XY = kFALSE;
241 Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
242 Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
243 Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
244 Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
245 Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
247 Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
248 Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
249 Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
250 Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
251 Bool_t kGCplotMCPi0SecondaryEnergy = kFALSE;
252 Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
253 Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
254 Bool_t kGCplotMCPi0SecondaryR = kTRUE;
255 Bool_t kGCplotMCPi0SecondaryZR = kFALSE;
256 Bool_t kGCplotMCPi0SecondaryXY = kFALSE;
257 Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
258 Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
259 Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
260 Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
262 Bool_t kGCplotMCEtaEta = kTRUE;
263 Bool_t kGCplotMCEtaRapid = kTRUE;
264 Bool_t kGCplotMCEtaPtvsRapid = kTRUE;
265 Bool_t kGCplotMCEtaPhi = kTRUE;
266 Bool_t kGCplotMCEtaPt = kTRUE;
267 Bool_t kGCplotMCEtaEnergy = kFALSE;
268 Bool_t kGCplotMCEtaMass = kTRUE;
269 Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
270 Bool_t kGCplotMCEtaR = kTRUE;
271 Bool_t kGCplotMCEtaZR = kFALSE;
272 Bool_t kGCplotMCEtaXY = kFALSE;
273 Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
274 Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
275 Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
276 Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
277 Bool_t kGCplotMCEtaOpeningPtConvGammaWithinAcceptance = kTRUE;
278 Bool_t kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance = kTRUE;
279 Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
281 // Histograms from esd tracks
282 Bool_t kGCplotESDConversionR = kTRUE;
283 Bool_t kGCplotESDConversionZR = kTRUE;
284 Bool_t kGCplotESDConversionXY = kTRUE;
285 Bool_t kGCplotESDConversionXYBeamPipe = kTRUE;
286 Bool_t kGCplotESDConversionRPhiBeamPipe = kTRUE;
287 Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
288 Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE;
289 Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE;
290 Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE;
291 Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE;
292 Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE;
293 Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE;
294 Bool_t kGCplotESDConvGammaEdEdxP = kTRUE;
295 Bool_t kGCplotESDConvGammaPdEdxP = kTRUE;
296 Bool_t kGCplotESDConvGammaEeProbP = kTRUE;
297 Bool_t kGCplotESDConvGammaPeProbP = kTRUE;
298 Bool_t kGCplotESDConvGammaEmupiProbP = kTRUE;
299 Bool_t kGCplotESDConvGammaPmupiProbP = kTRUE;
301 Bool_t kGCplotESDConvGammaQtAlfa = kTRUE;
304 Bool_t kGCplotESDEEnergy = kFALSE;
305 Bool_t kGCplotESDEPt = kTRUE;
306 Bool_t kGCplotESDEEta = kTRUE;
307 Bool_t kGCplotESDEPhi = kTRUE;
308 Bool_t kGCplotESDENTPCClusters = kTRUE;
309 Bool_t kGCplotESDENITSClusters = kTRUE;
310 Bool_t kGCplotESDENTPCClustersToFP = kTRUE;
311 Bool_t kGCplotESDETPCchi2 = kTRUE;
313 Bool_t kGCplotESDPEnergy = kFALSE;
314 Bool_t kGCplotESDPPt = kTRUE;
315 Bool_t kGCplotESDPEta = kTRUE;
316 Bool_t kGCplotESDPPhi = kTRUE;
317 Bool_t kGCplotESDPNTPCClusters = kTRUE;
318 Bool_t kGCplotESDPNITSClusters = kTRUE;
319 Bool_t kGCplotESDPNTPCClustersToFP = kTRUE;
320 Bool_t kGCplotESDPTPCchi2 = kTRUE;
322 Bool_t kGCplotESDConvGammaEnergy = kFALSE;
323 Bool_t kGCplotESDConvGammaPt = kTRUE;
324 Bool_t kGCplotESDConvGammaEta = kTRUE;
325 Bool_t kGCplotESDConvGammaPhi = kTRUE;
326 Bool_t kGCplotESDConvGammaMass = kTRUE;
327 Bool_t kGCplotESDConvGammaWidth = kTRUE;
328 Bool_t kGCplotESDConvGammaChi2 = kTRUE;
329 Bool_t kGCplotESDConvGammaNDF = kTRUE;
330 Bool_t kGCplotESDConvGammaRapid = kTRUE;
331 Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
332 Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
333 Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
336 Bool_t kGCplotESDTrueDalitzContaminationR = kTRUE;
337 Bool_t kGCplotESDTrueConvGammaEnergy = kFALSE;
338 Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
339 Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
340 Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
341 Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
342 Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
343 Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
344 Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
345 Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
346 Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
347 Bool_t kGCplotESDTrueConversionR = kTRUE;
348 Bool_t kGCplotESDTrueConversionZR = kFALSE;
349 Bool_t kGCplotESDTrueConversionXY = kFALSE;
350 Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
351 Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE;
352 Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE;
353 Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE;
354 Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE;
355 Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE;
356 Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE;
357 Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE;
358 Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE;
359 Bool_t kGCplotESDTrueConvGammaQtAlfa = kTRUE;
361 Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
362 Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
363 Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
364 Bool_t kGCplotESDTrueConversionMCZR = kFALSE;
365 Bool_t kGCplotESDTrueConversionMCXY = kFALSE;
367 Bool_t kGCplotESDNoCutConvGammaEnergy = kFALSE;
368 Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
369 Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
370 Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
371 Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
372 Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
373 Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
374 Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
375 Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
376 Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
377 Bool_t kGCplotESDNoCutConversionR = kTRUE;
378 Bool_t kGCplotESDNoCutConversionZR = kFALSE;
379 Bool_t kGCplotESDNoCutConversionXY = kFALSE;
380 Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
381 Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE;
382 Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE;
383 Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE;
384 Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE;
386 Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE;
387 Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE;
388 Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE;
389 Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE;
390 Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
391 Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
392 Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
393 Bool_t kGCplotESDNoCutConversionMCZR = kFALSE;
394 Bool_t kGCplotESDNoCutConversionMCXY = kFALSE;
396 Bool_t kGCplotESDMotherChi2 = kTRUE;
397 Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
398 Bool_t kGCplotESDMotherEnergy = kFALSE;
399 Bool_t kGCplotESDMotherPt = kFALSE;
400 Bool_t kGCplotESDMotherEta = kTRUE;
401 Bool_t kGCplotESDMotherPhi = kFALSE;
402 Bool_t kGCplotESDMotherMass = kFALSE;
403 Bool_t kGCplotESDMotherR = kFALSE;
404 Bool_t kGCplotESDMotherZR = kFALSE;
405 Bool_t kGCplotESDMotherXY = kFALSE;
406 Bool_t kGCplotESDMotherRapid = kTRUE;
408 Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
409 Bool_t kGCplotESDBackgroundEnergy = kFALSE;
410 Bool_t kGCplotESDBackgroundPt = kFALSE;
411 Bool_t kGCplotESDBackgroundEta = kFALSE;
412 Bool_t kGCplotESDBackgroundPhi = kFALSE;
413 Bool_t kGCplotESDBackgroundMass = kFALSE;
414 Bool_t kGCplotESDBackgroundR = kFALSE;
415 Bool_t kGCplotESDBackgroundZR = kFALSE;
416 Bool_t kGCplotESDBackgroundXY = kFALSE;
417 Bool_t kGCplotESDBackgroundRapid = kFALSE;
419 Bool_t kGCplotMapping = kTRUE;
421 Bool_t kGCplotResolutiondPt = kTRUE;
422 Bool_t kGCplotResolutiondR = kTRUE;
423 Bool_t kGCplotResolutiondZ = kTRUE;
425 Bool_t kGCplotResolutiondRAbs = kTRUE;
426 Bool_t kGCplotResolutiondZAbs = kTRUE;
427 Bool_t kGCplotResolutiondPhiAbs = kTRUE;
429 Bool_t kGCplotResolutiondRdPt = kTRUE;
431 Bool_t kGCplotResolutionMCPt = kTRUE;
432 Bool_t kGCplotResolutionMCR = kTRUE;
433 Bool_t kGCplotResolutionMCZ = kTRUE;
435 Bool_t kGCplotResolutionESDPt = kTRUE;
436 Bool_t kGCplotResolutionESDR = kTRUE;
437 Bool_t kGCplotResolutionESDZ = kTRUE;
439 Bool_t kGCplotResolutionPtdPt = kTRUE;
441 Bool_t kGCplotESDNumberOfV0s = kTRUE;
442 Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
443 Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE;
444 Bool_t kGCplotESDNumberOfGoodESDTracks = kTRUE;
447 Bool_t kGCplotESDCutGetOnFly = kTRUE;
448 Bool_t kGCplotESDCutNContributors = kTRUE;
449 Bool_t kGCplotESDCutLikeSign = kTRUE;
450 Bool_t kGCplotESDCutRefit = kTRUE;
451 Bool_t kGCplotESDCutKink = kTRUE;
452 Bool_t kGCplotESDCutPIDProb = kTRUE;
453 Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE;
454 Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE;
455 Bool_t kGCplotESDCutPionRejectionLowP =kTRUE;
456 Bool_t kGCplotESDCutProtonRejectionLowP=kTRUE;
457 Bool_t kGCplotESDCutKaonRejectionLowP =kTRUE;
458 Bool_t kGCplotESDCutQtGammaSelection=kTRUE;
459 Bool_t kGCplotESDCutR = kTRUE;
460 Bool_t kGCplotESDCutMinR = kTRUE;
461 Bool_t kGCplotESDCutLine = kTRUE;
462 Bool_t kGCplotESDCutZ = kTRUE;
463 Bool_t kGCplotESDCutMinClsTPC = kTRUE;
464 Bool_t kGCplotESDCutMinClsTPCToF = kTRUE;
465 Bool_t kGCplotESDGoodV0s = kTRUE;
466 Bool_t kGCplotESDAllV0s = kTRUE;
467 Bool_t kGCplotESDAllV0sCurrentFinder = kTRUE;
468 Bool_t kGCplotESDAllV0sCurrentFinderQtAlfa = kTRUE;
470 Bool_t kGCplotESDCutNDF = kTRUE;
471 Bool_t kGCplotESDCutChi2 = kTRUE;
472 Bool_t kGCplotESDCutEta = kTRUE;
473 Bool_t kGCplotESDCutPt = kTRUE;
474 Bool_t kGCplotESDCutSinglePt = kTRUE;
475 Bool_t kGCplotESDTrueConvGammaTrackLength =kFALSE;
476 Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kFALSE;
478 Bool_t kGCplotPi0Spectra = kTRUE;
479 Bool_t kGCplotEtaSpectra = kTRUE;
480 Bool_t kGCplotOmegaSpectra = kTRUE;
482 /////////////Chi_c Analysis//////////////////////////
483 Bool_t kGCplotStatsElectrons = kTRUE;
484 Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
485 Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
486 Bool_t kGCplotRecEPosENegR = kTRUE;
487 Bool_t kGCplotRecEPosENegEta = kTRUE;
488 Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
489 Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
490 Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
491 Bool_t kGCplotESDElectronPosNegPt = kTRUE;
492 Bool_t kGCplotESDElectronPosNegEta = kTRUE;
493 Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
494 Bool_t kGCplotMCElectronPosNegPt = kTRUE;
495 Bool_t kGCplotMCElectronPosNegEta = kTRUE;
496 Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
497 Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
498 Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
499 Bool_t kGCplotTableElectrons = kTRUE;
500 Bool_t kGCplotESDEPosBackground = kTRUE;
501 Bool_t kGCplotESDENegBackground = kTRUE;
502 Bool_t kGCplotESDEPosENegBackground = kTRUE;
503 Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
504 Bool_t kGCplotESDePoseNegAngle = kTRUE;
505 Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
506 Bool_t kGCplotMCLabels = kTRUE;
507 ///////////////////////////////////////////////////////////////////
509 //---------------- Gamma Jet analysis ----------------------------
510 Bool_t kGCplotdPhiHdrGam = kTRUE;
511 Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
512 Bool_t kGCplotMinimumIsoDistance = kTRUE;
513 Bool_t kGCplotFFzHdrGam = kTRUE;
514 Bool_t kGCplotImbalanceHdrGam = kTRUE;
515 //----------------------------------------------------------------
518 /** ----------------- end define which histograms to plot here -------------------------------*/
522 /** ----------- Define the binning for the different plot types here -------------------------*/
523 // Number of V0s-plot
524 Int_t kGCnXBinsNV0 = 1000;
525 Double_t kGCfirstXBinNV0 = -0.5;
526 Double_t kGClastXBinNV0 = 999.5;
529 // Number of ESD track-Plot
530 Int_t kGCnXBinsESDtrk = 2000;
531 Double_t kGCfirstXBinESDtrk= -0.5;
532 Double_t kGClastXBinESDtrk = 1999.5;
536 Int_t kGCnXBinsEvtQ= 5;
537 Double_t kGCfirstXBinEvtQ=-1.5;
538 Double_t kGClastXBinEvtQ=3.5;
541 Int_t kGCnXBinsR = 400;
542 Double_t kGCfirstXBinR = 0.;
543 Double_t kGClastXBinR = 200.;
546 Int_t kGCnXBinsZR = 1000;
547 Double_t kGCfirstXBinZR = -250.;
548 Double_t kGClastXBinZR = 250.;
549 Int_t kGCnYBinsZR = 400;
550 Double_t kGCfirstYBinZR = 0.;
551 Double_t kGClastYBinZR = 200.;
554 Int_t kGCnXBinsXY = 800;
555 Double_t kGCfirstXBinXY = -200.;
556 Double_t kGClastXBinXY = 200.;
557 Int_t kGCnYBinsXY = 800;
558 Double_t kGCfirstYBinXY = -200.;
559 Double_t kGClastYBinXY = 200.;
562 Int_t kGCnXBinsXYBP = 200;
563 Double_t kGCfirstXBinXYBP = -10.;
564 Double_t kGClastXBinXYBP = 10.;
565 Int_t kGCnYBinsXYBP = 200;
566 Double_t kGCfirstYBinXYBP = -10.;
567 Double_t kGClastYBinXYBP = 10.;
569 //Rphi-plots-BeamPipe
570 Int_t kGCnXBinsRPhiBP = 200;
571 Double_t kGCfirstXBinRPhiBP = -TMath::Pi();
572 Double_t kGClastXBinRPhiBP = TMath::Pi();
573 Int_t kGCnYBinsRPhiBP = 200;
574 Double_t kGCfirstYBinRPhiBP = 0.;
575 Double_t kGClastYBinRPhiBP = 10.;
580 Int_t kGCnXBinsOpeningAngle = 400;
581 Double_t kGCfirstXBinOpeningAngle = 0.;
582 Double_t kGClastXBinOpeningAngle = TMath::Pi();
584 //CosPointingAngle-plots
585 Int_t kGCnXBinsCosPointingAngle = 400;
586 Double_t kGCfirstXBinCosPointingAngle = 0.99;
587 Double_t kGClastXBinCosPointingAngle = 1.01;
589 //DCA Daugthers-plots
590 Int_t kGCnXBinsDcaDaughters = 400;
591 Double_t kGCfirstXBinDcaDaughters= 0.;
592 Double_t kGClastXBinDcaDaughters = 5.;
594 //Norm DCA dist Daugthers-plots
595 Int_t kGCnXBinsNormDcaDistDaughters = 400;
596 Double_t kGCfirstXBinNormDcaDistDaughters= 0.;
597 Double_t kGClastXBinNormDcaDistDaughters = 10.;
600 Int_t kGCnXBinsLikelihoodAP = 400;
601 Double_t kGCfirstXBinLikelihoodAP= 0.;
602 Double_t kGClastXBinLikelihoodAP = 2.;
606 Int_t kGCnXBinsEnergy = 200;
607 Double_t kGCfirstXBinEnergy = 0.;
608 Double_t kGClastXBinEnergy = 50.;
611 Int_t kGCnXBinsP = 200;
612 Double_t kGCfirstXBinP = 0.05;
613 Double_t kGClastXBinP = 50.;
616 Int_t kGCnYBinsdEdx = 200;
617 Double_t kGCfirstYBindEdx = 0.;
618 Double_t kGClastYBindEdx = 200.;
621 Int_t kGCnYBinsEProb = 200;
622 Double_t kGCfirstYBinEProb = 0.;
623 Double_t kGClastYBinEProb = 1.;
626 Int_t kGCnYBinsQt = 250;
627 Double_t kGCfirstYBinQt = 0.;
628 Double_t kGClastYBinQt = 0.25;
633 Int_t kGCnYBinsAsymmetry = 200;
634 Double_t kGCfirstYBinAsymmetry = 0.;
635 Double_t kGClastYBinAsymmetry = 1.;
639 Int_t kGCnXBinsPt = 500;
640 Double_t kGCfirstXBinPt = 0.;
641 Double_t kGClastXBinPt = 50.;
644 Int_t kGCnXBinsEta = 40;
645 Double_t kGCfirstXBinEta = -2.;
646 Double_t kGClastXBinEta = 2.;
649 Int_t kGCnXBinsRapid = 200;
650 Double_t kGCfirstXBinRapid = -10.;
651 Double_t kGClastXBinRapid = 10.;
654 Int_t kGCnXBinsPhi = 72;
655 Double_t kGCfirstXBinPhi = -TMath::Pi();
656 Double_t kGClastXBinPhi = TMath::Pi();
659 Int_t kGCnXBinsNTPCClusters = 201;
660 Double_t kGCfirstXBinNTPCClusters = -0.5;
661 Double_t kGClastXBinNTPCClusters = 200.5;
664 Int_t kGCnXBinsNITSClusters = 7;
665 Double_t kGCfirstXBinNITSClusters = -0.5;
666 Double_t kGClastXBinNITSClusters = 6.5;
668 //TPCcluster to Findable-plots
669 Int_t kGCnYBinsClsToF = 120;
670 Double_t kGCfirstYBinClsToF = 0.;
671 Double_t kGClastYBinClsToF = 1.2;
674 Int_t kGCnXBinsTPCchi2 = 100;
675 Double_t kGCfirstXBinTPCchi2 = 0.;
676 Double_t kGClastXBinTPCchi2 = 10;
680 Int_t kGCnXBinsMapping = 800;
681 Double_t kGCfirstXBinMapping = -100.;
682 Double_t kGClastXBinMapping = 100.;
683 Int_t kGCnYBinsMapping = 40;
684 Double_t kGCfirstYBinMapping = -2;
685 Double_t kGClastYBinMapping = 2;
689 Int_t kGCnXBinsResdPt=500;
690 Int_t kGCfirstXBinResdPt= 0;
691 Int_t kGClastXBinResdPt=100;
692 Int_t kGCnYBinsResdPt=200;
693 Int_t kGCfirstYBinResdPt= -10;
694 Int_t kGClastYBinResdPt=10;
697 Int_t kGCnXBinsResdR=400;
698 Int_t kGCfirstXBinResdR= 0;
699 Int_t kGClastXBinResdR=200;
700 Int_t kGCnYBinsResdR=100;
701 Int_t kGCfirstYBinResdR= -25;
702 Int_t kGClastYBinResdR=25;
705 Int_t kGCnXBinsResdZ=80;
706 Int_t kGCfirstXBinResdZ= -20;
707 Int_t kGClastXBinResdZ=20;
708 Int_t kGCnYBinsResdZ=80;
709 Int_t kGCfirstYBinResdZ= -20;
710 Int_t kGClastYBinResdZ=20;
713 Int_t kGCnYBinsResdRdPt=400;
714 Int_t kGCfirstYBinResdRdPt= -10;
715 Int_t kGClastYBinResdRdPt=10;
718 Int_t kGCnXBinsResPt=500;
719 Int_t kGCfirstXBinResPt= 0;
720 Int_t kGClastXBinResPt=100;
723 Int_t kGCnXBinsResR=500;
724 Int_t kGCfirstXBinResR= 0;
725 Int_t kGClastXBinResR=250;
728 Int_t kGCnXBinsResZ=500;
729 Int_t kGCfirstXBinResZ= 0;
730 Int_t kGClastXBinResZ=250;
733 Int_t kGCnXBinsGammaMass = 4000;
734 Double_t kGCfirstXBinGammaMass = 0.;
735 Double_t kGClastXBinGammaMass = 1.;
738 Int_t kGCnXBinsPi0Mass = 1000;
739 Double_t kGCfirstXBinPi0Mass = 0.;
740 Double_t kGClastXBinPi0Mass = 1.;
741 Double_t kGCfirstXBinPi0Alpha = 0.;
742 Double_t kGClastXBinPi0Alpha = 1.;
746 Int_t kGCnXBinsEtaMass = 1000;
747 Double_t kGCfirstXBinEtaMass = 0.;
748 Double_t kGClastXBinEtaMass = 1.;
751 Int_t kGCnXBinsGammaWidth = 100;
752 Double_t kGCfirstXBinGammaWidth = 0.;
753 Double_t kGClastXBinGammaWidth = 1.;
756 Int_t kGCnXBinsMesonChi2 = 200;
757 Int_t kGCnXBinsGammaChi2 = 100;
758 Double_t kGCfirstXBinGammaChi2 = 0;
759 Double_t kGClastXBinGammaChi2 = 200.;
762 Int_t kGCnXBinsGammaNDF = 10;
763 Double_t kGCfirstXBinGammaNDF = 0.;
764 Double_t kGClastXBinGammaNDF = 10.;
767 Int_t kGCnXBinsSpectra = 500;
768 Double_t kGCfirstXBinSpectra = 0.;
769 Double_t kGClastXBinSpectra = 1.;
770 Int_t kGCnYBinsSpectra = 250;
771 Double_t kGCfirstYBinSpectra = 0.;
772 Double_t kGClastYBinSpectra = 25.;
774 Double_t kGCfirstXBinAlphaG = -1.;
775 Double_t kGCfirstXBinAlpha = 0.;
776 Double_t kGClastXBinAlpha = 1.;
779 Int_t kGCnXBinsTrackLength = 1000;
780 Double_t kGCfirstXBinTrackLength = 0;
781 Double_t kGClastXBinTrackLength = 500;
783 /////////Pi0 Dalitz decay AnalysisTask ///////////////////////////////////
785 Int_t kGCnXBinsDalitzMass = 4000;
786 Double_t kGCfirstXBinDalitzMass = 0.;
787 Double_t kGClastXBinDalitzMass = 4.;
789 Int_t kGCnXBinsPi0DalitzMass = 4000;
790 Double_t kGCfirstXBinPi0DalitzMass = 0.;
791 Double_t kGClastXBinPi0DalitzMass = 4.;
793 /////////Chic_Analysis///////////////////////////////////
794 Int_t kGCnXBinsEPt = 1000;
795 Double_t kGCfirstXBinEPt = 0.;
796 Double_t kGClastXBinJPsiPt = 10;
798 Int_t kGCnXBinsJPsiMass = 1000;
799 Double_t kGCfirstXBinJPsiMass = 0.;
800 Double_t kGClastXBinJPsiMass = 10.;
802 Int_t kGCnXBinsChicMass = 1000;
803 Double_t kGCfirstXBinChicMass = 0.;
804 Double_t kGClastXBinChicMass = 10.;
806 Int_t kGCnXBinsPi0Mass = 1000;
807 Double_t kGCfirstXBinPi0Mass = 0.;
808 Double_t kGClastXBinPi0Mass = 1.;
810 Int_t kGCnXBinsEPosNegPt = 1000;
811 Double_t kGCfirstXBinEPosNegPt = 0.;
812 Double_t kGClastXBinEPosNegPt = 10.;
814 Int_t kGCnXBinsEPosNegEta = 200;
815 Double_t kGCfirstXBinEPosNegEta = -1.2;
816 Double_t kGClastXBinEPosNegEta = 1.2;
818 Int_t kGCnXBinsEPosNegAngle = 200;
819 Double_t kGCfirstXBinEPosNegAngle = 0.;
820 Double_t kGClastXBinEPosNegAngle = TMath::Pi();
822 Int_t kGCnXBinsEBackground = 1000;
823 Double_t kGCfirstXBinEBackground = 0.;
824 Double_t kGClastXBinEBackground = 10.;
826 Int_t kGCnXBinsEBackgroundCut = 100;
827 Double_t kGCfirstXBinEBackgroundCut = 0.;
828 Double_t kGClastXBinEBackgroundCut = 0.015.;
830 Int_t kGCnXBinsMCLabels = 10;
831 Double_t kGCfirstXBinMCLabels = 0.;
832 Double_t kGClastXBinMCLabels = 10.;
834 Int_t kGCnElementsElectronTable = 19;
837 const char * kGCelectronTable[] = {
838 "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",
839 "ESDtracks", "Kink Cut",
840 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
841 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
842 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
846 // for Gamma Jet analysis
847 Int_t kGCnXBinsdphiHdrGam = 100;
848 Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
849 Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
851 Int_t kGCnXBinsMinimumIsoDistance = 100;
852 Double_t kGCfirstXBinMinimumIsoDistance = 0.;
853 Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
855 Int_t kGCnXBinsFFzHdrGam = 100;
856 Double_t kGCfirstXBinFFzHdrGam = 0.;
857 Double_t kGClastXBinFFzHdrGam = 5;
859 Int_t kGCnXBinsImbalanceHdrGam = 100;
860 Double_t kGCfirstXBinImbalanceHdrGam = -5.;
861 Double_t kGClastXBinImbalanceHdrGam = 5.;
862 ////////////////////////////////////////////////////////
865 /** ---------- end Define the binning for the different plot types here ----------------------*/
868 /************************************************************************************************
871 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
874 ************************************************************************************************/
875 TString kGCoutputFileName = "histogramsGammaConversion";
876 TString kGCoutputFileAppendix = "";
877 TString kGCdataList = "";
878 Bool_t kGCwriteNtuple = kFALSE;
879 // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
880 Bool_t kGCusePWG4PartCorr = kTRUE;
882 /** Flag to enable running on train */
883 Bool_t kGCrunOnTrain = kFALSE;
884 Bool_t kGCrunOnGsiTrain = kFALSE;
886 /** ------------------------------ Monte Carlo flag -----------------------------------------*/
887 Bool_t kGCdoMCTruth = kTRUE;
888 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
890 /** ------------------------------ Selecting trigger CINT1B -----------------------------------*/
891 Bool_t kGCtriggerCINT1B = kFALSE;
892 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
894 /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
895 Bool_t kGCuseKFParticle = kTRUE;
896 Bool_t kGCuseESDTrack = kFALSE;
897 /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
899 /**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/
900 Bool_t kGCdodEdxSigmaCut= kTRUE;
901 /**------------------------------end Flag to apply NsigmadEdx cut ----------*/
903 Double_t kGCPIDnSigmaAboveElectronLine=5;
904 Double_t kGCPIDnSigmaBelowElectronLine=-3;
905 Double_t kGCPIDnSigmaAbovePionLine=0;
906 Double_t kGCPIDMinPnSigmaAbovePionLine=1.;
907 Double_t kGCPIDMaxPnSigmaAbovePionLine=3.;
909 /**------- Flag to apply rejection at LowP of Kaons, protons , pions------------*/
910 Bool_t kGCdoPionRejectionLowP=kTRUE;
911 Bool_t kGCdoKaonRejectionLowP=kTRUE;
912 Bool_t kGCdoProtonRejectionLowP=kTRUE;
913 /**---------------------------------------*/
915 Double_t kGCPIDnSigmaAtLowPAroundKaonLine=0;
916 Double_t kGCPIDnSigmaAtLowPAroundProtonLine=0;
917 Double_t kGCPIDnSigmaAtLowPAroundPionLine=0;
919 Double_t kGCPIDMinPKaonRejectionLowP=1.5;
920 Double_t kGCPIDMinPProtonRejectionLowP=2.;
921 Double_t kGCPIDMinPPionRejectionLowP=0.5;
924 Bool_t kGCdoQtGammaSelection=kTRUE;
925 Double_t kGCQtMax=100.;
929 Bool_t scanArguments(TString arguments){
931 Bool_t iResult = kTRUE;
933 TString allArgs=arguments;
937 cout<<"Arguments received: "<<allArgs.Data()<<endl;
939 TObjArray* pTokens=allArgs.Tokenize(" ");
942 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
943 argument=((TObjString*)pTokens->At(i))->GetString();
945 if(argument.IsNull()) continue;
946 // -- deconvolute-time option
947 if(argument.CompareTo("-data-list") == 0){
948 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
949 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
950 if(kGCdataList.IsNull()){
951 cout<<"-data-list is NULL"<<endl;
955 cout<<"Data list is set to: "<<kGCdataList<<endl;
958 else if(argument.CompareTo("-output-file-name") == 0){
959 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
960 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
961 if(kGCoutputFileName.IsNull()){
962 cout<<"-output-file-name is NULL"<<endl;
966 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
969 else if (argument.CompareTo("-bg-off") == 0){
970 kGCcalculateBackground =kFALSE;
972 else if (argument.CompareTo("-bg-prob-off") == 0){
973 kGCdoBGProbability = kFALSE;
975 else if (argument.CompareTo("-bg-prob-on") == 0){
976 kGCdoBGProbability = kTRUE;
978 else if (argument.CompareTo("-bg-rotation-off") == 0){
979 kGCUseRotationMethodInBG = kFALSE;
981 else if (argument.CompareTo("-use-v0-multiplicity") == 0){
982 kGCUseTrackMultiplicityForBG = kFALSE;
984 else if (argument.CompareTo("-apply-chi2-cut") == 0){
985 kGCApplyChi2Cut = kTRUE;
987 else if(argument.CompareTo("-set-number-of-rotations") == 0){
988 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
989 kGCnumberOfRotationEventsForBG = ((TObjString*)pTokens->At(i))->GetString().Atoi();
991 else if(argument.CompareTo("-set-number-of-degrees") == 0){
992 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
993 kGCnDegreeRotationPMForBG = ((TObjString*)pTokens->At(i))->GetString().Atoi();
995 else if (argument.CompareTo("-low-memory") == 0){
996 kGCLowMemoryConsumption = kTRUE;
998 else if (argument.CompareTo("-move-bg-vertex") == 0){
999 kGCMoveParticlesAccordingToVertex = kTRUE;
1001 else if (argument.CompareTo("-check-neutralmeson-pi0s") == 0){
1002 kGCdoNeutralMesonV0MCCheck=kTRUE;
1004 else if (argument.CompareTo("-use-offline-finder") == 0){
1005 kGCUseOnFlyV0Finder = kFALSE;
1007 else if (argument.CompareTo("-write-ntuple") == 0){
1008 cout<<"Writing ntuple to file."<<endl;
1009 kGCwriteNtuple = kTRUE;
1011 else if (argument.CompareTo("-run-on-train") == 0){
1012 cout<<"Running on train"<<endl;
1013 //kGCWriteStandardAOD=kTRUE;
1014 kGCDeltaAODFilename="";
1015 kGCrunOnTrain = kTRUE;
1017 else if (argument.CompareTo("-run-on-gsi-train") == 0){
1018 cout<<"Running on gsi train"<<endl;
1019 //kGCWriteStandardAOD=kFALSE;
1020 kGCrunOnTrain = kTRUE;
1021 kGCrunOnGsiTrain = kTRUE;
1023 else if (argument.CompareTo("-run-jet") == 0){
1024 cout<<"Running jet analysis"<<endl;
1027 else if (argument.CompareTo("-run-gamma-jet-task") == 0){
1028 cout<<"Running gamma jet task"<<endl;
1029 kGCRunGammaJetTask= kTRUE;
1031 else if (argument.CompareTo("-run-neutralmeson") == 0){
1032 cout<<"Running neutral meson analysis"<<endl;
1033 kGCrunNeutralMeson = kTRUE;
1035 else if (argument.CompareTo("-run-neutral-meson") == 0){
1036 cout<<"Running neutral meson analysis"<<endl;
1037 kGCrunNeutralMeson = kTRUE;
1039 else if (argument.CompareTo("-run-omega-meson") == 0){
1040 cout<<"Running omega meson analysis"<<endl;
1041 kGCrunOmegaMeson = kTRUE;
1043 else if (argument.CompareTo("-run-chic") == 0){
1044 cout<<"Running Chi_c analysis"<<endl;
1047 else if (argument.CompareTo("-run-dalitz") == 0){
1048 cout<<"Running Dalitz analysis"<<endl;
1049 kGCrunDalitz = kTRUE;
1051 else if (argument.CompareTo("-run-cf") == 0){
1052 cout<<"Running CF"<<endl;
1055 else if (argument.CompareTo("-run-resolution") == 0){
1056 cout<<"Running Resolution"<<endl;
1059 else if (argument.CompareTo("-run-recalculateV0") == 0){
1060 cout<<"Running RecalculateV0ForGamma"<<endl;
1061 kGCRecalculateV0ForGamma=kTRUE;
1063 else if (argument.CompareTo("-jet-off") == 0){
1064 cout<<"Skipping jet analysis"<<endl;
1067 else if (argument.CompareTo("-neutralmeson-off") == 0){
1068 cout<<"Skipping neutral meson analysis"<<endl;
1069 kGCrunNeutralMeson = kFALSE;
1071 else if (argument.CompareTo("-neutral-meson-off") == 0){
1072 cout<<"Skipping neutral meson analysis"<<endl;
1073 kGCrunNeutralMeson = kFALSE;
1075 else if (argument.CompareTo("-chic-off") == 0){
1076 cout<<"Skipping Chi_c analysis"<<endl;
1077 kGCrunChic = kFALSE;
1079 else if (argument.CompareTo("-mc-off") == 0){
1080 cout<<"Switching off kGCdoMCTruth"<<endl;
1081 kGCdoMCTruth = kFALSE;
1083 else if (argument.CompareTo("-trigger-CINT1B") == 0){
1084 cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl;
1085 kGCtriggerCINT1B = kTRUE;
1087 else if (argument.CompareTo("-use-own-xyz") == 0){
1088 cout<<"Switching on use own xyz calculation"<<endl;
1089 kGCdoOwnXYZCalculation = kTRUE;
1091 else if (argument.CompareTo("-use-ConstructGamma") == 0){
1092 cout<<"Switching on use ConstructGamma and OFF own xyz calculation"<<endl;
1093 kGCdoOwnXYZCalculation = kFALSE;
1094 kGCdoConstructGamma = kTRUE;
1096 else if (argument.CompareTo("-no-aod") == 0){
1097 cout<<"Turning off AOD"<<endl;
1098 kGCWriteAOD = kFALSE;
1100 else if (argument.CompareTo("-force-aod") == 0){
1101 cout<<"Turning on FillAOD = kTRUE every event; If running in common train this should probably not be done!!!"<<endl;
1102 kGCForceAOD = kTRUE;
1104 else if (argument.CompareTo("-standard-aod") == 0){
1105 cout<<"Writing to standard AOD, will only work on train"<<endl;
1106 kGCDeltaAODFilename = "";
1108 else if(argument.CompareTo("-append-to-output-file") == 0){
1109 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1110 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
1111 if(kGCoutputFileAppendix.IsNull()){
1112 cout<<"-appending-to-output-file is NULL"<<endl;
1116 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
1119 else if(argument.CompareTo("-set-cut-selection") == 0){
1120 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1121 kGCAnalysisCutSelectionId = ((TObjString*)pTokens->At(i))->GetString();
1122 cout<<"The analysis cut selection is set to: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1127 if (bMissingParam) {
1128 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
1134 void SetVersionLibrary(){
1135 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
1136 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
1137 // If no, kGCusePWG4PartCorr is true.
1139 TString file = gSystem->Getenv("ALICE_ROOT");
1140 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
1143 stream.open(file.Data());
1146 kGCusePWG4PartCorr=kFALSE;
1149 kGCusePWG4PartCorr=kTRUE;
1155 AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments, AliAnalysisDataContainer *cin_esd=NULL){
1160 if(!scanArguments(arguments)){
1164 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
1166 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
1167 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
1168 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
1172 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
1173 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
1174 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
1177 if(kGCrunOnTrain == kFALSE){
1178 if(kGCnumberOfFilesToAnalyze==0){
1179 ifstream dataInStream;
1180 dataInStream.open(kGCdataList.Data());
1181 if ( !dataInStream ){
1182 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
1186 while ( !dataInStream.eof() )
1188 getline(dataInStream, line);
1189 if(line.compare("") != 0){//checks if there is an empty line in the data list
1190 kGCnumberOfFilesToAnalyze++;
1194 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
1196 build();//build (if necessary) and load the libraries needed
1198 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
1202 // for the train leave this to the steering macro
1203 AliLog::SetGlobalDebugLevel(0);
1204 AliLog::SetGlobalLogLevel(AliLog::kFatal);
1206 // ------------------------------------------------------------------------
1211 const Double_t ptmin = kGCfirstXBinPt;
1212 const Double_t ptmax = kGClastXBinPt;
1213 const Double_t etamin = kGCfirstXBinEta;
1214 const Double_t etamax = kGClastXBinEta;
1215 const Double_t massmin = kGCfirstXBinPi0Mass;
1216 const Double_t massmax = kGClastXBinPi0Mass;
1219 // sensitive variables
1224 //how many selection steps
1226 const Int_t nvar = 3;
1228 Int_t kGCnXBinsPtCF=40;
1229 Int_t kGCnXBinsEtaCF=8;
1230 Int_t kGCnXBinsPi0MassCF=10;
1236 kGCnXBinsPi0MassCF=1;
1238 const Int_t nbin0 = kGCnXBinsPtCF; // do not use same variable for CF than for histogram
1239 const Int_t nbin1 = kGCnXBinsEtaCF; // do not use same variable for CF than for histogram
1240 const Int_t nbin2 = kGCnXBinsPi0MassCF; // do not use same variable for CF than for histogram
1242 //arrays for the number of bins in each dimension
1248 //arrays for lower bounds
1249 Double_t *binLim0 = new Double_t[nbin0+1];
1250 Double_t *binLim1 = new Double_t[nbin1+1];
1251 Double_t *binLim2 = new Double_t[nbin2+1];
1253 // values for lower bounds
1254 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
1255 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
1256 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
1259 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
1260 container->SetBinLimits(ipt,binLim0);
1261 container->SetBinLimits(ieta,binLim1);
1262 container->SetBinLimits(imass,binLim2);
1264 AliCFManager *man = new AliCFManager();
1265 man->SetParticleContainer(container);
1266 for(int i = 0;i<nstep;i++){
1267 TObjArray *tmp = new TObjArray(0);
1268 man->SetParticleCutsList(i,tmp) ;
1271 // end ---------------------------------------------------------------------------
1276 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
1277 AddHistograms(histograms);
1279 // Create the Analysis manager
1280 AliAnalysisManager *mgr =NULL;
1281 if(kGCrunOnTrain == kFALSE){
1282 mgr = new AliAnalysisManager("My Manager", "My Analysis");
1285 mgr = AliAnalysisManager::GetAnalysisManager();
1289 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
1292 if(kGCrunOnTrain == kTRUE){
1293 if (!mgr->GetInputEventHandler()) {
1294 ::Error("ConfigGammaConversion", "This task requires an input event handler");
1298 AliESDInputHandler* inpHandler = NULL;
1300 if(kGCrunOnTrain == kFALSE){
1301 // Define Input Event Handler
1302 inpHandler = new AliESDInputHandler();
1304 // Define MC Truth Event Handler
1305 AliMCEventHandler* mcHandler = NULL;
1307 if(kGCrunOnTrain == kFALSE){
1308 mcHandler = new AliMCEventHandler();
1311 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
1314 ::Error("", "No MC handler connected");
1321 if(kGCrunOnTrain == kFALSE){
1322 mgr->SetInputEventHandler (inpHandler);
1323 mgr->SetMCtruthEventHandler(mcHandler);
1325 // Be sure you are told what you are doing
1326 // mgr->SetDebugLevel(10);
1328 // Declare Common Input Tchain
1329 AliAnalysisDataContainer *cinput1 = NULL;
1331 if(kGCusePWG4PartCorr){
1333 if(kGCrunOnTrain == kFALSE){
1334 cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer);
1342 cinput1 = mgr->GetCommonInputContainer();
1345 // Common Output Tree in common ??????default?????? output file
1346 // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive?
1347 AliAnalysisDataContainer *coutput1 = NULL;
1350 if(kGCrunOnTrain && !(kGCrunOnGsiTrain)) {
1351 coutput1 = mgr->GetCommonOutputContainer();
1353 coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1357 // Private output objects
1358 if(kGCoutputFileName.Contains(".root")){
1359 kGCoutputFileName.ReplaceAll(".root","");
1361 if(kGCoutputFileAppendix.Contains(".root")){
1362 kGCoutputFileAppendix.ReplaceAll(".root","");
1364 //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
1367 TString outputfile = AliAnalysisManager::GetCommonFileName();
1368 cout<<"Analyis cut selection ID is: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1369 // outputfile += Form(":PWG4_GammaConversion_%s",kGCAnalysisCutSelectionId.Data());
1370 outputfile += Form(":PWG4_GammaConversion");
1372 // if(kGCrunNeutralMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1374 // if(kGCrunJet==kTRUE) outputfile +="1"; else outputfile +="0";
1376 // if(kGCrunChic==kTRUE) outputfile +="1"; else outputfile +="0";
1378 // if(kGCrunCF==kTRUE) outputfile +="1"; else outputfile +="0";
1380 // if(kGCcalculateBackground==kTRUE) outputfile +="1"; else outputfile +="0";
1382 // if(kGCdoNeutralMesonV0MCCheck==kTRUE) outputfile +="1"; else outputfile +="0";
1384 // if(kGCrunOmegaMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1386 // if(kGCrunRES==kTRUE) outputfile +="1"; else outputfile +="0";
1388 outputfile += Form("_%s",kGCAnalysisCutSelectionId.Data());
1390 cout<<"Ouput file::"<< outputfile <<endl;
1391 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(Form("histogramsAliGammaConversion_%s",kGCAnalysisCutSelectionId.Data()), TList::Class(),AliAnalysisManager::kOutputContainer, outputfile);
1393 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(Form("GammaConvccontainer0_%s",kGCAnalysisCutSelectionId.Data()),AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile);
1395 //------------------------ END: Define input/output handlers ---------------------------------------------------
1397 //check for errors in the specified data
1398 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
1399 //Print warning, cannot use both
1400 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
1402 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
1403 //Print warning, one have to be specified
1404 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
1408 if(!SetAnalysisCutSelection(kGCAnalysisCutSelectionId)){
1409 cout<<"Error in analysis cut selection"<<endl;
1413 //Create the V0Reader
1414 AliV0Reader * v0Reader = new AliV0Reader();
1415 if(kGCuseKFParticle){
1416 v0Reader->UseKFParticle();
1418 else if(kGCuseESDTrack){
1419 v0Reader->UseESDTrack();
1422 v0Reader->SetMaxVertexZ(kGCmaxVertexZ);
1423 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1424 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1425 v0Reader->SetMaxRCut(kGCmaxRCut);
1426 v0Reader->SetMinRCut(kGCminRCut);
1427 v0Reader->SetEtaCut(kGCetaCut);
1428 v0Reader->SetRapidityMesonCut(kGCrapidityCutMeson);
1429 v0Reader->SetPtCut(kGCptCut);
1430 v0Reader->SetSinglePtCut(kGCsingleptCut);
1431 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1432 v0Reader->SetLineCutZValue(kGCLineCutZValue);
1433 v0Reader->SetMaxZCut(kGCmaxZCut);
1434 v0Reader->SetMinClsTPCCut(kGCminClsTPCCut);
1435 v0Reader->SetMinClsTPCCutToF(kGCminClsTPCCutToF);
1436 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1437 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
1438 v0Reader->SetAlphaCutMeson(kGCalphaCutMeson);
1439 v0Reader->SetAlphaMinCutMeson(kGCalphaMinCutMeson);
1440 v0Reader->SetPIDProbability(kGCprobElectron);
1441 v0Reader->SetXVertexCut(kGCxVertexCut);
1442 v0Reader->SetYVertexCut(kGCyVertexCut);
1443 v0Reader->SetZVertexCut(kGCzVertexCut);
1444 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1445 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1446 v0Reader->SetDoMCTruth(kGCdoMCTruth);
1447 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
1448 v0Reader->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
1450 v0Reader->SetCFManager(man);
1452 // for dEdx N sigma Cut
1453 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1454 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1455 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1456 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1457 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
1458 v0Reader->SetPIDMaxPnSigmaAbovePionLine(kGCPIDMaxPnSigmaAbovePionLine);
1459 v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder);
1460 v0Reader->SetCalculateBackground(kGCcalculateBackground);
1462 // for the rejection at LowP based on Dedx signal
1464 v0Reader->SetDoKaonRejectionLowP(kGCdoKaonRejectionLowP);
1465 v0Reader->SetDoProtonRejectionLowP(kGCdoProtonRejectionLowP);
1466 v0Reader->SetDoPionRejectionLowP(kGCdoPionRejectionLowP);
1467 v0Reader->SetPIDnSigmaAtLowPAroundKaonLine(kGCPIDnSigmaAtLowPAroundKaonLine);
1468 v0Reader->SetPIDnSigmaAtLowPAroundProtonLine(kGCPIDnSigmaAtLowPAroundProtonLine);
1469 v0Reader->SetPIDnSigmaAtLowPAroundPionLine(kGCPIDnSigmaAtLowPAroundPionLine);
1470 v0Reader->SetPIDMinPKaonRejectionLowP(kGCPIDMinPKaonRejectionLowP);
1471 v0Reader->SetPIDMinPProtonRejectionLowP(kGCPIDMinPProtonRejectionLowP);
1472 v0Reader->SetPIDMinPPionRejectionLowP(kGCPIDMinPPionRejectionLowP);
1473 v0Reader->SetDoQtGammaSelection(kGCdoQtGammaSelection);
1474 v0Reader->SetQtMax(kGCQtMax);
1475 v0Reader->SetNEventsForBG(kGCNEventsForBGCalculation);
1477 // Create the GammaConversionTask
1480 AliAnalysisTaskGammaConversion *gammaconversion =
1481 new AliAnalysisTaskGammaConversion(Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data()));
1483 cout<<"name of Task::"<< Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())<< " "<<gammaconversion->GetName() <<endl;
1484 gammaconversion->SetDebugLevel(0);
1486 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
1488 gammaconversion->SetV0Reader(v0Reader);
1489 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
1490 gammaconversion->Init();
1492 gammaconversion->SetElectronMass(kGCelectronMass);
1493 gammaconversion->SetGammaMass(kGCgammaMass);
1494 gammaconversion->SetPi0Mass(kGCpi0Mass);
1495 gammaconversion->SetEtaMass(kGCetaMass);
1497 gammaconversion->SetGammaWidth(kGCgammaWidth);
1498 gammaconversion->SetPi0Width(kGCpi0Width);
1499 gammaconversion->SetEtaWidth(kGCetaWidth);
1501 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
1503 Double_t lowPtMapping=0.4;
1504 Double_t highPtMapping=1.5;
1505 gammaconversion->SetLowPtMapping(lowPtMapping);
1506 gammaconversion->SetHighPtMapping(highPtMapping);
1508 // define the width constraint used by KF particle.
1509 Double_t gammaWidth = 0.01;
1510 Double_t pi0Width = 0.01;
1511 Double_t etaWidth = 0.01;
1513 gammaconversion->SetHistograms(histograms);
1514 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
1516 gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B);
1517 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
1519 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
1520 gammaconversion->SetDoNeutralMesonV0MCCheck(kGCdoNeutralMesonV0MCCheck);
1521 gammaconversion->SetDoJet(kGCrunJet);
1522 gammaconversion->SetDoChic(kGCrunChic);
1523 gammaconversion->SetDoOmegaMeson(kGCrunOmegaMeson);
1524 gammaconversion->SetRecalculateV0ForGamma(kGCRecalculateV0ForGamma);
1525 gammaconversion->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
1526 gammaconversion->SetMoveParticleAccordingToVertex(kGCMoveParticlesAccordingToVertex);
1527 gammaconversion->SetApplyChi2Cut(kGCApplyChi2Cut);
1528 cout<<"NumberOfDegrees in rotatation method set to: "<<kGCnDegreeRotationPMForBG<<endl;
1529 gammaconversion->SetPMDegreesBG(kGCnDegreeRotationPMForBG);
1530 if(kGCUseRotationMethodInBG){
1531 cout<<"Using rotation method for bg."<<endl;
1534 cout<<"Using mixed event for bg."<<endl;
1536 gammaconversion->SetDoRotation(kGCUseRotationMethodInBG);
1537 cout<<"Using :"<<kGCnumberOfRotationEventsForBG<<" rotations in bg calculation"<<endl;
1538 gammaconversion->SetNumberOfRotationsBG(kGCnumberOfRotationEventsForBG);
1539 gammaconversion->SetCheckBGProbability(kGCdoBGProbability);
1542 gammaconversion->SetCFManager(man);
1543 gammaconversion->SetDoCF(kGCrunCF);
1544 v0Reader->SetDoCF(kGCrunCF);
1546 // Add task to the manager
1547 mgr->AddTask(gammaconversion);
1550 // Define Output Event Handler and add
1552 gammaconversion->SetForceAOD(kGCForceAOD);
1554 if( kGCrunOnTrain ) {
1556 AliAODHandler * aodHandler = dynamic_cast<AliAODHandler*>(mgr->GetOutputEventHandler());
1558 ::Error("This task requires an AOD handler");
1562 gammaconversion->SetDeltaAODFileName(kGCDeltaAODFilename);
1564 if(kGCDeltaAODFilename.Length() > 0) {
1565 mgr->RegisterExtraFile(kGCDeltaAODFilename.Data());
1569 if(kGCDeltaAODFilename.Length() == 0 ) {
1570 cout << "Error:: Need a file name for the AOD"<<endl;
1573 AliAODHandler* aodHandler = new AliAODHandler();
1574 aodHandler->SetOutputFileName(kGCDeltaAODFilename);
1575 aodHandler->SetCreateNonStandardAOD();
1576 mgr->SetOutputEventHandler(aodHandler);
1580 // Connect I/O to the task
1581 mgr->ConnectInput (gammaconversion, 0, cinput1);
1582 if(mgr->GetCommonOutputContainer())
1583 mgr->ConnectOutput(gammaconversion, 0, mgr->GetCommonOutputContainer());
1585 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1586 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1588 if(kGCRunGammaJetTask) {
1589 AliAnalysisTaskGammaJet * gammaJetTask = new AliAnalysisTaskGammaJet("GammaJetTask");
1591 gammaJetTask->SetDeltaAODFileName(kGCDeltaAODFileName);
1594 mgr->ConnectInput(gammaJetTask, 0, cinput1);
1595 AliAnalysisDataContainer *coutputgj = mgr->CreateContainer("chistpt", TList::Class(), AliAnalysisManager::kOutputContainer, "AnalysisResultsConvJets.root");
1596 mgr->ConnectOutput(gammaJetTask, 1, coutputgj);
1602 gROOT->LoadMacro("$ALICE_ROOT/PWG4/macros/AddTaskGammaConvDalitz.C");
1603 AddTaskGammaConvDalitz( v0Reader, kGCcalculateBackground, kGCRunStandalone );
1607 if(kGCrunOnTrain == kFALSE){
1608 if(kGCdataList.IsNull()){
1609 cout<<"Data list is not set, aborting."<<endl;
1613 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1614 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
1615 if(kGCdoMCTruth)physSelTask->GetPhysicsSelection()->SetAnalyzeMC();
1616 physSelTask->GetPhysicsSelection()->AddBackgroundIdentification(new AliBackgroundSelection());
1617 gammaconversion->SelectCollisionCandidates();
1620 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1621 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kGCdoMCTruth,kTRUE);
1622 gammaconversion->SelectCollisionCandidates();
1624 // if(kGCrunOnTrain == kFALSE){
1625 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
1627 mgr->InitAnalysis();
1631 mgr->StartAnalysis("local",chain);
1634 return gammaconversion;
1641 gSystem->Load("libTree.so");
1642 gSystem->Load("libGeom");
1644 TString pwd = gSystem->WorkingDirectory();
1647 //Setting up STEERBase.par//
1649 cout<<"compiling STEERBase"<<endl;
1650 setupPar("STEERBase");
1651 gSystem->Load("libSTEERBase.so");
1655 //Setting up ESD.par//
1657 cout<<"compiling ESD"<<endl;
1659 gSystem->Load("libVMC.so");
1660 gSystem->Load("libESD.so");
1664 //Setting up AOD.par//
1666 cout<<"compiling AOD"<<endl;
1668 gSystem->Load("libAOD.so");
1671 //Setting up ANALYSIS.par//
1673 cout<<"compiling ANALYSIS"<<endl;
1674 setupPar("ANALYSIS");
1675 gSystem->Load("libANALYSIS.so");
1678 //Setting up ANALYSISalice.par//
1680 cout<<"compiling ANALYSISalice"<<endl;
1681 setupPar("ANALYSISalice");
1682 gSystem->Load("libANALYSISalice.so");
1685 //Setting up CORRFW.par//
1687 cout<<"compiling CORRFW"<<endl;
1689 gSystem->Load("libCORRFW.so");
1692 //Setting up PWG4GammaConv.par//
1694 cout<<"compiling PWG4GammaConv"<<endl;
1695 setupPar("PWG4GammaConv");
1696 gSystem->Load("libPWG4GammaConv.so");
1698 gSystem->ChangeDirectory(pwd.Data());
1701 Int_t setupPar(const char* pararchivename) {
1705 if (pararchivename) {
1706 char processline[1024];
1707 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1708 gROOT->ProcessLine(processline);
1709 const char* ocwd = gSystem->WorkingDirectory();
1710 gSystem->ChangeDirectory(pararchivename);
1712 // check for BUILD.sh and execute
1713 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1714 printf("*******************************\n");
1715 printf("*** Building PAR archive ***\n");
1716 printf("*******************************\n");
1718 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
1719 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1723 // check for SETUP.C and execute
1724 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1725 printf("*******************************\n");
1726 printf("*** Setup PAR archive ***\n");
1727 printf("*******************************\n");
1728 gROOT->Macro("PROOF-INF/SETUP.C");
1731 gSystem->ChangeDirectory("../");
1738 void AddHistograms(AliGammaConversionHistograms *histograms){
1739 //---------------------------------------------- Jets ---------------------------------------------------------
1740 if(kGCrunJet == kTRUE){
1741 if (kGCplotdPhiHdrGam == kTRUE){
1742 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
1745 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1746 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
1749 if (kGCplotMinimumIsoDistance == kTRUE){
1750 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
1753 if (kGCplotFFzHdrGam == kTRUE){
1754 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
1757 if (kGCplotImbalanceHdrGam == kTRUE){
1758 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
1760 }//end if(kGCrunJet)
1762 //---------------------------------------------- Chi_c ---------------------------------------------------------
1765 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1767 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
1769 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1771 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1772 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
1775 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1776 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1778 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1780 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1781 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1782 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1783 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1784 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1785 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1787 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1789 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1792 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1793 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1794 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
1796 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1797 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1799 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
1802 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1803 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","");}
1804 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1805 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1811 //---------------------------------------------- Gamma from Decay ----------------------------------------------------
1812 if(kGCplotMCGammaFromDecay == kTRUE && kGCdoMCTruth == kTRUE){
1813 histograms->AddHistogram("MC_DecayPi0Gamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1814 histograms->AddHistogram("MC_DecayRho0Gamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1815 histograms->AddHistogram("MC_DecayEtaGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1816 histograms->AddHistogram("MC_DecayOmegaGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1817 histograms->AddHistogram("MC_DecayK0sGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1818 histograms->AddHistogram("MC_DecayEtapGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1819 histograms->AddHistogram("MC_DecayAllGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1822 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
1823 if(kGCrunNeutralMeson){
1825 // Histograms from esd tracks
1826 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1827 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1828 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1829 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1830 if(kGCplotESDENTPCClusters == kTRUE){ histograms->AddHistogram("ESD_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1831 if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1832 if(kGCplotESDENTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
1833 if(kGCplotESDETPCchi2 == kTRUE){ histograms->AddHistogram("ESD_E_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1836 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1837 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1838 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1839 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1840 if(kGCplotESDPNTPCClusters == kTRUE){ histograms->AddHistogram("ESD_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1841 if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1842 if(kGCplotESDPNTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
1843 if(kGCplotESDPTPCchi2 == kTRUE){ histograms->AddHistogram("ESD_P_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1845 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1846 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1847 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1848 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1849 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1850 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1851 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1852 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1853 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1854 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1855 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1856 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1860 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1861 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1862 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1863 if(kGCplotESDConversionXYBeamPipe == kTRUE && kGCLowMemoryConsumption == kFALSE){ histograms->AddHistogram("ESD_Conversion_XY_BeamPipe" ,"" , kGCnXBinsXYBP, kGCfirstXBinXYBP, kGClastXBinXYBP, kGCnYBinsXYBP, kGCfirstYBinXYBP, kGClastYBinXYBP, "", "");}
1864 if(kGCplotESDConversionRPhiBeamPipe == kTRUE && kGCLowMemoryConsumption == kFALSE){ histograms->AddHistogram("ESD_Conversion_RPhi_BeamPipe" ,"" , kGCnXBinsRPhiBP, kGCfirstXBinRPhiBP, kGClastXBinRPhiBP, kGCnYBinsRPhiBP, kGCfirstYBinRPhiBP, kGClastYBinRPhiBP, "", "");}
1865 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1867 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1868 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1869 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1870 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1871 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1872 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1873 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1874 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1876 if(kGCplotESDConvGammaEeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1877 if(kGCplotESDConvGammaPeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1878 if(kGCplotESDConvGammaEmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1879 if(kGCplotESDConvGammaPmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1881 if(kGCplotESDConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
1885 if(kGCplotESDTrueDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueDalitzContamination_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1887 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1888 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1889 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1890 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1891 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1892 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1893 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1894 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1895 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1896 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1897 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1898 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1900 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1901 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1902 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1903 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1905 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1906 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1907 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1908 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1909 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1910 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1911 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1912 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1913 if(kGCplotESDTrueConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
1915 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1916 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1917 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1921 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1922 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1923 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1924 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1925 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1926 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1927 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1928 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1929 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1930 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1931 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1932 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1934 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1935 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1936 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1937 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1939 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1940 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1941 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1942 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1943 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1944 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1947 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1948 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1950 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1951 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1952 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1955 if(kGCplotESDMotherChi2 == kTRUE){ histograms->AddHistogram("ESD_Mother_Chi2","" , kGCnXBinsMesonChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1956 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1957 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1958 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1959 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1960 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1961 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1962 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1963 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1964 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1965 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1967 for(Int_t z=0;z<8;z++){
1968 for(Int_t m=0;m<6;m++){
1969 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_GammaDaughter_OpeningAngle",z,m) ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1970 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Energy",z,m) ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1971 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Pt",z,m) ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1972 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Eta",z,m) ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1973 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Phi",z,m) ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1974 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Mass",z,m) ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1975 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_R",z,m) ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1976 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_ZR",z,m) ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1977 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_XY",z,m) ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1978 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Rapid",z,m) ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1982 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1983 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1984 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1985 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1986 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1987 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1988 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1989 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1990 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1991 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1994 if(kGCplotMapping == kTRUE){
1995 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1996 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
1997 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
2001 //************************************* Defining Resolution histograms *******************************************************/
2003 // written by Friederike Bock
2004 // contact: Friederike.Bock@cern.ch
2007 if(kGCrunRES == kTRUE){
2008 //------------------------------------------ Absolute Resolutions --------------------------------------------------------
2009 if(kGCplotResolutiondRAbs== kTRUE){
2010 histograms->AddHistogram("Resolution_dRAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2011 if(kGCplotResolutiondZAbs== kTRUE){
2012 histograms->AddHistogram("Resolution_dZAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2013 if(kGCplotResolutiondPhiAbs== kTRUE){
2014 histograms->AddHistogram("Resolution_dPhiAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR, -TMath::Pi()/30., TMath::Pi()/30., "", "");}
2016 //------------------------------------------ Relative Resolutions --------------------------------------------------------
2017 if(kGCplotResolutiondR == kTRUE){
2018 histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2019 if(kGCplotResolutiondZ == kTRUE){
2020 histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
2022 //------------------------------------------- Pt vs R ---------------------------------------------------------------------
2023 if(kGCplotResolutiondRdPt == kTRUE){
2024 histograms->AddHistogram("Resolution_R_dPt" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
2027 // ------------------------------------------- Reconstruction Plots for Resolution ----------------------------------------
2028 if(kGCplotResolutionMCPt == kTRUE){
2029 histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
2030 if(kGCplotResolutionMCR == kTRUE){
2031 histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
2032 if(kGCplotResolutionMCZ == kTRUE){
2033 histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
2035 if(kGCplotResolutionESDPt == kTRUE){
2036 histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
2037 if(kGCplotResolutionESDR == kTRUE){
2038 histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
2039 if(kGCplotResolutionESDZ == kTRUE){
2040 histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
2042 // ------------------------------------------- Plots for specific Gamma Trigger Studies -----------------------------------
2043 if(kGCplotResolutionPtdPt = kTRUE){
2044 // ::::::::::::::::::::::::::::::::::::::: histograms for gammas ::::::::::::::::::::::::::::::::::::::::::::::::::::::
2045 histograms->AddHistogram("Resolution_Gamma_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2046 histograms->AddHistogram("Resolution_Gamma_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2048 // ::::::::::::::::::::::::::::::::::::::: histograms for electrons :::::::::::::::::::::::::::::::::::::::::::::::::::
2049 histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2050 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2051 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2052 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2053 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2054 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2055 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2056 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2057 histograms->AddHistogram("Resolution_E_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2058 histograms->AddHistogram("Resolution_E_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2059 histograms->AddHistogram("Resolution_E_nTRDtracklets_MCPt","" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2060 histograms->AddHistogram("Resolution_E_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
2061 histograms->AddHistogram("Resolution_E_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
2062 // histograms->AddHistogram("Resolution_E_TRDsignal_ESDPt","", fV0Reader->GetNegativeTrackPt(), fV0Reader->GetNegativeESDTrack()->GetTRDsignal());
2064 // :::::::::::::::::::::::::::::::::::::::: histograms for positrons :::::::::::::::::::::::::::::::::::::::::::::::::::
2065 histograms->AddHistogram("Resolution_P_dPt_Pt" ,"" , kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2066 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2067 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2068 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2069 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2070 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2071 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2072 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2073 histograms->AddHistogram("Resolution_P_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2074 histograms->AddHistogram("Resolution_P_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2075 histograms->AddHistogram("Resolution_P_nTRDtracklets_MCPt","", kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2076 histograms->AddHistogram("Resolution_P_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
2077 histograms->AddHistogram("Resolution_P_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201,-0.5, 200.5,"", "");
2078 // histograms->AddHistogram("Resolution_P_TRDsignal_ESDPt", "",fV0Reader->GetPositiveTrackPt(), fV0Reader->GetPositiveESDTrack()->GetTRDsignal());
2079 } //end of specific trigger study resolution plots
2080 } //end if(kGCrunRES=true)
2082 // ___________________________________________________________________________________________________________________________________________________
2084 if(kGCplotEventQuality == kTRUE){histograms->AddHistogram("ESD_EventQuality","ESD_EventQuality",kGCnXBinsEvtQ,kGCfirstXBinEvtQ,kGClastXBinEvtQ,"","");}
2085 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",kGCnXBinsNV0,kGCfirstXBinNV0 ,kGClastXBinNV0 ,"","");}
2086 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",kGCnXBinsNV0, kGCfirstXBinNV0 , kGClastXBinNV0,"","");}
2087 if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
2088 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracks","Number of Good ESD tracks",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
2089 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracksVtx","Number of Good ESD tracks",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
2092 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2093 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2094 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2095 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2096 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2097 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2099 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2100 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2101 if(kGCplotESDCutPionRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutPionRejectionLowP_InvMass" ,"dedx PionRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2102 if(kGCplotESDCutKaonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutKaonRejectionLowP_InvMass" ,"dedx KaonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2103 if(kGCplotESDCutQtGammaSelection==kTRUE){histograms->AddHistogram("ESD_CutQt_InvMass","ESD_CutQt_InvMass",kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2105 if(kGCplotESDCutProtonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutProtonRejectionLowP_InvMass" ,"dedx ProtonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2106 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2107 if(kGCplotESDCutMinR == kTRUE){histograms->AddHistogram("ESD_CutMinR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2108 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2109 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2110 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2111 if(kGCplotESDCutSinglePt == kTRUE){histograms->AddHistogram("ESD_CutSinglePt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2112 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2113 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2114 if(kGCplotESDCutZ == kTRUE){histograms->AddHistogram("ESD_CutZ_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2115 if(kGCplotESDCutMinClsTPC == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPC_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2116 if(kGCplotESDCutMinClsTPCToF == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPCToF_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2118 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2119 if(kGCplotESDAllV0s == kTRUE){histograms->AddHistogram("ESD_AllV0s_InvMass" ,"All V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2120 if(kGCplotESDAllV0sCurrentFinder == kTRUE){histograms->AddHistogram("ESD_AllV0sCurrentFinder_InvMass" ,"All V0s Current Finder" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2122 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
2123 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_goodtracks_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
2125 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
2126 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
2128 if(kGCplotOmegaSpectra == kTRUE){
2129 histograms->AddHistogram("ESD_Omega_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2130 histograms->AddHistogram("ESD_Omega_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2132 histograms->AddHistogram("ESD_Omega_Bck_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2133 histograms->AddHistogram("ESD_Omega_Bck_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2134 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2135 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2139 if(kGCplotPi0Spectra == kTRUE){
2140 histograms->AddHistogram("ESD_Mother_alfa","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
2141 histograms->AddHistogram("ESD_Mother_alfa_Pi0","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
2143 // histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2144 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2145 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2146 histograms->AddHistogram("ESD_Mother_InvMass_vs_E_alpha" ,"Invariant Mass vs E" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","E [GeV]");
2147 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2148 histograms->AddHistogram("ESD_Mother_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2149 histograms->AddHistogram("ESD_Mother_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2150 histograms->AddHistogram("ESD_Mother_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2151 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2152 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2153 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2155 if(kGCLowMemoryConsumption == kFALSE){
2156 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2157 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvPHOS" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2158 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2159 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2161 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2162 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_Bck","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2164 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2165 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL_Bck" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2167 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2168 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2171 // if(kGCdoNeutralMesonV0MCCheck == kTRUE){
2172 histograms->AddHistogram("ESD_TrueBckGG_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2173 histograms->AddHistogram("ESD_TrueBckCont_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2174 histograms->AddHistogram("ESD_TruePi0Sec_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2176 histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2177 histograms->AddHistogram("ESD_TruePi0_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2178 histograms->AddHistogram("ESD_TruePi0_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2179 histograms->AddHistogram("ESD_TruePi0_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2180 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_1212" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2181 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0912" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2182 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0909" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2183 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2184 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2186 if(kGCLowMemoryConsumption == kFALSE){
2187 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2188 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2189 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2193 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]");
2195 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2200 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
2201 for(Int_t m=0;m<6;m++){
2202 histograms->AddHistogram(Form("%dESD_Mother_InvMass_vs_Pt",m) ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2204 for(Int_t z=0;z<8;z++){
2205 for(Int_t m=0;m<6;m++){
2206 histograms->AddHistogram(Form("%d%dESD_Mother_InvMass_vs_Pt",z,m) ,"ESD Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2208 histograms->AddHistogram(Form("%d%dESD_Background_InvMass_vs_Pt",z,m) ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2211 histograms->AddHistogram(Form("%d%dESD_Background_InvMass",z,m),"Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2212 histograms->AddHistogram(Form("%d%dESD_Mother_InvMass",z,m),"Invariant mass in z and m bins",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2215 histograms->AddHistogram(Form("%d%dESD_Background_InvMassvsPtFid",z,m) ,"Background Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2218 histograms->AddHistogram(Form("%d%dESD_Background_InvMass_Fiducial",z,m),"Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2222 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2223 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt_alpha" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2225 histograms->AddHistogram("ESD_Background_InvMass_vs_E_alpha" ,"Background Invariant Mass vs E" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","E [GeV]");
2227 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2229 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]");
2230 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2235 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
2236 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
2237 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
2238 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
2239 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2240 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2243 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2244 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2245 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2246 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2247 if(kGCplotMCENTPCClusters == kTRUE){ histograms->AddHistogram("MC_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2248 if(kGCplotMCENITSClusters == kTRUE){ histograms->AddHistogram("MC_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2250 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2251 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2252 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2253 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2254 if(kGCplotMCPNTPCClusters == kTRUE){ histograms->AddHistogram("MC_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2255 if(kGCplotMCPNITSClusters == kTRUE){ histograms->AddHistogram("MC_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2257 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2258 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2259 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2260 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2261 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2263 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2264 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2265 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2266 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2267 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2268 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
2270 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2271 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2272 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2273 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2274 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2276 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2277 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2278 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2279 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2280 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2282 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2283 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2284 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2285 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2286 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2287 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
2288 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2289 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2290 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2291 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2292 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2293 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2294 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2295 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2297 if(kGCplotMCMotherSpectra == kTRUE){
2298 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2299 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2300 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2303 if(kGCplotMCPhysicalPrimaryChargedPt == kTRUE){ histograms->AddHistogram("MC_PhysicalPrimaryCharged_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2304 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2305 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2306 if(kGCplotMCPi0PtvsRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_vs_Rapid" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2307 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2308 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2310 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2311 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2312 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2314 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2315 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2316 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2318 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2319 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2320 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2323 if(kGCplotMCPi0PtFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Fiducial" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2324 if(kGCplotMCPi0PtWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_withinAcceptance_Fiducial" ,"" , kGCnXBinsPt,kGCfirstXBinPt, kGClastXBinPt, "", "");}
2325 if(kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_ConvGamma_withinAcceptance_Fiducial","" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2326 if(kGCplotMCPi0OpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2327 if(kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2328 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2329 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2330 if(kGCplotMCPi0Alpha == kTRUE){ histograms->AddHistogram("MC_Pi0_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");}
2332 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2333 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2334 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2335 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2336 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2337 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2338 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2339 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2340 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2343 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2344 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2345 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2346 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2347 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2348 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2349 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2350 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2351 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2352 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2353 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2354 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2355 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2356 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2360 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2361 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2362 if(kGCplotMCEtaPtvsRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_vs_Rapid" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2363 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2364 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2365 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2366 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
2367 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2368 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2369 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2370 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2371 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2372 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2373 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2374 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2375 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2377 if(kGCplotMCEtaOpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2378 if(kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2379 }// end kGCrunNeutralMeson
2382 //--------------------------------------------------- 2 gamma Background -------------------------------------------------------
2384 if(kGCcalculateBackground==kTRUE){
2385 histograms->AddHistogram("ESD_Z_distribution" ,"Z primary vertex" , 2000, -30, 30,"Z[cm]","counts");
2386 histograms->AddHistogram("ESD_multiplicity_distribution" ,"multiplicity distribution" , 200, 0, 200,"counts","Multiplicity");
2387 histograms->AddHistogram("ESD_ZvsMultiplicity" ,"Z vs Multiplicity" , 1000, -10, 10,200,0,200,"Z[cm]","Multiplicity");
2390 if(kGCRecalculateV0ForGamma==kTRUE){
2391 histograms->AddHistogram("ESD_RecalculateV0_InvMass","", kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");
2392 histograms->AddHistogram("ESD_RecalculateV0_Pt","",kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
2393 histograms->AddHistogram("ESD_RecalculateV0_E_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2394 histograms->AddHistogram("ESD_RecalculateV0_P_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2395 histograms->AddHistogram("ESD_RecalculateV0_cpa","",1000,-1.,1.,"","");
2396 histograms->AddHistogram("ESD_RecalculateV0_dca","",100,0.,10.,"","");
2397 histograms->AddHistogram("ESD_RecalculateV0_Rr","",250,0.,250.,"","");
2398 histograms->AddHistogram("ESD_RecalculateV0_normdistP","",250,0.,250.,"","");
2399 histograms->AddHistogram("ESD_RecalculateV0_normdistN","",250,0.,250.,"","");
2401 histograms->AddHistogram("ESD_RecalculateGG_InvMass","",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2402 histograms->AddHistogram("ESD_RecalculateGG_InvMass_vs_Pt","", kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2411 Int_t SetAnalysisCutSelection(TString analysisCutSelection){
2414 // set the cuts depending on the Cut Selection Id
2415 // first number is dummy always set to 9
2416 // const char* cutSelection = analysisCutSelection.Data();
2417 if(analysisCutSelection.Length()!=c_array_size){
2418 cout<<"Cut selection has the wrong length!"<<endl;
2422 char cutSelection[] = analysisCutSelection.Data();
2423 int array[c_array_size];
2424 const int N = sizeof(array) / sizeof(int);
2425 string2array( cutSelection, array );
2429 Int_t goodId=array[0];
2430 Int_t v0FinderType=array[1];
2431 Int_t eProbCut=array[2];
2432 Int_t ededxSigmaCut=array[3];
2433 Int_t pidedxSigmaCut=array[4];
2434 Int_t piMomdedxSigmaCut=array[5];
2435 Int_t chi2GammaCut=array[6];
2436 Int_t singlePtCut=array[7];
2437 Int_t clsTPCCut=array[8];
2438 Int_t etaCut=array[9];
2439 Int_t chi2MesonCut=array[10];
2440 Int_t LowPRejectionSigmaCut=array[11];
2441 Int_t QtMaxCut=array[12];
2442 Int_t piMaxMomdedxSigmaCut=array[13];
2443 Int_t alphaMesonCut=array[14];
2444 Int_t minRCut=array[15];
2445 Int_t RapidityMesonCut=array[16];
2446 Int_t BackgroundScheme=array[17];
2447 Int_t DegreesForRotationMethod=array[18];
2448 Int_t NumberOfRotations=array[19];
2450 cout<<"NumberOfRotations::"<<NumberOfRotations<<endl;
2451 cout<<"DegreesForRotationMethod::"<<DegreesForRotationMethod<<endl;
2452 cout<<"BackgroundScheme::"<<BackgroundScheme<<endl;
2453 cout<<"RapidityMesonCut::"<<RapidityMesonCut<<endl;
2454 cout<<"minRCut::"<<minRCut<<endl;
2455 cout<<"alphaMesonCut::"<<alphaMesonCut<<endl;
2456 cout<<"piMaxMomdedxSigmaCut::"<<piMaxMomdedxSigmaCut<<endl;
2457 cout<<"QtMaxCut:"<<QtMaxCut<<endl;
2458 cout<<"LowPRejectionSigmaCut:"<<LowPRejectionSigmaCut<<endl;
2459 cout<<"chi2MesonCut: "<< chi2MesonCut<<endl;
2460 cout<<"etaCut: "<<etaCut<<endl;
2461 cout<<"clsTPCCut: "<<clsTPCCut<<endl;
2462 cout<<"singlePtCut: "<<singlePtCut<<endl;
2463 cout<<"chi2GammaCut: "<<chi2GammaCut<<endl;
2464 cout<<"piMomdedxSigmaCut: "<<piMomdedxSigmaCut<<endl;
2465 cout<<"pidedxSigmaCut: "<<pidedxSigmaCut <<endl;
2466 cout<<"ededxSigmaCut: "<<ededxSigmaCut <<endl;
2467 cout<<"eProbCut: "<< eProbCut<<endl;
2468 cout<<"v0FinderType: "<<v0FinderType <<endl;
2469 cout<<"goodId: "<<goodId <<endl;
2472 cout<<"Analysis Cut Selection too short or does not start with 9"<<endl;
2476 switch (v0FinderType){
2477 case 0: // on fly V0 finder
2478 kGCUseOnFlyV0Finder=kTRUE;
2480 case 1: // offline V0 finder
2481 kGCUseOnFlyV0Finder=kFALSE;
2492 kGCprobElectron=0.1;
2495 kGCprobElectron=0.5;
2498 kGCprobElectron=0.7;
2504 switch(ededxSigmaCut){
2506 kGCPIDnSigmaBelowElectronLine=-10;
2507 kGCPIDnSigmaAboveElectronLine=10;
2510 kGCPIDnSigmaBelowElectronLine=-5;
2511 kGCPIDnSigmaAboveElectronLine=5;
2514 kGCPIDnSigmaBelowElectronLine=-3;
2515 kGCPIDnSigmaAboveElectronLine=5;
2518 kGCPIDnSigmaBelowElectronLine=-4;
2519 kGCPIDnSigmaAboveElectronLine=5;
2525 switch(pidedxSigmaCut){
2527 kGCPIDnSigmaAbovePionLine=-10;
2530 kGCPIDnSigmaAbovePionLine=0;
2533 kGCPIDnSigmaAbovePionLine=1;
2536 kGCPIDnSigmaAbovePionLine=-1;
2539 kGCPIDnSigmaAbovePionLine=-1.5;
2542 kGCPIDnSigmaAbovePionLine=2.;
2549 switch(piMomdedxSigmaCut){
2551 kGCPIDMinPnSigmaAbovePionLine=0.5;
2554 kGCPIDMinPnSigmaAbovePionLine=1.;
2557 kGCPIDMinPnSigmaAbovePionLine=1.5;
2560 kGCPIDMinPnSigmaAbovePionLine=20.;
2563 kGCPIDMinPnSigmaAbovePionLine=50.;
2566 kGCPIDMinPnSigmaAbovePionLine=0.3;
2569 kGCPIDMinPnSigmaAbovePionLine=0.25;
2572 kGCPIDMinPnSigmaAbovePionLine=0.4;
2578 switch(chi2GammaCut){
2580 kGCchi2CutConversion = 100.;
2583 kGCchi2CutConversion = 50.;
2586 kGCchi2CutConversion = 30.;
2589 kGCchi2CutConversion = 200.;
2592 kGCchi2CutConversion = 500.;
2595 kGCchi2CutConversion = 1000.;
2598 kGCchi2CutConversion = 5.;
2601 kGCchi2CutConversion = 10.;
2604 kGCchi2CutConversion = 20.;
2607 kGCchi2CutConversion = 15.;
2613 switch(singlePtCut){
2614 case 0: // 0.050 GeV
2615 kGCsingleptCut = 0.050;
2617 case 1: // 0.100 GeV
2618 kGCsingleptCut = 0.100;
2620 case 2: // 0.150 GeV
2621 kGCsingleptCut = 0.150;
2623 case 3: // 0.200 GeV
2624 kGCsingleptCut = 0.200;
2626 case 4: // 0.075 GeV
2627 kGCsingleptCut = 0.075;
2629 case 5: // 0.125 GeV
2630 kGCsingleptCut = 0.125;
2638 kGCminClsTPCCut= 0.;
2641 kGCminClsTPCCut= 70.;
2644 kGCminClsTPCCut= 80.;
2647 kGCminClsTPCCut= 100.;
2649 case 4: // 60% of findable clusters
2650 kGCminClsTPCCutToF= 0.6;
2652 case 5: // 0% of findable clusters
2653 kGCminClsTPCCutToF= 0.0;
2655 case 6: // 0% of findable clusters
2656 kGCminClsTPCCutToF= 0.7;
2658 case 7: // 0% of findable clusters
2659 kGCminClsTPCCutToF= 0.35;
2669 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2673 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2677 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2683 switch(chi2MesonCut){
2685 kGCchi2CutMeson = 100.;
2688 kGCchi2CutMeson = 50.;
2691 kGCchi2CutMeson = 30.;
2694 kGCchi2CutMeson = 200.;
2697 kGCchi2CutMeson = 500.;
2700 kGCchi2CutMeson = 1000.;
2707 switch(LowPRejectionSigmaCut){
2709 kGCPIDnSigmaAtLowPAroundKaonLine=0;
2710 kGCPIDnSigmaAtLowPAroundProtonLine=0;
2711 kGCPIDnSigmaAtLowPAroundPionLine=0;
2714 kGCPIDnSigmaAtLowPAroundKaonLine=0.5;
2715 kGCPIDnSigmaAtLowPAroundProtonLine=0.5;
2716 kGCPIDnSigmaAtLowPAroundPionLine=0.5;
2719 kGCPIDnSigmaAtLowPAroundKaonLine=1;
2720 kGCPIDnSigmaAtLowPAroundProtonLine=1;
2721 kGCPIDnSigmaAtLowPAroundPionLine=1;
2724 kGCPIDnSigmaAtLowPAroundKaonLine=2.;
2725 kGCPIDnSigmaAtLowPAroundProtonLine=2.;
2726 kGCPIDnSigmaAtLowPAroundPionLine=2.;
2729 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2730 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2731 kGCPIDnSigmaAtLowPAroundPionLine=1;
2734 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2735 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2736 kGCPIDnSigmaAtLowPAroundPionLine=1.5;
2739 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2740 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2741 kGCPIDnSigmaAtLowPAroundPionLine=2.;
2767 switch(piMaxMomdedxSigmaCut){
2769 kGCPIDMaxPnSigmaAbovePionLine=100.;
2772 kGCPIDMaxPnSigmaAbovePionLine=5.;
2775 kGCPIDMaxPnSigmaAbovePionLine=4.;
2778 kGCPIDMaxPnSigmaAbovePionLine=3.5;
2781 kGCPIDMaxPnSigmaAbovePionLine=3.;
2788 switch(alphaMesonCut){
2790 kGCalphaMinCutMeson = 0.0;
2791 kGCalphaCutMeson = 0.7;
2794 kGCalphaMinCutMeson = 0.0;
2795 kGCalphaCutMeson = 0.5;
2798 kGCalphaMinCutMeson = 0.5;
2799 kGCalphaCutMeson = 1.;
2802 kGCalphaMinCutMeson = 0.0;
2803 kGCalphaCutMeson = 1.;
2839 switch(RapidityMesonCut){
2841 kGCrapidityCutMeson = 0.9;
2844 kGCrapidityCutMeson = 0.8;
2847 kGCrapidityCutMeson = 0.7;
2854 switch(BackgroundScheme){
2856 kGCUseRotationMethodInBG=kTRUE;
2858 case 1: // mixed event
2859 kGCUseRotationMethodInBG=kFALSE;
2866 switch(DegreesForRotationMethod){
2868 kGCnDegreeRotationPMForBG = 5;
2871 kGCnDegreeRotationPMForBG = 10;
2874 kGCnDegreeRotationPMForBG = 15;
2877 kGCnDegreeRotationPMForBG = 20;
2884 switch(NumberOfRotations){
2886 kGCnumberOfRotationEventsForBG = 5;
2889 kGCnumberOfRotationEventsForBG = 10;
2892 kGCnumberOfRotationEventsForBG = 15;
2895 kGCnumberOfRotationEventsForBG = 20;
2909 void string2array(const std::string& number, int a[c_array_size])
2911 if (number.size() == c_array_size) {
2912 #define ASSIGNARRAY(i) a[i] = number[i] - '0'