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 = 15;
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;
42 Bool_t kGCRunGammaJetTask = kFALSE;
43 /** ---------------------------------- define cuts here ------------------------------------*/
44 TString kGCAnalysisCutSelectionId="900356200010030"; // do not change here, use -set-cut-selection in argument instead
46 Int_t kGCNEventsForBGCalculation=10;
48 Int_t kGCpidOfNegativeTrack=11;
49 Int_t kGCpidOfPositiveTrack=-11;
51 Double_t kGCmaxVertexZ = 10.;
52 Double_t kGCmaxRCut = 180.;
53 Double_t kGCetaCut = 0.9;
54 Double_t kGCptCut = 0.02;
55 Double_t kGCsingleptCut = 0.02;
56 Double_t kGCmaxZCut = 240.;
57 Double_t kGCminClsTPCCut= 0.;
58 Double_t kGCchi2CutConversion = 30.;
59 Double_t kGCchi2CutMeson = 50.;
60 Double_t kGCalphaCutMeson = 0.7;
61 Double_t kGCalphaMinCutMeson = 0.0;
63 Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
64 Double_t kGCLineCutZValue = 7.;
67 Double_t kGCxVertexCut = 0.;
68 Double_t kGCyVertexCut = 0.;
69 Double_t kGCzVertexCut = 0.;
71 Double_t kGCsigmaCutGammaMass=0.0001;
73 Bool_t kGCuseImprovedVertex = kTRUE;
75 Bool_t kGCUseOnFlyV0Finder = kTRUE;
77 // define masses of different particles, this will be used by the KF particle
78 // together with the width to set mass constraints. Units in GeV.
79 Double_t kGCelectronMass = 0.00051099892;
80 Double_t kGCgammaMass = 0.;
81 Double_t kGCpi0Mass = 0.1349766;
82 Double_t kGCetaMass = 0.54751;
84 // define the width constraint used by KF particle.
85 Double_t kGCgammaWidth = 0.01;
86 Double_t kGCpi0Width = 0.01;
87 Double_t kGCetaWidth = 0.01;
89 // define the probability of track being an electron
90 Double_t kGCprobElectron = 0.000;
92 Double_t kGCminOpeningAngleGhostCut = 0.005;
94 /** ---------------------------------- define pi0 dalitz cuts here ------------------------------------*/
96 Bool_t kGCRunStandalone = kFALSE;
97 Bool_t kGCUseBayesPID = kFALSE;
98 Bool_t kGCUseTrackIndexCut = kTRUE;
99 Bool_t kGCUsePsiPairCut = kTRUE;
100 Bool_t kGCUseMassCut = kFALSE;
101 Bool_t kGCUseGammaCut = kFALSE;
102 Bool_t kGCReadMagFieldSign = kTRUE;
103 Bool_t kGCUseAliKF = kFALSE;
105 Double_t kGCPsiPairCut = 0.45;
106 Double_t kGCDeltaPhiCutMin = 0.;
107 Double_t kGCDeltaPhiCutMax = 0.12;
108 Double_t kGCMassCutMin = 0.;
109 Double_t kGCMassCutMax = 0.1;
110 Double_t kGCNSigmaBelowElecTPCbethe = -2.;
111 Double_t kGCNSigmaAboveElecTPCbethe = 3.;
112 Double_t kGCNSigmaAbovePionTPCbethe = 2.;
113 Double_t kGCNSigmaAboveKaonTPCbethe = 2.;
114 Double_t kGCNSigmaAboveProtonTPCbethe = 2.;
116 Int_t kGCTrkSelectionCriteria = 1; // kITSsaTrack=0, kGlobalTrack=1, kITSsaGlobalTrack=2
117 // NOTE: for details in the track cuts and defined histograms see AddGammaConvDalitz.C
119 /** ----------------------------------end define cuts here----------------------------------*/
121 /** -------------------------------- Phi/R Mapping ---------------------------------------*/
122 Int_t kGCnPhiIndex = 8;
123 Int_t kGCnRIndex = 14;
125 Double_t kGCminRadius = 0.;
126 Double_t kGCmaxRadius = 200.;
127 Double_t kGCminPhi = -TMath::Pi();
128 Double_t kGCmaxPhi = TMath::Pi();
129 /** ------------------------------- end Phi/R Mapping ------------------------------------*/
131 Bool_t kGCdoOwnXYZCalculation = kFALSE;
132 Bool_t kGCdoConstructGamma = kFALSE;
134 /** -------------AOD stuff ---------------------------------------------------------------*/
135 TString kGCDeltaAODFilename = "AliAODGammaConversion.root"; //If empty, writes to standard common aod file.
136 Bool_t kGCWriteAOD =kTRUE; // Turn on AOD
137 Bool_t kGCForceAOD = kFALSE; // Call AliAnalysisManager::SetFillAOD(kTRUE) every ESD event.
139 /** ------------------- define which histograms to plot here --------------------------------*/
140 /** NB: to change the bin numbers, see below the histogram flags */
142 // NEUTRAL MESON PLOTS
143 Bool_t kGCplotMCConversionR = kTRUE;
144 Bool_t kGCplotMCConversionZR = kTRUE;
145 Bool_t kGCplotMCConversionXY = kTRUE;
146 Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
147 Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE;
148 Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE;
151 Bool_t kGCplotMCEEnergy = kFALSE;
152 Bool_t kGCplotMCEPt = kTRUE;
153 Bool_t kGCplotMCEEta = kTRUE;
154 Bool_t kGCplotMCEPhi = kTRUE;
155 Bool_t kGCplotMCENTPCClusters = kTRUE;
156 Bool_t kGCplotMCENITSClusters = kTRUE;
158 Bool_t kGCplotMCPEnergy = kFALSE;
159 Bool_t kGCplotMCPPt = kTRUE;
160 Bool_t kGCplotMCPEta = kTRUE;
161 Bool_t kGCplotMCPPhi = kTRUE;
162 Bool_t kGCplotMCPNTPCClusters = kTRUE;
163 Bool_t kGCplotMCPNITSClusters = kTRUE;
165 Bool_t kGCplotMCallGammaEnergy = kFALSE;
166 Bool_t kGCplotMCallGammaPt = kTRUE;
167 Bool_t kGCplotMCallGammaEta = kTRUE;
168 Bool_t kGCplotMCallGammaPhi = kTRUE;
169 Bool_t kGCplotMCallGammaRapid = kTRUE;
172 Bool_t kGCplotMCConvGammaEnergy = kFALSE;
173 Bool_t kGCplotMCConvGammaPt = kTRUE;
174 Bool_t kGCplotMCConvGammaEta = kTRUE;
175 Bool_t kGCplotMCConvGammaPhi = kTRUE;
176 Bool_t kGCplotMCConvGammaRapid = kTRUE;
177 Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
179 Bool_t kGCplotMCallDirectGammaEnergy = kFALSE;
180 Bool_t kGCplotMCallDirectGammaPt = kTRUE;
181 Bool_t kGCplotMCallDirectGammaEta = kTRUE;
182 Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
183 Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
185 Bool_t kGCplotMCConvDirectGammaEnergy = kFALSE;
186 Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
187 Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
188 Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
189 Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
191 Bool_t kGCplotMCMotherEta = kTRUE;
192 Bool_t kGCplotMCMotherRapid = kTRUE;
193 Bool_t kGCplotMCMotherPhi = kTRUE;
194 Bool_t kGCplotMCMotherPt = kTRUE;
195 Bool_t kGCplotMCMotherEnergy = kFALSE;
196 Bool_t kGCplotMCMotherMass = kTRUE;
197 Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
198 Bool_t kGCplotMCMotherR = kTRUE;
199 Bool_t kGCplotMCMotherZR = kFALSE;
200 Bool_t kGCplotMCMotherXY = kFALSE;
201 Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
202 Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
203 Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
204 Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
205 Bool_t kGCplotMCMotherSpectra = kTRUE;
207 Bool_t kGCplotMCPi0Eta = kTRUE;
208 Bool_t kGCplotMCPi0Rapid = kTRUE;
209 Bool_t kGCplotMCPi0Phi = kTRUE;
210 Bool_t kGCplotMCPi0Pt = kTRUE;
211 Bool_t kGCplotMCPi0PtFiducial = kTRUE;
212 Bool_t kGCplotMCPi0PtWithinAcceptanceFiducial = kTRUE;
213 Bool_t kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial = kTRUE;
214 Bool_t kGCplotMCPi0OpeningPtConvGammaWithinAcceptance = kTRUE;
215 Bool_t kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance = kTRUE;
216 Bool_t kGCplotMCPi0Energy = kFALSE;
217 Bool_t kGCplotMCPi0Mass = kTRUE;
218 Bool_t kGCplotMCPi0Alpha = kTRUE;
219 Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
220 Bool_t kGCplotMCPi0R = kTRUE;
221 Bool_t kGCplotMCPi0ZR = kFALSE;
222 Bool_t kGCplotMCPi0XY = kFALSE;
223 Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
224 Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
225 Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
226 Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
227 Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
229 Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
230 Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
231 Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
232 Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
233 Bool_t kGCplotMCPi0SecondaryEnergy = kFALSE;
234 Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
235 Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
236 Bool_t kGCplotMCPi0SecondaryR = kTRUE;
237 Bool_t kGCplotMCPi0SecondaryZR = kFALSE;
238 Bool_t kGCplotMCPi0SecondaryXY = kFALSE;
239 Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
240 Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
241 Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
242 Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
244 Bool_t kGCplotMCEtaEta = kTRUE;
245 Bool_t kGCplotMCEtaRapid = kTRUE;
246 Bool_t kGCplotMCEtaPhi = kTRUE;
247 Bool_t kGCplotMCEtaPt = kTRUE;
248 Bool_t kGCplotMCEtaEnergy = kFALSE;
249 Bool_t kGCplotMCEtaMass = kTRUE;
250 Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
251 Bool_t kGCplotMCEtaR = kTRUE;
252 Bool_t kGCplotMCEtaZR = kFALSE;
253 Bool_t kGCplotMCEtaXY = kFALSE;
254 Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
255 Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
256 Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
257 Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
258 Bool_t kGCplotMCEtaOpeningPtConvGammaWithinAcceptance = kTRUE;
259 Bool_t kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance = kTRUE;
260 Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
262 // Histograms from esd tracks
263 Bool_t kGCplotESDConversionR = kTRUE;
264 Bool_t kGCplotESDConversionZR = kTRUE;
265 Bool_t kGCplotESDConversionXY = kTRUE;
266 Bool_t kGCplotESDConversionXYBeamPipe = kTRUE;
267 Bool_t kGCplotESDConversionRPhiBeamPipe = kTRUE;
268 Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
269 Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE;
270 Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE;
271 Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE;
272 Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE;
273 Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE;
274 Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE;
275 Bool_t kGCplotESDConvGammaEdEdxP = kTRUE;
276 Bool_t kGCplotESDConvGammaPdEdxP = kTRUE;
277 Bool_t kGCplotESDConvGammaEeProbP = kTRUE;
278 Bool_t kGCplotESDConvGammaPeProbP = kTRUE;
279 Bool_t kGCplotESDConvGammaEmupiProbP = kTRUE;
280 Bool_t kGCplotESDConvGammaPmupiProbP = kTRUE;
282 Bool_t kGCplotESDConvGammaQtAlfa = kTRUE;
285 Bool_t kGCplotESDEEnergy = kFALSE;
286 Bool_t kGCplotESDEPt = kTRUE;
287 Bool_t kGCplotESDEEta = kTRUE;
288 Bool_t kGCplotESDEPhi = kTRUE;
289 Bool_t kGCplotESDENTPCClusters = kTRUE;
290 Bool_t kGCplotESDENITSClusters = kTRUE;
291 Bool_t kGCplotESDENTPCClustersToFP = kTRUE;
292 Bool_t kGCplotESDETPCchi2 = kTRUE;
294 Bool_t kGCplotESDPEnergy = kFALSE;
295 Bool_t kGCplotESDPPt = kTRUE;
296 Bool_t kGCplotESDPEta = kTRUE;
297 Bool_t kGCplotESDPPhi = kTRUE;
298 Bool_t kGCplotESDPNTPCClusters = kTRUE;
299 Bool_t kGCplotESDPNITSClusters = kTRUE;
300 Bool_t kGCplotESDPNTPCClustersToFP = kTRUE;
301 Bool_t kGCplotESDPTPCchi2 = kTRUE;
303 Bool_t kGCplotESDConvGammaEnergy = kFALSE;
304 Bool_t kGCplotESDConvGammaPt = kTRUE;
305 Bool_t kGCplotESDConvGammaEta = kTRUE;
306 Bool_t kGCplotESDConvGammaPhi = kTRUE;
307 Bool_t kGCplotESDConvGammaMass = kTRUE;
308 Bool_t kGCplotESDConvGammaWidth = kTRUE;
309 Bool_t kGCplotESDConvGammaChi2 = kTRUE;
310 Bool_t kGCplotESDConvGammaNDF = kTRUE;
311 Bool_t kGCplotESDConvGammaRapid = kTRUE;
312 Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
313 Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
314 Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
317 Bool_t kGCplotESDTrueDalitzContaminationR = kTRUE;
318 Bool_t kGCplotESDTrueConvGammaEnergy = kFALSE;
319 Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
320 Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
321 Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
322 Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
323 Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
324 Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
325 Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
326 Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
327 Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
328 Bool_t kGCplotESDTrueConversionR = kTRUE;
329 Bool_t kGCplotESDTrueConversionZR = kFALSE;
330 Bool_t kGCplotESDTrueConversionXY = kFALSE;
331 Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
332 Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE;
333 Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE;
334 Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE;
335 Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE;
336 Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE;
337 Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE;
338 Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE;
339 Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE;
340 Bool_t kGCplotESDTrueConvGammaQtAlfa = kTRUE;
342 Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
343 Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
344 Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
345 Bool_t kGCplotESDTrueConversionMCZR = kFALSE;
346 Bool_t kGCplotESDTrueConversionMCXY = kFALSE;
348 Bool_t kGCplotESDNoCutConvGammaEnergy = kFALSE;
349 Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
350 Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
351 Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
352 Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
353 Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
354 Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
355 Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
356 Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
357 Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
358 Bool_t kGCplotESDNoCutConversionR = kTRUE;
359 Bool_t kGCplotESDNoCutConversionZR = kFALSE;
360 Bool_t kGCplotESDNoCutConversionXY = kFALSE;
361 Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
362 Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE;
363 Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE;
364 Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE;
365 Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE;
367 Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE;
368 Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE;
369 Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE;
370 Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE;
371 Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
372 Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
373 Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
374 Bool_t kGCplotESDNoCutConversionMCZR = kFALSE;
375 Bool_t kGCplotESDNoCutConversionMCXY = kFALSE;
377 Bool_t kGCplotESDMotherChi2 = kTRUE;
378 Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
379 Bool_t kGCplotESDMotherEnergy = kFALSE;
380 Bool_t kGCplotESDMotherPt = kFALSE;
381 Bool_t kGCplotESDMotherEta = kTRUE;
382 Bool_t kGCplotESDMotherPhi = kFALSE;
383 Bool_t kGCplotESDMotherMass = kFALSE;
384 Bool_t kGCplotESDMotherR = kFALSE;
385 Bool_t kGCplotESDMotherZR = kFALSE;
386 Bool_t kGCplotESDMotherXY = kFALSE;
387 Bool_t kGCplotESDMotherRapid = kTRUE;
389 Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
390 Bool_t kGCplotESDBackgroundEnergy = kFALSE;
391 Bool_t kGCplotESDBackgroundPt = kFALSE;
392 Bool_t kGCplotESDBackgroundEta = kFALSE;
393 Bool_t kGCplotESDBackgroundPhi = kFALSE;
394 Bool_t kGCplotESDBackgroundMass = kFALSE;
395 Bool_t kGCplotESDBackgroundR = kFALSE;
396 Bool_t kGCplotESDBackgroundZR = kFALSE;
397 Bool_t kGCplotESDBackgroundXY = kFALSE;
398 Bool_t kGCplotESDBackgroundRapid = kFALSE;
400 Bool_t kGCplotMapping = kTRUE;
402 Bool_t kGCplotResolutiondPt = kTRUE;
403 Bool_t kGCplotResolutiondR = kTRUE;
404 Bool_t kGCplotResolutiondZ = kTRUE;
406 Bool_t kGCplotResolutiondRAbs = kTRUE;
407 Bool_t kGCplotResolutiondZAbs = kTRUE;
408 Bool_t kGCplotResolutiondPhiAbs = kTRUE;
410 Bool_t kGCplotResolutiondRdPt = kTRUE;
412 Bool_t kGCplotResolutionMCPt = kTRUE;
413 Bool_t kGCplotResolutionMCR = kTRUE;
414 Bool_t kGCplotResolutionMCZ = kTRUE;
416 Bool_t kGCplotResolutionESDPt = kTRUE;
417 Bool_t kGCplotResolutionESDR = kTRUE;
418 Bool_t kGCplotResolutionESDZ = kTRUE;
420 Bool_t kGCplotResolutionPtdPt = kTRUE;
422 Bool_t kGCplotESDNumberOfV0s = kTRUE;
423 Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
424 Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE;
425 Bool_t kGCplotESDNumberOfGoodESDTracks = kTRUE;
428 Bool_t kGCplotESDCutGetOnFly = kTRUE;
429 Bool_t kGCplotESDCutNContributors = kTRUE;
430 Bool_t kGCplotESDCutLikeSign = kTRUE;
431 Bool_t kGCplotESDCutRefit = kTRUE;
432 Bool_t kGCplotESDCutKink = kTRUE;
433 Bool_t kGCplotESDCutPIDProb = kTRUE;
434 Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE;
435 Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE;
436 Bool_t kGCplotESDCutPionRejectionLowP =kTRUE;
437 Bool_t kGCplotESDCutProtonRejectionLowP=kTRUE;
438 Bool_t kGCplotESDCutKaonRejectionLowP =kTRUE;
439 Bool_t kGCplotESDCutQtGammaSelection=kTRUE;
440 Bool_t kGCplotESDCutR = kTRUE;
441 Bool_t kGCplotESDCutLine = kTRUE;
442 Bool_t kGCplotESDCutZ = kTRUE;
443 Bool_t kGCplotESDCutMinClsTPC = kTRUE;
444 Bool_t kGCplotESDGoodV0s = kTRUE;
445 Bool_t kGCplotESDAllV0s = kTRUE;
446 Bool_t kGCplotESDAllV0sCurrentFinder = kTRUE;
447 Bool_t kGCplotESDAllV0sCurrentFinderQtAlfa = kTRUE;
449 Bool_t kGCplotESDCutNDF = kTRUE;
450 Bool_t kGCplotESDCutChi2 = kTRUE;
451 Bool_t kGCplotESDCutEta = kTRUE;
452 Bool_t kGCplotESDCutPt = kTRUE;
453 Bool_t kGCplotESDCutSinglePt = kTRUE;
454 Bool_t kGCplotESDTrueConvGammaTrackLength =kFALSE;
455 Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kFALSE;
457 Bool_t kGCplotPi0Spectra = kTRUE;
458 Bool_t kGCplotEtaSpectra = kTRUE;
459 Bool_t kGCplotOmegaSpectra = kTRUE;
461 /////////////Chi_c Analysis//////////////////////////
462 Bool_t kGCplotStatsElectrons = kTRUE;
463 Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
464 Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
465 Bool_t kGCplotRecEPosENegR = kTRUE;
466 Bool_t kGCplotRecEPosENegEta = kTRUE;
467 Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
468 Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
469 Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
470 Bool_t kGCplotESDElectronPosNegPt = kTRUE;
471 Bool_t kGCplotESDElectronPosNegEta = kTRUE;
472 Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
473 Bool_t kGCplotMCElectronPosNegPt = kTRUE;
474 Bool_t kGCplotMCElectronPosNegEta = kTRUE;
475 Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
476 Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
477 Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
478 Bool_t kGCplotTableElectrons = kTRUE;
479 Bool_t kGCplotESDEPosBackground = kTRUE;
480 Bool_t kGCplotESDENegBackground = kTRUE;
481 Bool_t kGCplotESDEPosENegBackground = kTRUE;
482 Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
483 Bool_t kGCplotESDePoseNegAngle = kTRUE;
484 Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
485 Bool_t kGCplotMCLabels = kTRUE;
486 ///////////////////////////////////////////////////////////////////
488 //---------------- Gamma Jet analysis ----------------------------
489 Bool_t kGCplotdPhiHdrGam = kTRUE;
490 Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
491 Bool_t kGCplotMinimumIsoDistance = kTRUE;
492 Bool_t kGCplotFFzHdrGam = kTRUE;
493 Bool_t kGCplotImbalanceHdrGam = kTRUE;
494 //----------------------------------------------------------------
497 /** ----------------- end define which histograms to plot here -------------------------------*/
501 /** ----------- Define the binning for the different plot types here -------------------------*/
503 Int_t kGCnXBinsR = 400;
504 Double_t kGCfirstXBinR = 0.;
505 Double_t kGClastXBinR = 200.;
508 Int_t kGCnXBinsZR = 1000;
509 Double_t kGCfirstXBinZR = -250.;
510 Double_t kGClastXBinZR = 250.;
511 Int_t kGCnYBinsZR = 400;
512 Double_t kGCfirstYBinZR = 0.;
513 Double_t kGClastYBinZR = 200.;
516 Int_t kGCnXBinsXY = 800;
517 Double_t kGCfirstXBinXY = -200.;
518 Double_t kGClastXBinXY = 200.;
519 Int_t kGCnYBinsXY = 800;
520 Double_t kGCfirstYBinXY = -200.;
521 Double_t kGClastYBinXY = 200.;
524 Int_t kGCnXBinsXYBP = 200;
525 Double_t kGCfirstXBinXYBP = -10.;
526 Double_t kGClastXBinXYBP = 10.;
527 Int_t kGCnYBinsXYBP = 200;
528 Double_t kGCfirstYBinXYBP = -10.;
529 Double_t kGClastYBinXYBP = 10.;
531 //Rphi-plots-BeamPipe
532 Int_t kGCnXBinsRPhiBP = 200;
533 Double_t kGCfirstXBinRPhiBP = -TMath::Pi();
534 Double_t kGClastXBinRPhiBP = TMath::Pi();
535 Int_t kGCnYBinsRPhiBP = 200;
536 Double_t kGCfirstYBinRPhiBP = 0.;
537 Double_t kGClastYBinRPhiBP = 10.;
542 Int_t kGCnXBinsOpeningAngle = 400;
543 Double_t kGCfirstXBinOpeningAngle = 0.;
544 Double_t kGClastXBinOpeningAngle = TMath::Pi();
546 //CosPointingAngle-plots
547 Int_t kGCnXBinsCosPointingAngle = 400;
548 Double_t kGCfirstXBinCosPointingAngle = 0.99;
549 Double_t kGClastXBinCosPointingAngle = 1.01;
551 //DCA Daugthers-plots
552 Int_t kGCnXBinsDcaDaughters = 400;
553 Double_t kGCfirstXBinDcaDaughters= 0.;
554 Double_t kGClastXBinDcaDaughters = 5.;
556 //Norm DCA dist Daugthers-plots
557 Int_t kGCnXBinsNormDcaDistDaughters = 400;
558 Double_t kGCfirstXBinNormDcaDistDaughters= 0.;
559 Double_t kGClastXBinNormDcaDistDaughters = 10.;
562 Int_t kGCnXBinsLikelihoodAP = 400;
563 Double_t kGCfirstXBinLikelihoodAP= 0.;
564 Double_t kGClastXBinLikelihoodAP = 2.;
568 Int_t kGCnXBinsEnergy = 200;
569 Double_t kGCfirstXBinEnergy = 0.;
570 Double_t kGClastXBinEnergy = 50.;
573 Int_t kGCnXBinsP = 200;
574 Double_t kGCfirstXBinP = 0.05;
575 Double_t kGClastXBinP = 50.;
578 Int_t kGCnYBinsdEdx = 200;
579 Double_t kGCfirstYBindEdx = 0.;
580 Double_t kGClastYBindEdx = 200.;
583 Int_t kGCnYBinsEProb = 200;
584 Double_t kGCfirstYBinEProb = 0.;
585 Double_t kGClastYBinEProb = 1.;
588 Int_t kGCnYBinsQt = 250;
589 Double_t kGCfirstYBinQt = 0.;
590 Double_t kGClastYBinQt = 0.25;
595 Int_t kGCnYBinsAsymmetry = 200;
596 Double_t kGCfirstYBinAsymmetry = 0.;
597 Double_t kGClastYBinAsymmetry = 1.;
601 Int_t kGCnXBinsPt = 500;
602 Double_t kGCfirstXBinPt = 0.;
603 Double_t kGClastXBinPt = 50.;
606 Int_t kGCnXBinsEta = 40;
607 Double_t kGCfirstXBinEta = -2.;
608 Double_t kGClastXBinEta = 2.;
611 Int_t kGCnXBinsRapid = 200;
612 Double_t kGCfirstXBinRapid = -10.;
613 Double_t kGClastXBinRapid = 10.;
616 Int_t kGCnXBinsPhi = 72;
617 Double_t kGCfirstXBinPhi = -TMath::Pi();
618 Double_t kGClastXBinPhi = TMath::Pi();
621 Int_t kGCnXBinsNTPCClusters = 201;
622 Double_t kGCfirstXBinNTPCClusters = -0.5;
623 Double_t kGClastXBinNTPCClusters = 200.5;
626 Int_t kGCnXBinsNITSClusters = 7;
627 Double_t kGCfirstXBinNITSClusters = -0.5;
628 Double_t kGClastXBinNITSClusters = 6.5;
630 //TPCcluster to Findable-plots
631 Int_t kGCnYBinsClsToF = 120;
632 Double_t kGCfirstYBinClsToF = 0.;
633 Double_t kGClastYBinClsToF = 1.2;
636 Int_t kGCnXBinsTPCchi2 = 100;
637 Double_t kGCfirstXBinTPCchi2 = 0.;
638 Double_t kGClastXBinTPCchi2 = 10;
642 Int_t kGCnXBinsMapping = 800;
643 Double_t kGCfirstXBinMapping = -100.;
644 Double_t kGClastXBinMapping = 100.;
645 Int_t kGCnYBinsMapping = 40;
646 Double_t kGCfirstYBinMapping = -2;
647 Double_t kGClastYBinMapping = 2;
651 Int_t kGCnXBinsResdPt=500;
652 Int_t kGCfirstXBinResdPt= 0;
653 Int_t kGClastXBinResdPt=100;
654 Int_t kGCnYBinsResdPt=200;
655 Int_t kGCfirstYBinResdPt= -10;
656 Int_t kGClastYBinResdPt=10;
659 Int_t kGCnXBinsResdR=400;
660 Int_t kGCfirstXBinResdR= 0;
661 Int_t kGClastXBinResdR=200;
662 Int_t kGCnYBinsResdR=100;
663 Int_t kGCfirstYBinResdR= -25;
664 Int_t kGClastYBinResdR=25;
667 Int_t kGCnXBinsResdZ=80;
668 Int_t kGCfirstXBinResdZ= -20;
669 Int_t kGClastXBinResdZ=20;
670 Int_t kGCnYBinsResdZ=80;
671 Int_t kGCfirstYBinResdZ= -20;
672 Int_t kGClastYBinResdZ=20;
675 Int_t kGCnYBinsResdRdPt=400;
676 Int_t kGCfirstYBinResdRdPt= -10;
677 Int_t kGClastYBinResdRdPt=10;
680 Int_t kGCnXBinsResPt=500;
681 Int_t kGCfirstXBinResPt= 0;
682 Int_t kGClastXBinResPt=100;
685 Int_t kGCnXBinsResR=500;
686 Int_t kGCfirstXBinResR= 0;
687 Int_t kGClastXBinResR=250;
690 Int_t kGCnXBinsResZ=500;
691 Int_t kGCfirstXBinResZ= 0;
692 Int_t kGClastXBinResZ=250;
695 Int_t kGCnXBinsGammaMass = 4000;
696 Double_t kGCfirstXBinGammaMass = 0.;
697 Double_t kGClastXBinGammaMass = 1.;
700 Int_t kGCnXBinsPi0Mass = 1000;
701 Double_t kGCfirstXBinPi0Mass = 0.;
702 Double_t kGClastXBinPi0Mass = 1.;
703 Double_t kGCfirstXBinPi0Alpha = 0.;
704 Double_t kGClastXBinPi0Alpha = 1.;
708 Int_t kGCnXBinsEtaMass = 1000;
709 Double_t kGCfirstXBinEtaMass = 0.;
710 Double_t kGClastXBinEtaMass = 1.;
713 Int_t kGCnXBinsGammaWidth = 100;
714 Double_t kGCfirstXBinGammaWidth = 0.;
715 Double_t kGClastXBinGammaWidth = 1.;
718 Int_t kGCnXBinsMesonChi2 = 200;
719 Int_t kGCnXBinsGammaChi2 = 100;
720 Double_t kGCfirstXBinGammaChi2 = 0;
721 Double_t kGClastXBinGammaChi2 = 200.;
724 Int_t kGCnXBinsGammaNDF = 10;
725 Double_t kGCfirstXBinGammaNDF = 0.;
726 Double_t kGClastXBinGammaNDF = 10.;
729 Int_t kGCnXBinsSpectra = 500;
730 Double_t kGCfirstXBinSpectra = 0.;
731 Double_t kGClastXBinSpectra = 1.;
732 Int_t kGCnYBinsSpectra = 250;
733 Double_t kGCfirstYBinSpectra = 0.;
734 Double_t kGClastYBinSpectra = 25.;
736 Double_t kGCfirstXBinAlphaG = -1.;
737 Double_t kGCfirstXBinAlpha = 0.;
738 Double_t kGClastXBinAlpha = 1.;
741 Int_t kGCnXBinsTrackLength = 1000;
742 Double_t kGCfirstXBinTrackLength = 0;
743 Double_t kGClastXBinTrackLength = 500;
745 /////////Pi0 Dalitz decay AnalysisTask ///////////////////////////////////
747 Int_t kGCnXBinsDalitzMass = 4000;
748 Double_t kGCfirstXBinDalitzMass = 0.;
749 Double_t kGClastXBinDalitzMass = 4.;
751 Int_t kGCnXBinsPi0DalitzMass = 4000;
752 Double_t kGCfirstXBinPi0DalitzMass = 0.;
753 Double_t kGClastXBinPi0DalitzMass = 4.;
755 /////////Chic_Analysis///////////////////////////////////
756 Int_t kGCnXBinsEPt = 1000;
757 Double_t kGCfirstXBinEPt = 0.;
758 Double_t kGClastXBinJPsiPt = 10;
760 Int_t kGCnXBinsJPsiMass = 1000;
761 Double_t kGCfirstXBinJPsiMass = 0.;
762 Double_t kGClastXBinJPsiMass = 10.;
764 Int_t kGCnXBinsChicMass = 1000;
765 Double_t kGCfirstXBinChicMass = 0.;
766 Double_t kGClastXBinChicMass = 10.;
768 Int_t kGCnXBinsPi0Mass = 1000;
769 Double_t kGCfirstXBinPi0Mass = 0.;
770 Double_t kGClastXBinPi0Mass = 1.;
772 Int_t kGCnXBinsEPosNegPt = 1000;
773 Double_t kGCfirstXBinEPosNegPt = 0.;
774 Double_t kGClastXBinEPosNegPt = 10.;
776 Int_t kGCnXBinsEPosNegEta = 200;
777 Double_t kGCfirstXBinEPosNegEta = -1.2;
778 Double_t kGClastXBinEPosNegEta = 1.2;
780 Int_t kGCnXBinsEPosNegAngle = 200;
781 Double_t kGCfirstXBinEPosNegAngle = 0.;
782 Double_t kGClastXBinEPosNegAngle = TMath::Pi();
784 Int_t kGCnXBinsEBackground = 1000;
785 Double_t kGCfirstXBinEBackground = 0.;
786 Double_t kGClastXBinEBackground = 10.;
788 Int_t kGCnXBinsEBackgroundCut = 100;
789 Double_t kGCfirstXBinEBackgroundCut = 0.;
790 Double_t kGClastXBinEBackgroundCut = 0.015.;
792 Int_t kGCnXBinsMCLabels = 10;
793 Double_t kGCfirstXBinMCLabels = 0.;
794 Double_t kGClastXBinMCLabels = 10.;
796 Int_t kGCnElementsElectronTable = 19;
799 const char * kGCelectronTable[] = {
800 "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",
801 "ESDtracks", "Kink Cut",
802 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
803 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
804 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
808 // for Gamma Jet analysis
809 Int_t kGCnXBinsdphiHdrGam = 100;
810 Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
811 Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
813 Int_t kGCnXBinsMinimumIsoDistance = 100;
814 Double_t kGCfirstXBinMinimumIsoDistance = 0.;
815 Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
817 Int_t kGCnXBinsFFzHdrGam = 100;
818 Double_t kGCfirstXBinFFzHdrGam = 0.;
819 Double_t kGClastXBinFFzHdrGam = 5;
821 Int_t kGCnXBinsImbalanceHdrGam = 100;
822 Double_t kGCfirstXBinImbalanceHdrGam = -5.;
823 Double_t kGClastXBinImbalanceHdrGam = 5.;
824 ////////////////////////////////////////////////////////
827 /** ---------- end Define the binning for the different plot types here ----------------------*/
830 /************************************************************************************************
833 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
836 ************************************************************************************************/
837 TString kGCoutputFileName = "histogramsGammaConversion";
838 TString kGCoutputFileAppendix = "";
839 TString kGCdataList = "";
840 Bool_t kGCwriteNtuple = kFALSE;
841 // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
842 Bool_t kGCusePWG4PartCorr = kTRUE;
844 /** Flag to enable running on train */
845 Bool_t kGCrunOnTrain = kFALSE;
846 Bool_t kGCrunOnGsiTrain = kFALSE;
848 /** ------------------------------ Monte Carlo flag -----------------------------------------*/
849 Bool_t kGCdoMCTruth = kTRUE;
850 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
852 /** ------------------------------ Selecting trigger CINT1B -----------------------------------*/
853 Bool_t kGCtriggerCINT1B = kFALSE;
854 /** ---------------------------- end Monte Carlo flag ---------------------------------------*/
856 /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
857 Bool_t kGCuseKFParticle = kTRUE;
858 Bool_t kGCuseESDTrack = kFALSE;
859 /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
861 /**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/
862 Bool_t kGCdodEdxSigmaCut= kTRUE;
863 /**------------------------------end Flag to apply NsigmadEdx cut ----------*/
865 Double_t kGCPIDnSigmaAboveElectronLine=5;
866 Double_t kGCPIDnSigmaBelowElectronLine=-3;
867 Double_t kGCPIDnSigmaAbovePionLine=0;
868 Double_t kGCPIDMinPnSigmaAbovePionLine=1.;
869 Double_t kGCPIDMaxPnSigmaAbovePionLine=3.;
871 /**------- Flag to apply rejection at LowP of Kaons, protons , pions------------*/
872 Bool_t kGCdoPionRejectionLowP=kTRUE;
873 Bool_t kGCdoKaonRejectionLowP=kTRUE;
874 Bool_t kGCdoProtonRejectionLowP=kTRUE;
875 /**---------------------------------------*/
877 Double_t kGCPIDnSigmaAtLowPAroundKaonLine=0;
878 Double_t kGCPIDnSigmaAtLowPAroundProtonLine=0;
879 Double_t kGCPIDnSigmaAtLowPAroundPionLine=0;
881 Double_t kGCPIDMinPKaonRejectionLowP=1.5;
882 Double_t kGCPIDMinPProtonRejectionLowP=2.;
883 Double_t kGCPIDMinPPionRejectionLowP=0.5;
886 Bool_t kGCdoQtGammaSelection=kTRUE;
887 Double_t kGCQtMax=100.;
891 Bool_t scanArguments(TString arguments){
893 Bool_t iResult = kTRUE;
895 TString allArgs=arguments;
899 cout<<"Arguments received: "<<allArgs.Data()<<endl;
901 TObjArray* pTokens=allArgs.Tokenize(" ");
904 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
905 argument=((TObjString*)pTokens->At(i))->GetString();
907 if(argument.IsNull()) continue;
908 // -- deconvolute-time option
909 if(argument.CompareTo("-data-list") == 0){
910 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
911 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
912 if(kGCdataList.IsNull()){
913 cout<<"-data-list is NULL"<<endl;
917 cout<<"Data list is set to: "<<kGCdataList<<endl;
920 else if(argument.CompareTo("-output-file-name") == 0){
921 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
922 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
923 if(kGCoutputFileName.IsNull()){
924 cout<<"-output-file-name is NULL"<<endl;
928 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
931 else if (argument.CompareTo("-bg-off") == 0){
932 kGCcalculateBackground =kFALSE;
934 else if (argument.CompareTo("-use-v0-multiplicity") == 0){
935 kGCUseTrackMultiplicityForBG = kFALSE;
937 else if (argument.CompareTo("-move-bg-vertex") == 0){
938 kGCMoveParticlesAccordingToVertex = kTRUE;
940 else if (argument.CompareTo("-check-neutralmeson-pi0s") == 0){
941 kGCdoNeutralMesonV0MCCheck=kTRUE;
943 else if (argument.CompareTo("-use-offline-finder") == 0){
944 kGCUseOnFlyV0Finder = kFALSE;
946 else if (argument.CompareTo("-write-ntuple") == 0){
947 cout<<"Writing ntuple to file."<<endl;
948 kGCwriteNtuple = kTRUE;
950 else if (argument.CompareTo("-run-on-train") == 0){
951 cout<<"Running on train"<<endl;
952 //kGCWriteStandardAOD=kTRUE;
953 kGCDeltaAODFilename="";
954 kGCrunOnTrain = kTRUE;
956 else if (argument.CompareTo("-run-on-gsi-train") == 0){
957 cout<<"Running on gsi train"<<endl;
958 //kGCWriteStandardAOD=kFALSE;
959 kGCrunOnTrain = kTRUE;
960 kGCrunOnGsiTrain = kTRUE;
962 else if (argument.CompareTo("-run-jet") == 0){
963 cout<<"Running jet analysis"<<endl;
966 else if (argument.CompareTo("-run-gamma-jet-task") == 0){
967 cout<<"Running gamma jet task"<<endl;
968 kGCRunGammaJetTask= kTRUE;
970 else if (argument.CompareTo("-run-neutralmeson") == 0){
971 cout<<"Running neutral meson analysis"<<endl;
972 kGCrunNeutralMeson = kTRUE;
974 else if (argument.CompareTo("-run-neutral-meson") == 0){
975 cout<<"Running neutral meson analysis"<<endl;
976 kGCrunNeutralMeson = kTRUE;
978 else if (argument.CompareTo("-run-omega-meson") == 0){
979 cout<<"Running omega meson analysis"<<endl;
980 kGCrunOmegaMeson = kTRUE;
982 else if (argument.CompareTo("-run-chic") == 0){
983 cout<<"Running Chi_c analysis"<<endl;
986 else if (argument.CompareTo("-run-dalitz") == 0){
987 cout<<"Running Dalitz analysis"<<endl;
988 kGCrunDalitz = kTRUE;
990 else if (argument.CompareTo("-run-cf") == 0){
991 cout<<"Running CF"<<endl;
994 else if (argument.CompareTo("-run-resolution") == 0){
995 cout<<"Running Resolution"<<endl;
998 else if (argument.CompareTo("-run-recalculateV0") == 0){
999 cout<<"Running RecalculateV0ForGamma"<<endl;
1000 kGCRecalculateV0ForGamma=kTRUE;
1002 else if (argument.CompareTo("-jet-off") == 0){
1003 cout<<"Skipping jet analysis"<<endl;
1006 else if (argument.CompareTo("-neutralmeson-off") == 0){
1007 cout<<"Skipping neutral meson analysis"<<endl;
1008 kGCrunNeutralMeson = kFALSE;
1010 else if (argument.CompareTo("-neutral-meson-off") == 0){
1011 cout<<"Skipping neutral meson analysis"<<endl;
1012 kGCrunNeutralMeson = kFALSE;
1014 else if (argument.CompareTo("-chic-off") == 0){
1015 cout<<"Skipping Chi_c analysis"<<endl;
1016 kGCrunChic = kFALSE;
1018 else if (argument.CompareTo("-mc-off") == 0){
1019 cout<<"Switching off kGCdoMCTruth"<<endl;
1020 kGCdoMCTruth = kFALSE;
1022 else if (argument.CompareTo("-trigger-CINT1B") == 0){
1023 cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl;
1024 kGCtriggerCINT1B = kTRUE;
1026 else if (argument.CompareTo("-use-own-xyz") == 0){
1027 cout<<"Switching on use own xyz calculation"<<endl;
1028 kGCdoOwnXYZCalculation = kTRUE;
1030 else if (argument.CompareTo("-use-ConstructGamma") == 0){
1031 cout<<"Switching on use ConstructGamma and OFF own xyz calculation"<<endl;
1032 kGCdoOwnXYZCalculation = kFALSE;
1033 kGCdoConstructGamma = kTRUE;
1035 else if (argument.CompareTo("-no-aod") == 0){
1036 cout<<"Turning off AOD"<<endl;
1037 kGCWriteAOD = kFALSE;
1039 else if (argument.CompareTo("-force-aod") == 0){
1040 cout<<"Turning on FillAOD = kTRUE every event; If running in common train this should probably not be done!!!"<<endl;
1041 kGCForceAOD = kTRUE;
1043 else if (argument.CompareTo("-standard-aod") == 0){
1044 cout<<"Writing to standard AOD, will only work on train"<<endl;
1045 kGCDeltaAODFilename = "";
1047 else if(argument.CompareTo("-append-to-output-file") == 0){
1048 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1049 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
1050 if(kGCoutputFileAppendix.IsNull()){
1051 cout<<"-appending-to-output-file is NULL"<<endl;
1055 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
1058 else if(argument.CompareTo("-set-cut-selection") == 0){
1059 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1060 kGCAnalysisCutSelectionId = ((TObjString*)pTokens->At(i))->GetString();
1061 cout<<"The analysis cut selection is set to: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1066 if (bMissingParam) {
1067 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
1073 void SetVersionLibrary(){
1074 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
1075 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
1076 // If no, kGCusePWG4PartCorr is true.
1078 TString file = gSystem->Getenv("ALICE_ROOT");
1079 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
1082 stream.open(file.Data());
1085 kGCusePWG4PartCorr=kFALSE;
1088 kGCusePWG4PartCorr=kTRUE;
1094 AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments, AliAnalysisDataContainer *cin_esd=NULL){
1099 if(!scanArguments(arguments)){
1103 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
1105 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
1106 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
1107 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
1111 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
1112 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
1113 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
1116 if(kGCrunOnTrain == kFALSE){
1117 if(kGCnumberOfFilesToAnalyze==0){
1118 ifstream dataInStream;
1119 dataInStream.open(kGCdataList.Data());
1120 if ( !dataInStream ){
1121 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
1125 while ( !dataInStream.eof() )
1127 getline(dataInStream, line);
1128 if(line.compare("") != 0){//checks if there is an empty line in the data list
1129 kGCnumberOfFilesToAnalyze++;
1133 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
1135 build();//build (if necessary) and load the libraries needed
1137 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
1141 // for the train leave this to the steering macro
1142 AliLog::SetGlobalDebugLevel(0);
1143 AliLog::SetGlobalLogLevel(AliLog::kFatal);
1145 // ------------------------------------------------------------------------
1150 const Double_t ptmin = kGCfirstXBinPt;
1151 const Double_t ptmax = kGClastXBinPt;
1152 const Double_t etamin = kGCfirstXBinEta;
1153 const Double_t etamax = kGClastXBinEta;
1154 const Double_t massmin = kGCfirstXBinPi0Mass;
1155 const Double_t massmax = kGClastXBinPi0Mass;
1158 // sensitive variables
1163 //how many selection steps
1165 const Int_t nvar = 3;
1167 Int_t kGCnXBinsPtCF=40;
1168 Int_t kGCnXBinsEtaCF=8;
1169 Int_t kGCnXBinsPi0MassCF=10;
1175 kGCnXBinsPi0MassCF=1;
1177 const Int_t nbin0 = kGCnXBinsPtCF; // do not use same variable for CF than for histogram
1178 const Int_t nbin1 = kGCnXBinsEtaCF; // do not use same variable for CF than for histogram
1179 const Int_t nbin2 = kGCnXBinsPi0MassCF; // do not use same variable for CF than for histogram
1181 //arrays for the number of bins in each dimension
1187 //arrays for lower bounds
1188 Double_t *binLim0 = new Double_t[nbin0+1];
1189 Double_t *binLim1 = new Double_t[nbin1+1];
1190 Double_t *binLim2 = new Double_t[nbin2+1];
1192 // values for lower bounds
1193 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
1194 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
1195 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
1198 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
1199 container->SetBinLimits(ipt,binLim0);
1200 container->SetBinLimits(ieta,binLim1);
1201 container->SetBinLimits(imass,binLim2);
1203 AliCFManager *man = new AliCFManager();
1204 man->SetParticleContainer(container);
1205 for(int i = 0;i<nstep;i++){
1206 TObjArray *tmp = new TObjArray(0);
1207 man->SetParticleCutsList(i,tmp) ;
1210 // end ---------------------------------------------------------------------------
1215 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
1216 AddHistograms(histograms);
1218 // Create the Analysis manager
1219 AliAnalysisManager *mgr =NULL;
1220 if(kGCrunOnTrain == kFALSE){
1221 mgr = new AliAnalysisManager("My Manager", "My Analysis");
1224 mgr = AliAnalysisManager::GetAnalysisManager();
1228 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
1231 if(kGCrunOnTrain == kTRUE){
1232 if (!mgr->GetInputEventHandler()) {
1233 ::Error("ConfigGammaConversion", "This task requires an input event handler");
1237 AliESDInputHandler* inpHandler = NULL;
1239 if(kGCrunOnTrain == kFALSE){
1240 // Define Input Event Handler
1241 inpHandler = new AliESDInputHandler();
1243 // Define MC Truth Event Handler
1244 AliMCEventHandler* mcHandler = NULL;
1246 if(kGCrunOnTrain == kFALSE){
1247 mcHandler = new AliMCEventHandler();
1250 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
1253 ::Error("", "No MC handler connected");
1260 if(kGCrunOnTrain == kFALSE){
1261 mgr->SetInputEventHandler (inpHandler);
1262 mgr->SetMCtruthEventHandler(mcHandler);
1264 // Be sure you are told what you are doing
1265 // mgr->SetDebugLevel(10);
1267 // Declare Common Input Tchain
1268 AliAnalysisDataContainer *cinput1 = NULL;
1270 if(kGCusePWG4PartCorr){
1272 if(kGCrunOnTrain == kFALSE){
1273 cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer);
1281 cinput1 = mgr->GetCommonInputContainer();
1284 // Common Output Tree in common ??????default?????? output file
1285 // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive?
1286 AliAnalysisDataContainer *coutput1 = NULL;
1289 if(kGCrunOnTrain && !(kGCrunOnGsiTrain)) {
1290 coutput1 = mgr->GetCommonOutputContainer();
1292 coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1296 // Private output objects
1297 if(kGCoutputFileName.Contains(".root")){
1298 kGCoutputFileName.ReplaceAll(".root","");
1300 if(kGCoutputFileAppendix.Contains(".root")){
1301 kGCoutputFileAppendix.ReplaceAll(".root","");
1303 //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
1306 TString outputfile = AliAnalysisManager::GetCommonFileName();
1307 cout<<"Analyis cut selection ID is: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1308 // outputfile += Form(":PWG4_GammaConversion_%s",kGCAnalysisCutSelectionId.Data());
1309 outputfile += Form(":PWG4_GammaConversion");
1311 // if(kGCrunNeutralMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1313 // if(kGCrunJet==kTRUE) outputfile +="1"; else outputfile +="0";
1315 // if(kGCrunChic==kTRUE) outputfile +="1"; else outputfile +="0";
1317 // if(kGCrunCF==kTRUE) outputfile +="1"; else outputfile +="0";
1319 // if(kGCcalculateBackground==kTRUE) outputfile +="1"; else outputfile +="0";
1321 // if(kGCdoNeutralMesonV0MCCheck==kTRUE) outputfile +="1"; else outputfile +="0";
1323 // if(kGCrunOmegaMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1325 // if(kGCrunRES==kTRUE) outputfile +="1"; else outputfile +="0";
1327 outputfile += Form("_%s",kGCAnalysisCutSelectionId.Data());
1329 cout<<"Ouput file::"<< outputfile <<endl;
1330 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(Form("histogramsAliGammaConversion_%s",kGCAnalysisCutSelectionId.Data()), TList::Class(),AliAnalysisManager::kOutputContainer, outputfile);
1332 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(Form("GammaConvccontainer0_%s",kGCAnalysisCutSelectionId.Data()),AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile);
1334 //------------------------ END: Define input/output handlers ---------------------------------------------------
1336 //check for errors in the specified data
1337 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
1338 //Print warning, cannot use both
1339 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
1341 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
1342 //Print warning, one have to be specified
1343 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
1347 if(!SetAnalysisCutSelection(kGCAnalysisCutSelectionId)){
1351 //Create the V0Reader
1352 AliV0Reader * v0Reader = new AliV0Reader();
1353 if(kGCuseKFParticle){
1354 v0Reader->UseKFParticle();
1356 else if(kGCuseESDTrack){
1357 v0Reader->UseESDTrack();
1360 v0Reader->SetMaxVertexZ(kGCmaxVertexZ);
1361 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1362 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1363 v0Reader->SetMaxRCut(kGCmaxRCut);
1364 v0Reader->SetEtaCut(kGCetaCut);
1365 v0Reader->SetPtCut(kGCptCut);
1366 v0Reader->SetSinglePtCut(kGCsingleptCut);
1367 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1368 v0Reader->SetLineCutZValue(kGCLineCutZValue);
1369 v0Reader->SetMaxZCut(kGCmaxZCut);
1370 v0Reader->SetMinClsTPCCut(kGCminClsTPCCut);
1371 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1372 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
1373 v0Reader->SetAlphaCutMeson(kGCalphaCutMeson);
1374 v0Reader->SetAlphaMinCutMeson(kGCalphaMinCutMeson);
1375 v0Reader->SetPIDProbability(kGCprobElectron);
1376 v0Reader->SetXVertexCut(kGCxVertexCut);
1377 v0Reader->SetYVertexCut(kGCyVertexCut);
1378 v0Reader->SetZVertexCut(kGCzVertexCut);
1379 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1380 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1381 v0Reader->SetDoMCTruth(kGCdoMCTruth);
1382 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
1383 v0Reader->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
1385 v0Reader->SetCFManager(man);
1387 // for dEdx N sigma Cut
1388 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1389 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1390 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1391 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1392 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
1393 v0Reader->SetPIDMaxPnSigmaAbovePionLine(kGCPIDMaxPnSigmaAbovePionLine);
1394 v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder);
1395 v0Reader->SetCalculateBackground(kGCcalculateBackground);
1397 // for the rejection at LowP based on Dedx signal
1399 v0Reader->SetDoKaonRejectionLowP(kGCdoKaonRejectionLowP);
1400 v0Reader->SetDoProtonRejectionLowP(kGCdoProtonRejectionLowP);
1401 v0Reader->SetDoPionRejectionLowP(kGCdoPionRejectionLowP);
1402 v0Reader->SetPIDnSigmaAtLowPAroundKaonLine(kGCPIDnSigmaAtLowPAroundKaonLine);
1403 v0Reader->SetPIDnSigmaAtLowPAroundProtonLine(kGCPIDnSigmaAtLowPAroundProtonLine);
1404 v0Reader->SetPIDnSigmaAtLowPAroundPionLine(kGCPIDnSigmaAtLowPAroundPionLine);
1405 v0Reader->SetPIDMinPKaonRejectionLowP(kGCPIDMinPKaonRejectionLowP);
1406 v0Reader->SetPIDMinPProtonRejectionLowP(kGCPIDMinPProtonRejectionLowP);
1407 v0Reader->SetPIDMinPPionRejectionLowP(kGCPIDMinPPionRejectionLowP);
1408 v0Reader->SetDoQtGammaSelection(kGCdoQtGammaSelection);
1409 v0Reader->SetQtMax(kGCQtMax);
1410 v0Reader->SetNEventsForBG(kGCNEventsForBGCalculation);
1412 // Create the GammaConversionTask
1415 AliAnalysisTaskGammaConversion *gammaconversion =
1416 new AliAnalysisTaskGammaConversion(Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data()));
1418 cout<<"name of Task::"<< Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())<< " "<<gammaconversion->GetName() <<endl;
1419 gammaconversion->SetDebugLevel(0);
1421 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
1423 gammaconversion->SetV0Reader(v0Reader);
1424 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
1425 gammaconversion->Init();
1427 gammaconversion->SetElectronMass(kGCelectronMass);
1428 gammaconversion->SetGammaMass(kGCgammaMass);
1429 gammaconversion->SetPi0Mass(kGCpi0Mass);
1430 gammaconversion->SetEtaMass(kGCetaMass);
1432 gammaconversion->SetGammaWidth(kGCgammaWidth);
1433 gammaconversion->SetPi0Width(kGCpi0Width);
1434 gammaconversion->SetEtaWidth(kGCetaWidth);
1436 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
1438 Double_t lowPtMapping=0.4;
1439 Double_t highPtMapping=1.5;
1440 gammaconversion->SetLowPtMapping(lowPtMapping);
1441 gammaconversion->SetHighPtMapping(highPtMapping);
1443 // define the width constraint used by KF particle.
1444 Double_t gammaWidth = 0.01;
1445 Double_t pi0Width = 0.01;
1446 Double_t etaWidth = 0.01;
1448 gammaconversion->SetHistograms(histograms);
1449 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
1451 gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B);
1452 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
1454 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
1455 gammaconversion->SetDoNeutralMesonV0MCCheck(kGCdoNeutralMesonV0MCCheck);
1456 gammaconversion->SetDoJet(kGCrunJet);
1457 gammaconversion->SetDoChic(kGCrunChic);
1458 gammaconversion->SetDoOmegaMeson(kGCrunOmegaMeson);
1459 gammaconversion->SetRecalculateV0ForGamma(kGCRecalculateV0ForGamma);
1460 gammaconversion->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
1461 gammaconversion->SetMoveParticleAccordingToVertex(kGCMoveParticlesAccordingToVertex);
1463 gammaconversion->SetCFManager(man);
1464 gammaconversion->SetDoCF(kGCrunCF);
1465 v0Reader->SetDoCF(kGCrunCF);
1467 // Add task to the manager
1468 mgr->AddTask(gammaconversion);
1471 // Define Output Event Handler and add
1473 gammaconversion->SetForceAOD(kGCForceAOD);
1475 if( kGCrunOnTrain ) {
1477 AliAODHandler * aodHandler = dynamic_cast<AliAODHandler*>(mgr->GetOutputEventHandler());
1479 ::Error("This task requires an AOD handler");
1483 gammaconversion->SetDeltaAODFileName(kGCDeltaAODFilename);
1485 if(kGCDeltaAODFilename.Length() > 0) {
1486 mgr->RegisterExtraFile(kGCDeltaAODFilename.Data());
1490 if(kGCDeltaAODFilename.Length() == 0 ) {
1491 cout << "Error:: Need a file name for the AOD"<<endl;
1494 AliAODHandler* aodHandler = new AliAODHandler();
1495 aodHandler->SetOutputFileName(kGCDeltaAODFilename);
1496 aodHandler->SetCreateNonStandardAOD();
1497 mgr->SetOutputEventHandler(aodHandler);
1501 // Connect I/O to the task
1502 mgr->ConnectInput (gammaconversion, 0, cinput1);
1503 if(mgr->GetCommonOutputContainer())
1504 mgr->ConnectOutput(gammaconversion, 0, mgr->GetCommonOutputContainer());
1506 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1507 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1509 if(kGCRunGammaJetTask) {
1510 AliAnalysisTaskGammaJet * gammaJetTask = new AliAnalysisTaskGammaJet("GammaJetTask");
1512 gammaJetTask->SetDeltaAODFileName(kGCDeltaAODFileName);
1515 mgr->ConnectInput(gammaJetTask, 0, cinput1);
1516 AliAnalysisDataContainer *coutputgj = mgr->CreateContainer("chistpt", TList::Class(), AliAnalysisManager::kOutputContainer, "AnalysisResultsConvJets.root");
1517 mgr->ConnectOutput(gammaJetTask, 1, coutputgj);
1523 gROOT->LoadMacro("$ALICE_ROOT/PWG4/macros/AddGammaConvDalitz.C");
1524 gROOT->AddGammaConvDalitz( v0Reader, kGCcalculateBackground, kGCRunStandalone );
1528 if(kGCrunOnTrain == kFALSE){
1529 if(kGCdataList.IsNull()){
1530 cout<<"Data list is not set, aborting."<<endl;
1534 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1535 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
1536 if(kGCdoMCTruth)physSelTask->GetPhysicsSelection()->SetAnalyzeMC();
1537 physSelTask->GetPhysicsSelection()->AddBackgroundIdentification(new AliBackgroundSelection());
1538 gammaconversion->SelectCollisionCandidates();
1541 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1542 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kGCdoMCTruth,kTRUE);
1543 gammaconversion->SelectCollisionCandidates();
1545 // if(kGCrunOnTrain == kFALSE){
1546 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
1548 mgr->InitAnalysis();
1552 mgr->StartAnalysis("local",chain);
1555 return gammaconversion;
1562 gSystem->Load("libTree.so");
1563 gSystem->Load("libGeom");
1566 //Setting up STEERBase.par//
1568 cout<<"compiling STEERBase"<<endl;
1569 setupPar("STEERBase");
1570 gSystem->Load("libSTEERBase.so");
1574 //Setting up ESD.par//
1576 cout<<"compiling ESD"<<endl;
1578 gSystem->Load("libVMC.so");
1579 gSystem->Load("libESD.so");
1583 //Setting up AOD.par//
1585 cout<<"compiling AOD"<<endl;
1587 gSystem->Load("libAOD.so");
1590 //Setting up ANALYSIS.par//
1592 cout<<"compiling ANALYSIS"<<endl;
1593 setupPar("ANALYSIS");
1594 gSystem->Load("libANALYSIS.so");
1597 //Setting up ANALYSISalice.par//
1599 cout<<"compiling ANALYSISalice"<<endl;
1600 setupPar("ANALYSISalice");
1601 gSystem->Load("libANALYSISalice.so");
1604 //Setting up CORRFW.par//
1606 cout<<"compiling CORRFW"<<endl;
1608 gSystem->Load("libCORRFW.so");
1611 //Setting up PWG4GammaConv.par//
1613 cout<<"compiling PWG4GammaConv"<<endl;
1614 setupPar("PWG4GammaConv");
1615 gSystem->Load("libPWG4GammaConv.so");
1618 Int_t setupPar(const char* pararchivename) {
1622 if (pararchivename) {
1623 char processline[1024];
1624 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1625 gROOT->ProcessLine(processline);
1626 const char* ocwd = gSystem->WorkingDirectory();
1627 gSystem->ChangeDirectory(pararchivename);
1629 // check for BUILD.sh and execute
1630 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1631 printf("*******************************\n");
1632 printf("*** Building PAR archive ***\n");
1633 printf("*******************************\n");
1635 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
1636 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1640 // check for SETUP.C and execute
1641 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1642 printf("*******************************\n");
1643 printf("*** Setup PAR archive ***\n");
1644 printf("*******************************\n");
1645 gROOT->Macro("PROOF-INF/SETUP.C");
1648 gSystem->ChangeDirectory("../");
1655 void AddHistograms(AliGammaConversionHistograms *histograms){
1656 //---------------------------------------------- Jets ---------------------------------------------------------
1657 if(kGCrunJet == kTRUE){
1658 if (kGCplotdPhiHdrGam == kTRUE){
1659 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
1662 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1663 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
1666 if (kGCplotMinimumIsoDistance == kTRUE){
1667 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
1670 if (kGCplotFFzHdrGam == kTRUE){
1671 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
1674 if (kGCplotImbalanceHdrGam == kTRUE){
1675 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
1677 }//end if(kGCrunJet)
1679 //---------------------------------------------- Chi_c ---------------------------------------------------------
1682 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1684 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
1686 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
1688 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1689 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
1692 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1693 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1695 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1697 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1698 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1699 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1700 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1701 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1702 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1704 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1706 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1709 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1710 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1711 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
1713 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1714 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1716 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
1719 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1720 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","");}
1721 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1722 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1727 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
1728 if(kGCrunNeutralMeson){
1730 // Histograms from esd tracks
1731 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1732 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1733 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1734 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1735 if(kGCplotESDENTPCClusters == kTRUE){ histograms->AddHistogram("ESD_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1736 if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1737 if(kGCplotESDENTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
1738 if(kGCplotESDETPCchi2 == kTRUE){ histograms->AddHistogram("ESD_E_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1741 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1742 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1743 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1744 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1745 if(kGCplotESDPNTPCClusters == kTRUE){ histograms->AddHistogram("ESD_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1746 if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1747 if(kGCplotESDPNTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
1748 if(kGCplotESDPTPCchi2 == kTRUE){ histograms->AddHistogram("ESD_P_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1750 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1751 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1752 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1753 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1754 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1755 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1756 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1757 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1758 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1759 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1760 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1761 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1765 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1766 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1767 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1768 if(kGCplotESDConversionXYBeamPipe == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY_BeamPipe" ,"" , kGCnXBinsXYBP, kGCfirstXBinXYBP, kGClastXBinXYBP, kGCnYBinsXYBP, kGCfirstYBinXYBP, kGClastYBinXYBP, "", "");}
1769 if(kGCplotESDConversionRPhiBeamPipe == kTRUE){ histograms->AddHistogram("ESD_Conversion_RPhi_BeamPipe" ,"" , kGCnXBinsRPhiBP, kGCfirstXBinRPhiBP, kGClastXBinRPhiBP, kGCnYBinsRPhiBP, kGCfirstYBinRPhiBP, kGClastYBinRPhiBP, "", "");}
1770 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1772 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1773 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1774 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1775 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1776 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1777 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1778 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1779 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1781 if(kGCplotESDConvGammaEeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1782 if(kGCplotESDConvGammaPeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1783 if(kGCplotESDConvGammaEmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1784 if(kGCplotESDConvGammaPmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1786 if(kGCplotESDConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
1790 if(kGCplotESDTrueDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueDalitzContamination_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1792 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1793 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1794 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1795 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1796 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1797 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1798 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1799 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1800 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1801 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1802 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1803 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1805 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1806 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1807 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1808 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1810 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1811 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1812 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1813 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1814 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1815 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1816 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1817 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1818 if(kGCplotESDTrueConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
1820 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1821 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1822 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1826 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1827 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1828 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1829 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1830 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1831 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1832 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1833 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1834 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1835 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1836 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1837 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1839 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1840 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1841 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1842 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1844 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1845 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1846 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1847 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1848 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1849 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1852 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1853 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1855 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1856 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1857 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1860 if(kGCplotESDMotherChi2 == kTRUE){ histograms->AddHistogram("ESD_Mother_Chi2","" , kGCnXBinsMesonChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1861 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1862 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1863 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1864 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1865 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1866 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1867 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1868 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1869 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1870 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1872 for(Int_t z=0;z<8;z++){
1873 for(Int_t m=0;m<6;m++){
1874 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_GammaDaughter_OpeningAngle",z,m) ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1875 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Energy",z,m) ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1876 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Pt",z,m) ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1877 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Eta",z,m) ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1878 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Phi",z,m) ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1879 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Mass",z,m) ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1880 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_R",z,m) ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1881 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_ZR",z,m) ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1882 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_XY",z,m) ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1883 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Rapid",z,m) ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1887 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1888 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1889 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1890 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1891 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1892 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1893 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1894 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1895 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1896 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1899 if(kGCplotMapping == kTRUE){
1900 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1901 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
1902 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
1906 //************************************* Defining Resolution histograms *******************************************************/
1908 // written by Friederike Bock
1909 // contact: Friederike.Bock@cern.ch
1912 if(kGCrunRES == kTRUE){
1913 //------------------------------------------ Absolute Resolutions --------------------------------------------------------
1914 if(kGCplotResolutiondRAbs== kTRUE){
1915 histograms->AddHistogram("Resolution_dRAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1916 if(kGCplotResolutiondZAbs== kTRUE){
1917 histograms->AddHistogram("Resolution_dZAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1918 if(kGCplotResolutiondPhiAbs== kTRUE){
1919 histograms->AddHistogram("Resolution_dPhiAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR, -TMath::Pi()/30., TMath::Pi()/30., "", "");}
1921 //------------------------------------------ Relative Resolutions --------------------------------------------------------
1922 if(kGCplotResolutiondR == kTRUE){
1923 histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1924 if(kGCplotResolutiondZ == kTRUE){
1925 histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
1927 //------------------------------------------- Pt vs R ---------------------------------------------------------------------
1928 if(kGCplotResolutiondRdPt == kTRUE){
1929 histograms->AddHistogram("Resolution_R_dPt" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
1932 // ------------------------------------------- Reconstruction Plots for Resolution ----------------------------------------
1933 if(kGCplotResolutionMCPt == kTRUE){
1934 histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1935 if(kGCplotResolutionMCR == kTRUE){
1936 histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1937 if(kGCplotResolutionMCZ == kTRUE){
1938 histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1940 if(kGCplotResolutionESDPt == kTRUE){
1941 histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1942 if(kGCplotResolutionESDR == kTRUE){
1943 histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1944 if(kGCplotResolutionESDZ == kTRUE){
1945 histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
1947 // ------------------------------------------- Plots for specific Gamma Trigger Studies -----------------------------------
1948 if(kGCplotResolutionPtdPt = kTRUE){
1949 // ::::::::::::::::::::::::::::::::::::::: histograms for gammas ::::::::::::::::::::::::::::::::::::::::::::::::::::::
1950 histograms->AddHistogram("Resolution_Gamma_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1951 histograms->AddHistogram("Resolution_Gamma_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1953 // ::::::::::::::::::::::::::::::::::::::: histograms for electrons :::::::::::::::::::::::::::::::::::::::::::::::::::
1954 histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1955 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1956 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1957 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1958 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1959 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1960 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1961 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1962 histograms->AddHistogram("Resolution_E_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1963 histograms->AddHistogram("Resolution_E_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
1964 histograms->AddHistogram("Resolution_E_nTRDtracklets_MCPt","" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
1965 histograms->AddHistogram("Resolution_E_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
1966 histograms->AddHistogram("Resolution_E_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
1967 // histograms->AddHistogram("Resolution_E_TRDsignal_ESDPt","", fV0Reader->GetNegativeTrackPt(), fV0Reader->GetNegativeESDTrack()->GetTRDsignal());
1969 // :::::::::::::::::::::::::::::::::::::::: histograms for positrons :::::::::::::::::::::::::::::::::::::::::::::::::::
1970 histograms->AddHistogram("Resolution_P_dPt_Pt" ,"" , kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1971 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1972 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1973 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1974 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1975 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1976 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1977 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1978 histograms->AddHistogram("Resolution_P_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1979 histograms->AddHistogram("Resolution_P_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
1980 histograms->AddHistogram("Resolution_P_nTRDtracklets_MCPt","", kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
1981 histograms->AddHistogram("Resolution_P_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
1982 histograms->AddHistogram("Resolution_P_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201,-0.5, 200.5,"", "");
1983 // histograms->AddHistogram("Resolution_P_TRDsignal_ESDPt", "",fV0Reader->GetPositiveTrackPt(), fV0Reader->GetPositiveESDTrack()->GetTRDsignal());
1984 } //end of specific trigger study resolution plots
1985 } //end if(kGCrunRES=true)
1987 // ___________________________________________________________________________________________________________________________________________________
1989 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, -0.5, 99.5,"","");}
1990 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, -0.5, 99.5,"","");}
1991 if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",100, -0.5, 99.5,"","");}
1992 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracks","Number of Good ESD tracks",100, -0.5, 99.5,"","");}
1993 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracksVtx","Number of Good ESD tracks",100, -0.5, 99.5,"","");}
1996 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1997 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1998 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1999 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2000 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2001 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2003 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2004 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2005 if(kGCplotESDCutPionRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutPionRejectionLowP_InvMass" ,"dedx PionRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2006 if(kGCplotESDCutKaonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutKaonRejectionLowP_InvMass" ,"dedx KaonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2007 if(kGCplotESDCutQtGammaSelection==kTRUE){histograms->AddHistogram("ESD_CutQt_InvMass","ESD_CutQt_InvMass",kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2009 if(kGCplotESDCutProtonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutProtonRejectionLowP_InvMass" ,"dedx ProtonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2010 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2011 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2012 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2013 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2014 if(kGCplotESDCutSinglePt == kTRUE){histograms->AddHistogram("ESD_CutSinglePt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2015 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2016 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2017 if(kGCplotESDCutZ == kTRUE){histograms->AddHistogram("ESD_CutZ_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2018 if(kGCplotESDCutMinClsTPC == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPC_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2020 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2021 if(kGCplotESDAllV0s == kTRUE){histograms->AddHistogram("ESD_AllV0s_InvMass" ,"All V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2022 if(kGCplotESDAllV0sCurrentFinder == kTRUE){histograms->AddHistogram("ESD_AllV0sCurrentFinder_InvMass" ,"All V0s Current Finder" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2024 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
2026 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
2027 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
2029 if(kGCplotOmegaSpectra == kTRUE){
2030 histograms->AddHistogram("ESD_Omega_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2031 histograms->AddHistogram("ESD_Omega_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2033 histograms->AddHistogram("ESD_Omega_Bck_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2034 histograms->AddHistogram("ESD_Omega_Bck_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2035 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2036 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2040 if(kGCplotPi0Spectra == kTRUE){
2041 histograms->AddHistogram("ESD_Mother_alfa","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
2043 // histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2044 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2045 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2046 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2047 histograms->AddHistogram("ESD_Mother_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2048 histograms->AddHistogram("ESD_Mother_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2049 histograms->AddHistogram("ESD_Mother_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2050 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2051 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2052 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2055 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2056 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvPHOS" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2057 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2058 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2060 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2061 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_Bck","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2063 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2064 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL_Bck" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2067 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2068 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2071 // if(kGCdoNeutralMesonV0MCCheck == kTRUE){
2072 histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2073 histograms->AddHistogram("ESD_TruePi0_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2074 histograms->AddHistogram("ESD_TruePi0_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2075 histograms->AddHistogram("ESD_TruePi0_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2076 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_1212" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2077 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0912" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2078 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0909" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2079 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2080 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2081 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2082 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2083 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2086 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]");
2087 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2092 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
2093 for(Int_t m=0;m<6;m++){
2094 histograms->AddHistogram(Form("%dESD_Mother_InvMass_vs_Pt",m) ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2096 for(Int_t z=0;z<8;z++){
2097 for(Int_t m=0;m<6;m++){
2098 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]");
2100 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]");
2103 histograms->AddHistogram(Form("%d%dESD_Background_InvMass",z,m),"Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2104 histograms->AddHistogram(Form("%d%dESD_Mother_InvMass",z,m),"Invariant mass in z and m bins",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2107 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]");
2110 histograms->AddHistogram(Form("%d%dESD_Background_InvMass_Fiducial",z,m),"Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2114 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2115 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt_alpha" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2118 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2120 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]");
2121 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2126 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
2127 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
2128 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
2129 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
2130 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2131 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2134 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2135 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2136 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2137 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2138 if(kGCplotMCENTPCClusters == kTRUE){ histograms->AddHistogram("MC_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2139 if(kGCplotMCENITSClusters == kTRUE){ histograms->AddHistogram("MC_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2141 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2142 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2143 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2144 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2145 if(kGCplotMCPNTPCClusters == kTRUE){ histograms->AddHistogram("MC_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2146 if(kGCplotMCPNITSClusters == kTRUE){ histograms->AddHistogram("MC_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2148 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2149 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2150 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2151 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2152 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2154 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2155 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2156 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2157 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2158 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2159 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
2161 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2162 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2163 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2164 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2165 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2167 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2168 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2169 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2170 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2171 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2173 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2174 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2175 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2176 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2177 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2178 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
2179 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2180 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2181 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2182 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2183 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2184 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2185 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2186 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2188 if(kGCplotMCMotherSpectra == kTRUE){
2189 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2190 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2191 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2195 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2196 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2197 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2198 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2199 if(kGCplotMCPi0PtFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Fiducial" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2200 if(kGCplotMCPi0PtWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_withinAcceptance_Fiducial" ,"" , kGCnXBinsPt,kGCfirstXBinPt, kGClastXBinPt, "", "");}
2201 if(kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_ConvGamma_withinAcceptance_Fiducial","" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2202 if(kGCplotMCPi0OpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2203 if(kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2204 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2205 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2206 if(kGCplotMCPi0Alpha == kTRUE){ histograms->AddHistogram("MC_Pi0_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");}
2208 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2209 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2210 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2211 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2212 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2213 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2214 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2215 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2216 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2219 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2220 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2221 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2222 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2223 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2224 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2225 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2226 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2227 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2228 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2229 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2230 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2231 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2232 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2236 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2237 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2238 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2239 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2240 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2241 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
2242 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2243 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2244 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2245 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2246 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2247 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2248 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2249 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2250 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2252 if(kGCplotMCEtaOpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2253 if(kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2254 }// end kGCrunNeutralMeson
2257 //--------------------------------------------------- 2 gamma Background -------------------------------------------------------
2259 if(kGCcalculateBackground==kTRUE){
2260 histograms->AddHistogram("ESD_Z_distribution" ,"Z primary vertex" , 2000, -30, 30,"Z[cm]","counts");
2261 histograms->AddHistogram("ESD_multiplicity_distribution" ,"multiplicity distribution" , 200, 0, 200,"counts","Multiplicity");
2262 histograms->AddHistogram("ESD_ZvsMultiplicity" ,"Z vs Multiplicity" , 1000, -10, 10,200,0,200,"Z[cm]","Multiplicity");
2265 if(kGCRecalculateV0ForGamma==kTRUE){
2266 histograms->AddHistogram("ESD_RecalculateV0_InvMass","", kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");
2267 histograms->AddHistogram("ESD_RecalculateV0_Pt","",kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
2268 histograms->AddHistogram("ESD_RecalculateV0_E_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2269 histograms->AddHistogram("ESD_RecalculateV0_P_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2270 histograms->AddHistogram("ESD_RecalculateV0_cpa","",1000,-1.,1.,"","");
2271 histograms->AddHistogram("ESD_RecalculateV0_dca","",100,0.,10.,"","");
2272 histograms->AddHistogram("ESD_RecalculateV0_Rr","",250,0.,250.,"","");
2273 histograms->AddHistogram("ESD_RecalculateV0_normdistP","",250,0.,250.,"","");
2274 histograms->AddHistogram("ESD_RecalculateV0_normdistN","",250,0.,250.,"","");
2276 histograms->AddHistogram("ESD_RecalculateGG_InvMass","",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2277 histograms->AddHistogram("ESD_RecalculateGG_InvMass_vs_Pt","", kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2286 Int_t SetAnalysisCutSelection(TString analysisCutSelection){
2289 // set the cuts depending on the Cut Selection Id
2290 // first number is dummy always set to 9
2291 // const char* cutSelection = analysisCutSelection.Data();
2292 if(analysisCutSelection.Length()!=c_array_size){
2293 cout<<"Cut selection has the wrong length!"<<endl;
2297 char cutSelection[] = analysisCutSelection.Data();
2298 int array[c_array_size];
2299 const int N = sizeof(array) / sizeof(int);
2300 string2array( cutSelection, array );
2304 Int_t goodId=array[0];
2305 Int_t v0FinderType=array[1];
2306 Int_t eProbCut=array[2];
2307 Int_t ededxSigmaCut=array[3];
2308 Int_t pidedxSigmaCut=array[4];
2309 Int_t piMomdedxSigmaCut=array[5];
2310 Int_t chi2GammaCut=array[6];
2311 Int_t singlePtCut=array[7];
2312 Int_t clsTPCCut=array[8];
2313 Int_t etaCut=array[9];
2314 Int_t chi2MesonCut=array[10];
2315 Int_t LowPRejectionSigmaCut=array[11];
2316 Int_t QtMaxCut=array[12];
2317 Int_t piMaxMomdedxSigmaCut=array[13];
2318 Int_t alphaMesonCut=array[14];
2320 cout<<"alphaMesonCut"<<alphaMesonCut<<endl;
2321 cout<<"piMaxMomdedxSigmaCut::"<<piMaxMomdedxSigmaCut<<endl;
2322 cout<<"QtMaxCut:"<<QtMaxCut<<endl;
2323 cout<<"LowPRejectionSigmaCut:"<<LowPRejectionSigmaCut<<endl;
2324 cout<<"chi2MesonCut: "<< chi2MesonCut<<endl;
2325 cout<<"etaCut: "<<etaCut<<endl;
2326 cout<<"clsTPCCut: "<<clsTPCCut<<endl;
2327 cout<<"singlePtCut: "<<singlePtCut<<endl;
2328 cout<<"chi2GammaCut: "<<chi2GammaCut<<endl;
2329 cout<<"piMomdedxSigmaCut: "<<piMomdedxSigmaCut<<endl;
2330 cout<<"pidedxSigmaCut: "<<pidedxSigmaCut <<endl;
2331 cout<<"ededxSigmaCut: "<<ededxSigmaCut <<endl;
2332 cout<<"eProbCut: "<< eProbCut<<endl;
2333 cout<<"v0FinderType: "<<v0FinderType <<endl;
2334 cout<<"goodId: "<<goodId <<endl;
2337 cout<<"Analysis Cut Selection too short or does not start with 9"<<endl;
2341 switch (v0FinderType){
2342 case 0: // on fly V0 finder
2343 kGCUseOnFlyV0Finder=kTRUE;
2345 case 1: // offline V0 finder
2346 kGCUseOnFlyV0Finder=kFALSE;
2357 kGCprobElectron=0.1;
2360 kGCprobElectron=0.5;
2363 kGCprobElectron=0.7;
2369 switch(ededxSigmaCut){
2371 kGCPIDnSigmaBelowElectronLine=-10;
2372 kGCPIDnSigmaAboveElectronLine=10;
2375 kGCPIDnSigmaBelowElectronLine=-5;
2376 kGCPIDnSigmaAboveElectronLine=5;
2379 kGCPIDnSigmaBelowElectronLine=-3;
2380 kGCPIDnSigmaAboveElectronLine=5;
2383 kGCPIDnSigmaBelowElectronLine=-4;
2384 kGCPIDnSigmaAboveElectronLine=5;
2390 switch(pidedxSigmaCut){
2392 kGCPIDnSigmaAbovePionLine=-10;
2395 kGCPIDnSigmaAbovePionLine=0;
2398 kGCPIDnSigmaAbovePionLine=1;
2401 kGCPIDnSigmaAbovePionLine=-1;
2404 kGCPIDnSigmaAbovePionLine=-1.5;
2407 kGCPIDnSigmaAbovePionLine=2.;
2414 switch(piMomdedxSigmaCut){
2416 kGCPIDMinPnSigmaAbovePionLine=0.5;
2419 kGCPIDMinPnSigmaAbovePionLine=1.;
2422 kGCPIDMinPnSigmaAbovePionLine=1.5;
2425 kGCPIDMinPnSigmaAbovePionLine=20.;
2428 kGCPIDMinPnSigmaAbovePionLine=50.;
2431 kGCPIDMinPnSigmaAbovePionLine=0.3;
2434 kGCPIDMinPnSigmaAbovePionLine=0.25;
2440 switch(chi2GammaCut){
2442 kGCchi2CutConversion = 100.;
2445 kGCchi2CutConversion = 50.;
2448 kGCchi2CutConversion = 30.;
2451 kGCchi2CutConversion = 200.;
2454 kGCchi2CutConversion = 500.;
2457 kGCchi2CutConversion = 1000.;
2460 kGCchi2CutConversion = 5.;
2463 kGCchi2CutConversion = 10.;
2466 kGCchi2CutConversion = 20.;
2469 kGCchi2CutConversion = 15.;
2475 switch(singlePtCut){
2476 case 0: // 0.050 GeV
2477 kGCsingleptCut = 0.050;
2479 case 1: // 0.100 GeV
2480 kGCsingleptCut = 0.100;
2482 case 2: // 0.150 GeV
2483 kGCsingleptCut = 0.150;
2485 case 3: // 0.200 GeV
2486 kGCsingleptCut = 0.200;
2488 case 4: // 0.075 GeV
2489 kGCsingleptCut = 0.075;
2491 case 5: // 0.125 GeV
2492 kGCsingleptCut = 0.125;
2500 kGCminClsTPCCut= 0.;
2503 kGCminClsTPCCut= 70.;
2506 kGCminClsTPCCut= 80.;
2509 kGCminClsTPCCut= 100.;
2518 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2522 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2526 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2532 switch(chi2MesonCut){
2534 kGCchi2CutMeson = 100.;
2537 kGCchi2CutMeson = 50.;
2540 kGCchi2CutMeson = 30.;
2543 kGCchi2CutMeson = 200.;
2546 kGCchi2CutMeson = 500.;
2549 kGCchi2CutMeson = 1000.;
2556 switch(LowPRejectionSigmaCut){
2558 kGCPIDnSigmaAtLowPAroundKaonLine=0;
2559 kGCPIDnSigmaAtLowPAroundProtonLine=0;
2560 kGCPIDnSigmaAtLowPAroundPionLine=0;
2563 kGCPIDnSigmaAtLowPAroundKaonLine=0.5;
2564 kGCPIDnSigmaAtLowPAroundProtonLine=0.5;
2565 kGCPIDnSigmaAtLowPAroundPionLine=0.5;
2568 kGCPIDnSigmaAtLowPAroundKaonLine=1;
2569 kGCPIDnSigmaAtLowPAroundProtonLine=1;
2570 kGCPIDnSigmaAtLowPAroundPionLine=1;
2573 kGCPIDnSigmaAtLowPAroundKaonLine=2.;
2574 kGCPIDnSigmaAtLowPAroundProtonLine=2.;
2575 kGCPIDnSigmaAtLowPAroundPionLine=2.;
2578 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2579 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2580 kGCPIDnSigmaAtLowPAroundPionLine=1;
2583 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2584 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2585 kGCPIDnSigmaAtLowPAroundPionLine=1.5;
2588 kGCPIDnSigmaAtLowPAroundKaonLine=0.;
2589 kGCPIDnSigmaAtLowPAroundProtonLine=0.;
2590 kGCPIDnSigmaAtLowPAroundPionLine=2.;
2616 switch(piMaxMomdedxSigmaCut){
2618 kGCPIDMaxPnSigmaAbovePionLine=100.;
2621 kGCPIDMaxPnSigmaAbovePionLine=5.;
2624 kGCPIDMaxPnSigmaAbovePionLine=4.;
2627 kGCPIDMaxPnSigmaAbovePionLine=3.5;
2630 kGCPIDMaxPnSigmaAbovePionLine=3.;
2637 switch(alphaMesonCut){
2639 kGCalphaMinCutMeson = 0.0;
2640 kGCalphaCutMeson = 0.7;
2643 kGCalphaMinCutMeson = 0.0;
2644 kGCalphaCutMeson = 0.5;
2647 kGCalphaMinCutMeson = 0.5;
2648 kGCalphaCutMeson = 1.;
2661 void string2array(const std::string& number, int a[c_array_size])
2663 if (number.size() == c_array_size) {
2664 #define ASSIGNARRAY(i) a[i] = number[i] - '0'