]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/macros/ConfigGammaConversion.C
Bugfix, fixed memory leaks.
[u/mrichter/AliRoot.git] / PWG4 / macros / ConfigGammaConversion.C
CommitLineData
d7d7e825 1/** VERSION NUMBER 1.1 */
a19c3402 2
d7d7e825 3class AliAnalysisDataContainer;
4class AliGammaConversionHistograms;
6c84d371 5class AliAnalysisTaskGammaConversion;
a19c3402 6
d7d7e825 7// set this to a number if you want to analyze a set number of files
8// if it is 0 it will analyze the files listed in the data list
6c84d371 9Int_t kGCnumberOfFilesToAnalyze=0;
a19c3402 10
6c84d371 11Bool_t kGCrunNeutralMeson = kTRUE;
12Bool_t kGCrunJet = kFALSE;
13Bool_t kGCrunChic = kFALSE;
1e7846f4 14Bool_t kGCrunCF = kFALSE;
d7d7e825 15
a19c3402 16/** ---------------------------------- define cuts here ------------------------------------*/
17
6c84d371 18Int_t kGCpidOfNegativeTrack=11;
19Int_t kGCpidOfPositiveTrack=-11;
a19c3402 20
6c84d371 21Double_t kGCLineCutZRSlope = 0.662487;
22Double_t kGCLineCutZValue = 7.;
32a6d407 23
6c84d371 24Double_t kGCmaxRCut = 180.;
25Double_t kGCetaCut = 1.2;
26Double_t kGCptCut = 0.02;
a0b94e5c 27Double_t kGCmaxZCut = 240.;
9640a3d1 28Double_t kGCchi2CutConversion = 30.;
29Double_t kGCchi2CutMeson = 50.;
a19c3402 30
6c84d371 31Double_t kGCxVertexCut = 0.;
32Double_t kGCyVertexCut = 0.;
33Double_t kGCzVertexCut = 0.;
a19c3402 34
6c84d371 35Double_t kGCsigmaCutGammaMass=0.0001;
a19c3402 36
6c84d371 37Bool_t kGCuseImprovedVertex = kTRUE;
a19c3402 38
39// define masses of different particles, this will be used by the KF particle
40// together with the width to set mass constraints. Units in GeV.
6c84d371 41Double_t kGCelectronMass = 0.00051099892;
42Double_t kGCgammaMass = 0.;
43Double_t kGCpi0Mass = 0.1349766;
44Double_t kGCetaMass = 0.54751;
a19c3402 45
46// define the width constraint used by KF particle.
6c84d371 47Double_t kGCgammaWidth = 0.01;
48Double_t kGCpi0Width = 0.01;
49Double_t kGCetaWidth = 0.01;
a19c3402 50
51// define the probability of track being an electron
6c84d371 52Double_t kGCprobElectron = 0.002;
32a6d407 53
6c84d371 54Double_t kGCminOpeningAngleGhostCut = 0.01;
a19c3402 55
56/** ----------------------------------end define cuts here----------------------------------*/
57
58/** -------------------------------- Phi/R Mapping ---------------------------------------*/
a0b94e5c 59Int_t kGCnPhiIndex = 8;
9640a3d1 60Int_t kGCnRIndex = 7;
a19c3402 61
6c84d371 62Double_t kGCminRadius = 0.;
63Double_t kGCmaxRadius = 200.;
64Double_t kGCminPhi = -TMath::Pi();
65Double_t kGCmaxPhi = TMath::Pi();
a19c3402 66/** ------------------------------- end Phi/R Mapping ------------------------------------*/
67
a0b94e5c 68Bool_t kGCdoOwnXYZCalculation = kFALSE;
69
70Bool_t fWriteStandardAOD =kFALSE;
71
a19c3402 72/** ------------------- define which histograms to plot here --------------------------------*/
73/** NB: to change the bin numbers, see below the histogram flags */
d7d7e825 74
75// NEUTRAL MESON PLOTS
6c84d371 76Bool_t kGCplotMCConversionR = kTRUE;
77Bool_t kGCplotMCConversionZR = kTRUE;
78Bool_t kGCplotMCConversionXY = kTRUE;
79Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
9640a3d1 80Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE;
81Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE;
82
6c84d371 83
84Bool_t kGCplotMCEEnergy = kTRUE;
85Bool_t kGCplotMCEPt = kTRUE;
86Bool_t kGCplotMCEEta = kTRUE;
87Bool_t kGCplotMCEPhi = kTRUE;
88
89Bool_t kGCplotMCPEnergy = kTRUE;
90Bool_t kGCplotMCPPt = kTRUE;
91Bool_t kGCplotMCPEta = kTRUE;
92Bool_t kGCplotMCPPhi = kTRUE;
93
94Bool_t kGCplotMCallGammaEnergy = kTRUE;
95Bool_t kGCplotMCallGammaPt = kTRUE;
96Bool_t kGCplotMCallGammaEta = kTRUE;
97Bool_t kGCplotMCallGammaPhi = kTRUE;
98Bool_t kGCplotMCallGammaRapid = kTRUE;
99
100
101Bool_t kGCplotMCConvGammaEnergy = kTRUE;
102Bool_t kGCplotMCConvGammaPt = kTRUE;
103Bool_t kGCplotMCConvGammaEta = kTRUE;
104Bool_t kGCplotMCConvGammaPhi = kTRUE;
105Bool_t kGCplotMCConvGammaRapid = kTRUE;
106Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
107
108Bool_t kGCplotMCallDirectGammaEnergy = kTRUE;
109Bool_t kGCplotMCallDirectGammaPt = kTRUE;
110Bool_t kGCplotMCallDirectGammaEta = kTRUE;
111Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
112Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
113
114Bool_t kGCplotMCConvDirectGammaEnergy = kTRUE;
115Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
116Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
117Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
118Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
119
120Bool_t kGCplotMCMotherEta = kTRUE;
121Bool_t kGCplotMCMotherRapid = kTRUE;
122Bool_t kGCplotMCMotherPhi = kTRUE;
123Bool_t kGCplotMCMotherPt = kTRUE;
124Bool_t kGCplotMCMotherEnergy = kTRUE;
125Bool_t kGCplotMCMotherMass = kTRUE;
126Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
127Bool_t kGCplotMCMotherR = kTRUE;
128Bool_t kGCplotMCMotherZR = kTRUE;
129Bool_t kGCplotMCMotherXY = kTRUE;
130Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
131Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
132Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
133Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
134Bool_t kGCplotMCMotherSpectra = kTRUE;
135
136Bool_t kGCplotMCPi0Eta = kTRUE;
137Bool_t kGCplotMCPi0Rapid = kTRUE;
138Bool_t kGCplotMCPi0Phi = kTRUE;
139Bool_t kGCplotMCPi0Pt = kTRUE;
140Bool_t kGCplotMCPi0Energy = kTRUE;
141Bool_t kGCplotMCPi0Mass = kTRUE;
142Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
143Bool_t kGCplotMCPi0R = kTRUE;
144Bool_t kGCplotMCPi0ZR = kTRUE;
145Bool_t kGCplotMCPi0XY = kTRUE;
146Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
147Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
148Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
149Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
150Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
151
152Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
153Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
154Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
155Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
156Bool_t kGCplotMCPi0SecondaryEnergy = kTRUE;
157Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
158Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
159Bool_t kGCplotMCPi0SecondaryR = kTRUE;
160Bool_t kGCplotMCPi0SecondaryZR = kTRUE;
161Bool_t kGCplotMCPi0SecondaryXY = kTRUE;
162Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
163Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
164Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
165Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
166
167Bool_t kGCplotMCEtaEta = kTRUE;
168Bool_t kGCplotMCEtaRapid = kTRUE;
169Bool_t kGCplotMCEtaPhi = kTRUE;
170Bool_t kGCplotMCEtaPt = kTRUE;
171Bool_t kGCplotMCEtaEnergy = kTRUE;
172Bool_t kGCplotMCEtaMass = kTRUE;
173Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
174Bool_t kGCplotMCEtaR = kTRUE;
175Bool_t kGCplotMCEtaZR = kTRUE;
176Bool_t kGCplotMCEtaXY = kTRUE;
177Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
178Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
179Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
180Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
181Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
32a6d407 182
a19c3402 183// Histograms from esd tracks
9640a3d1 184Bool_t kGCplotESDConversionR = kTRUE;
185Bool_t kGCplotESDConversionZR = kTRUE;
186Bool_t kGCplotESDConversionXY = kTRUE;
187Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
188Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE;
189Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE;
190Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE;
191Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE;
192Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE;
193Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE;
194Bool_t kGCplotESDConvGammaEdEdxP = kTRUE;
195Bool_t kGCplotESDConvGammaPdEdxP = kTRUE;
196
6c84d371 197
198Bool_t kGCplotESDEEnergy = kTRUE;
199Bool_t kGCplotESDEPt = kTRUE;
200Bool_t kGCplotESDEEta = kTRUE;
201Bool_t kGCplotESDEPhi = kTRUE;
202
203Bool_t kGCplotESDPEnergy = kTRUE;
204Bool_t kGCplotESDPPt = kTRUE;
205Bool_t kGCplotESDPEta = kTRUE;
206Bool_t kGCplotESDPPhi = kTRUE;
207
208Bool_t kGCplotESDConvGammaEnergy = kTRUE;
209Bool_t kGCplotESDConvGammaPt = kTRUE;
210Bool_t kGCplotESDConvGammaEta = kTRUE;
211Bool_t kGCplotESDConvGammaPhi = kTRUE;
212Bool_t kGCplotESDConvGammaMass = kTRUE;
213Bool_t kGCplotESDConvGammaWidth = kTRUE;
214Bool_t kGCplotESDConvGammaChi2 = kTRUE;
215Bool_t kGCplotESDConvGammaNDF = kTRUE;
216Bool_t kGCplotESDConvGammaRapid = kTRUE;
217Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
218Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
219Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
220
9640a3d1 221
222
6c84d371 223Bool_t kGCplotESDTrueConvGammaEnergy = kTRUE;
224Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
225Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
226Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
227Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
228Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
229Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
230Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
231Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
232Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
233Bool_t kGCplotESDTrueConversionR = kTRUE;
234Bool_t kGCplotESDTrueConversionZR = kTRUE;
235Bool_t kGCplotESDTrueConversionXY = kTRUE;
236Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
9640a3d1 237Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE;
238Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE;
239Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE;
240Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE;
241Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE;
242Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE;
243Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE;
244Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE;
245
246
6c84d371 247Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
248Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
249Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
250Bool_t kGCplotESDTrueConversionMCZR = kTRUE;
251Bool_t kGCplotESDTrueConversionMCXY = kTRUE;
252
253Bool_t kGCplotESDNoCutConvGammaEnergy = kTRUE;
254Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
255Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
256Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
257Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
258Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
259Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
260Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
261Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
262Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
263Bool_t kGCplotESDNoCutConversionR = kTRUE;
264Bool_t kGCplotESDNoCutConversionZR = kTRUE;
265Bool_t kGCplotESDNoCutConversionXY = kTRUE;
266Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
9640a3d1 267Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE;
268Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE;
269Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE;
270Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE;
271
272Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE;
273Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE;
274Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE;
275Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE;
6c84d371 276Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
277Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
278Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
279Bool_t kGCplotESDNoCutConversionMCZR = kTRUE;
280Bool_t kGCplotESDNoCutConversionMCXY = kTRUE;
281
282Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
283Bool_t kGCplotESDMotherEnergy = kTRUE;
284Bool_t kGCplotESDMotherPt = kTRUE;
285Bool_t kGCplotESDMotherEta = kTRUE;
286Bool_t kGCplotESDMotherPhi = kTRUE;
287Bool_t kGCplotESDMotherMass = kTRUE;
288Bool_t kGCplotESDMotherR = kTRUE;
289Bool_t kGCplotESDMotherZR = kTRUE;
290Bool_t kGCplotESDMotherXY = kTRUE;
291Bool_t kGCplotESDMotherRapid = kTRUE;
292
293Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
294Bool_t kGCplotESDBackgroundEnergy = kTRUE;
295Bool_t kGCplotESDBackgroundPt = kTRUE;
296Bool_t kGCplotESDBackgroundEta = kTRUE;
297Bool_t kGCplotESDBackgroundPhi = kTRUE;
298Bool_t kGCplotESDBackgroundMass = kTRUE;
299Bool_t kGCplotESDBackgroundR = kTRUE;
300Bool_t kGCplotESDBackgroundZR = kTRUE;
301Bool_t kGCplotESDBackgroundXY = kTRUE;
302Bool_t kGCplotESDBackgroundRapid = kTRUE;
303
a0b94e5c 304Bool_t kGCplotMapping = kTRUE;
6c84d371 305
306Bool_t kGCplotResolutiondPt = kTRUE;
307Bool_t kGCplotResolutiondR = kTRUE;
308Bool_t kGCplotResolutiondZ = kTRUE;
309
310Bool_t kGCplotResolutiondRdPt = kTRUE;
311
312Bool_t kGCplotResolutionMCPt = kTRUE;
313Bool_t kGCplotResolutionMCR = kTRUE;
314Bool_t kGCplotResolutionMCZ = kTRUE;
315
316Bool_t kGCplotResolutionESDPt = kTRUE;
317Bool_t kGCplotResolutionESDR = kTRUE;
318Bool_t kGCplotResolutionESDZ = kTRUE;
319
320Bool_t kGCplotESDNumberOfV0s = kTRUE;
321Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
a19c3402 322
6c3a327c 323// debug histograms
6c84d371 324Bool_t kGCplotESDCutGetOnFly = kTRUE;
325Bool_t kGCplotESDCutNContributors = kTRUE;
326Bool_t kGCplotESDCutLikeSign = kTRUE;
327Bool_t kGCplotESDCutRefit = kTRUE;
328Bool_t kGCplotESDCutKink = kTRUE;
329Bool_t kGCplotESDCutPIDProb = kTRUE;
9640a3d1 330Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE;
331Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE;
6c84d371 332Bool_t kGCplotESDCutR = kTRUE;
333Bool_t kGCplotESDCutLine = kTRUE;
9640a3d1 334Bool_t kGCplotESDGoodV0s = kTRUE;
6c84d371 335Bool_t kGCplotESDCutNDF = kTRUE;
336Bool_t kGCplotESDCutChi2 = kTRUE;
337Bool_t kGCplotESDCutEta = kTRUE;
338Bool_t kGCplotESDCutPt = kTRUE;
339Bool_t kGCplotESDTrueConvGammaTrackLength =kTRUE;
340Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kTRUE;
341
342Bool_t kGCplotPi0Spectra = kTRUE;
343Bool_t kGCplotEtaSpectra = kTRUE;
a19c3402 344
00a6a31a 345/////////////Chi_c Analysis//////////////////////////
6c84d371 346Bool_t kGCplotStatsElectrons = kTRUE;
347Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
348Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
349Bool_t kGCplotRecEPosENegR = kTRUE;
350Bool_t kGCplotRecEPosENegEta = kTRUE;
351Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
352Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
353Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
354Bool_t kGCplotESDElectronPosNegPt = kTRUE;
355Bool_t kGCplotESDElectronPosNegEta = kTRUE;
356Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
357Bool_t kGCplotMCElectronPosNegPt = kTRUE;
358Bool_t kGCplotMCElectronPosNegEta = kTRUE;
359Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
360Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
361Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
362Bool_t kGCplotTableElectrons = kTRUE;
363Bool_t kGCplotESDEPosBackground = kTRUE;
364Bool_t kGCplotESDENegBackground = kTRUE;
365Bool_t kGCplotESDEPosENegBackground = kTRUE;
366Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
367Bool_t kGCplotESDePoseNegAngle = kTRUE;
368Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
369Bool_t kGCplotMCLabels = kTRUE;
00a6a31a 370///////////////////////////////////////////////////////////////////
a19c3402 371
d7d7e825 372//---------------- Gamma Jet analysis ----------------------------
6c84d371 373Bool_t kGCplotdPhiHdrGam = kTRUE;
374Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
375Bool_t kGCplotMinimumIsoDistance = kTRUE;
376Bool_t kGCplotFFzHdrGam = kTRUE;
377Bool_t kGCplotImbalanceHdrGam = kTRUE;
d7d7e825 378//----------------------------------------------------------------
379
380
a19c3402 381/** ----------------- end define which histograms to plot here -------------------------------*/
382
383
384
385/** ----------- Define the binning for the different plot types here -------------------------*/
386//R-plots
6c84d371 387Int_t kGCnXBinsR = 500;
388Double_t kGCfirstXBinR = 0.;
389Double_t kGClastXBinR = 250.;
a19c3402 390
391//ZR-plots
6c84d371 392Int_t kGCnXBinsZR = 1200;
393Double_t kGCfirstXBinZR = -300.;
394Double_t kGClastXBinZR = 300.;
395Int_t kGCnYBinsZR = 500;
396Double_t kGCfirstYBinZR = 0.;
397Double_t kGClastYBinZR = 250.;
a19c3402 398
399//XY-plots
6c84d371 400Int_t kGCnXBinsXY = 1000;
401Double_t kGCfirstXBinXY = -250.;
402Double_t kGClastXBinXY = 250.;
403Int_t kGCnYBinsXY = 1000;
404Double_t kGCfirstYBinXY = -250.;
405Double_t kGClastYBinXY = 250.;
a19c3402 406
407//OpenAngle-plots
6c84d371 408Int_t kGCnXBinsOpeningAngle = 400;
409Double_t kGCfirstXBinOpeningAngle = 0.;
410Double_t kGClastXBinOpeningAngle = TMath::Pi();
a19c3402 411
9640a3d1 412//CosPointingAngle-plots
413Int_t kGCnXBinsCosPointingAngle = 400;
414Double_t kGCfirstXBinCosPointingAngle = 0.99;
415Double_t kGClastXBinCosPointingAngle = 1.01;
416
417//DCA Daugthers-plots
418Int_t kGCnXBinsDcaDaughters = 400;
419Double_t kGCfirstXBinDcaDaughters= 0.;
420Double_t kGClastXBinDcaDaughters = 5.;
421
422//Norm DCA dist Daugthers-plots
423Int_t kGCnXBinsNormDcaDistDaughters = 400;
424Double_t kGCfirstXBinNormDcaDistDaughters= 0.;
425Double_t kGClastXBinNormDcaDistDaughters = 10.;
426
427//LikelihoodAP Plots
428Int_t kGCnXBinsLikelihoodAP = 400;
429Double_t kGCfirstXBinLikelihoodAP= 0.;
430Double_t kGClastXBinLikelihoodAP = 2.;
431
432
a19c3402 433//Energy-plots
6c84d371 434Int_t kGCnXBinsEnergy = 200;
435Double_t kGCfirstXBinEnergy = 0.;
436Double_t kGClastXBinEnergy = 50.;
a19c3402 437
9640a3d1 438//P-plots
439Int_t kGCnXBinsP = 200;
440Double_t kGCfirstXBinP = 0.;
441Double_t kGClastXBinP = 50.;
442
443//dEdx-plots
444Int_t kGCnYBinsdEdx = 400;
445Double_t kGCfirstYBindEdx = 0.;
446Double_t kGClastYBindEdx = 400.;
447
448//Asymmetry-plots
449Int_t kGCnYBinsAsymmetry = 200;
450Double_t kGCfirstYBinAsymmetry = 0.;
451Double_t kGClastYBinAsymmetry = 1.;
452
453
a19c3402 454//Pt-plots
6c84d371 455Int_t kGCnXBinsPt = 200;
456Double_t kGCfirstXBinPt = 0.;
457Double_t kGClastXBinPt = 50.;
a19c3402 458
459//Eta-plots
6c84d371 460Int_t kGCnXBinsEta = 40;
461Double_t kGCfirstXBinEta = -2.;
462Double_t kGClastXBinEta = 2.;
a19c3402 463
32a6d407 464//Rapidity
6c84d371 465Int_t kGCnXBinsRapid = 200;
466Double_t kGCfirstXBinRapid = -10.;
467Double_t kGClastXBinRapid = 10.;
32a6d407 468
a19c3402 469//Phi-plots
6c84d371 470Int_t kGCnXBinsPhi = 72;
471Double_t kGCfirstXBinPhi = -TMath::Pi();
472Double_t kGClastXBinPhi = TMath::Pi();
a19c3402 473
474//Mapping-plots
6c84d371 475Int_t kGCnXBinsMapping = 400;
476Double_t kGCfirstXBinMapping = -100.;
477Double_t kGClastXBinMapping = 100.;
478Int_t kGCnYBinsMapping = 40;
479Double_t kGCfirstYBinMapping = -2;
480Double_t kGClastYBinMapping = 2;
a19c3402 481
482//ResolutionPlots
483//RESdPt
6c84d371 484Int_t kGCnXBinsResdPt=500;
485Int_t kGCfirstXBinResdPt= 0;
486Int_t kGClastXBinResdPt=5;
487Int_t kGCnYBinsResdPt=1000;
488Int_t kGCfirstYBinResdPt= -5;
489Int_t kGClastYBinResdPt=5;
a19c3402 490
491//RESdR
6c84d371 492Int_t kGCnXBinsResdR=500;
493Int_t kGCfirstXBinResdR= 0;
494Int_t kGClastXBinResdR=250;
495Int_t kGCnYBinsResdR=100;
496Int_t kGCfirstYBinResdR= -25;
497Int_t kGClastYBinResdR=25;
a19c3402 498
499//RESdZ
6c84d371 500Int_t kGCnXBinsResdZ=80;
501Int_t kGCfirstXBinResdZ= -20;
502Int_t kGClastXBinResdZ=20;
503Int_t kGCnYBinsResdZ=80;
504Int_t kGCfirstYBinResdZ= -20;
505Int_t kGClastYBinResdZ=20;
a19c3402 506
507//RESdRdPt
6c84d371 508Int_t kGCnXBinsResdRdPt=440;
509Int_t kGCfirstXBinResdRdPt= -22;
510Int_t kGClastXBinResdRdPt=22;
511Int_t kGCnYBinsResdRdPt=100;
512Int_t kGCfirstYBinResdRdPt= -5;
513Int_t kGClastYBinResdRdPt=5;
a19c3402 514
a19c3402 515//RESMCPt
6c84d371 516Int_t kGCnXBinsResPt=100;
517Int_t kGCfirstXBinResPt= 0;
518Int_t kGClastXBinResPt=5;
a19c3402 519
520//RESMCR
6c84d371 521Int_t kGCnXBinsResR=500;
522Int_t kGCfirstXBinResR= 0;
523Int_t kGClastXBinResR=250;
a19c3402 524
525//RESMCZ
6c84d371 526Int_t kGCnXBinsResZ=500;
527Int_t kGCfirstXBinResZ= 0;
528Int_t kGClastXBinResZ=250;
a19c3402 529
530//GammaMass-plots
6c84d371 531Int_t kGCnXBinsGammaMass = 4000;
532Double_t kGCfirstXBinGammaMass = 0.;
533Double_t kGClastXBinGammaMass = 1.;
a19c3402 534
535//Pi0Mass-plots
6c84d371 536Int_t kGCnXBinsPi0Mass = 100;
537Double_t kGCfirstXBinPi0Mass = 0.;
538Double_t kGClastXBinPi0Mass = 1.;
a19c3402 539
540//EtaMass-plots
6c84d371 541Int_t kGCnXBinsEtaMass = 100;
542Double_t kGCfirstXBinEtaMass = 0.;
543Double_t kGClastXBinEtaMass = 1.;
a19c3402 544
545//GammaWidth-plots
6c84d371 546Int_t kGCnXBinsGammaWidth = 100;
547Double_t kGCfirstXBinGammaWidth = 0.;
548Double_t kGClastXBinGammaWidth = 1.;
a19c3402 549
550//GammaChi2-plots
6c84d371 551Int_t kGCnXBinsGammaChi2 = 100;
552Double_t kGCfirstXBinGammaChi2 = 0;
553Double_t kGClastXBinGammaChi2 = 100.;
a19c3402 554
555//GammaNDF-plots
6c84d371 556Int_t kGCnXBinsGammaNDF = 10;
557Double_t kGCfirstXBinGammaNDF = 0.;
558Double_t kGClastXBinGammaNDF = 10.;
a19c3402 559
560//Spectra-plots
6c84d371 561Int_t kGCnXBinsSpectra = 500;
562Double_t kGCfirstXBinSpectra = 0.;
563Double_t kGClastXBinSpectra = 1.;
564Int_t kGCnYBinsSpectra = 100;
565Double_t kGCfirstYBinSpectra = 0.;
566Double_t kGClastYBinSpectra = 50.;
32a6d407 567
568//track length plots
6c84d371 569Int_t kGCnXBinsTrackLength = 1000;
570Double_t kGCfirstXBinTrackLength = 0;
571Double_t kGClastXBinTrackLength = 500;
a19c3402 572
00a6a31a 573/////////Chic_Analysis///////////////////////////////////
6c84d371 574Int_t kGCnXBinsEPt = 1000;
575Double_t kGCfirstXBinEPt = 0.;
576Double_t kGClastXBinJPsiPt = 10;
00a6a31a 577
6c84d371 578Int_t kGCnXBinsJPsiMass = 1000;
579Double_t kGCfirstXBinJPsiMass = 0.;
580Double_t kGClastXBinJPsiMass = 10.;
00a6a31a 581
6c84d371 582Int_t kGCnXBinsChicMass = 1000;
583Double_t kGCfirstXBinChicMass = 0.;
584Double_t kGClastXBinChicMass = 10.;
00a6a31a 585
6c84d371 586Int_t kGCnXBinsPi0Mass = 1000;
587Double_t kGCfirstXBinPi0Mass = 0.;
588Double_t kGClastXBinPi0Mass = 1.;
00a6a31a 589
6c84d371 590Int_t kGCnXBinsEPosNegPt = 1000;
591Double_t kGCfirstXBinEPosNegPt = 0.;
592Double_t kGClastXBinEPosNegPt = 10.;
00a6a31a 593
6c84d371 594Int_t kGCnXBinsEPosNegEta = 200;
595Double_t kGCfirstXBinEPosNegEta = -1.2;
596Double_t kGClastXBinEPosNegEta = 1.2;
00a6a31a 597
6c84d371 598Int_t kGCnXBinsEPosNegAngle = 200;
599Double_t kGCfirstXBinEPosNegAngle = 0.;
600Double_t kGClastXBinEPosNegAngle = TMath::Pi();
00a6a31a 601
6c84d371 602Int_t kGCnXBinsEBackground = 1000;
603Double_t kGCfirstXBinEBackground = 0.;
604Double_t kGClastXBinEBackground = 10.;
00a6a31a 605
6c84d371 606Int_t kGCnXBinsEBackgroundCut = 100;
607Double_t kGCfirstXBinEBackgroundCut = 0.;
608Double_t kGClastXBinEBackgroundCut = 0.015.;
00a6a31a 609
6c84d371 610Int_t kGCnXBinsMCLabels = 10;
611Double_t kGCfirstXBinMCLabels = 0.;
612Double_t kGClastXBinMCLabels = 10.;
00a6a31a 613
6c84d371 614Int_t kGCnElementsElectronTable = 19;
00a6a31a 615
616//18 elements
6c84d371 617const char * kGCelectronTable[] = {
00a6a31a 618 "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",
619 "ESDtracks", "Kink Cut",
620 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
621 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
622 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
00a6a31a 623};
624
d7d7e825 625
626// for Gamma Jet analysis
6c84d371 627Int_t kGCnXBinsdphiHdrGam = 100;
628Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
629Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
d7d7e825 630
6c84d371 631Int_t kGCnXBinsMinimumIsoDistance = 100;
632Double_t kGCfirstXBinMinimumIsoDistance = 0.;
633Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
d7d7e825 634
6c84d371 635Int_t kGCnXBinsFFzHdrGam = 100;
636Double_t kGCfirstXBinFFzHdrGam = 0.;
637Double_t kGClastXBinFFzHdrGam = 5;
d7d7e825 638
6c84d371 639Int_t kGCnXBinsImbalanceHdrGam = 100;
640Double_t kGCfirstXBinImbalanceHdrGam = -5.;
641Double_t kGClastXBinImbalanceHdrGam = 5.;
00a6a31a 642////////////////////////////////////////////////////////
643
644
a19c3402 645/** ---------- end Define the binning for the different plot types here ----------------------*/
646
647
a19c3402 648/************************************************************************************************
649 * *
650 * *
651 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
652 * *
653 * *
654 ************************************************************************************************/
6c84d371 655TString kGCoutputFileName = "histogramsGammaConversion";
656TString kGCoutputFileAppendix = "";
657TString kGCdataList = "";
658Bool_t kGCwriteNtuple = kFALSE;
659// WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
660Bool_t kGCusePWG4PartCorr = kTRUE;
d7d7e825 661
662/** Flag to enable running on train */
6c84d371 663Bool_t kGCrunOnTrain = kFALSE;
d7d7e825 664
665/** ------------------------------ Monte Carlo flag -----------------------------------------*/
6c84d371 666Bool_t kGCdoMCTruth = kTRUE;
d7d7e825 667/** ---------------------------- end Monte Carlo flag ---------------------------------------*/
668
669/** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
6c84d371 670Bool_t kGCuseKFParticle = kTRUE;
671Bool_t kGCuseESDTrack = kFALSE;
d7d7e825 672/** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
673
9640a3d1 674/**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/
675Bool_t kGCdodEdxSigmaCut= kTRUE;
676/**------------------------------end Flag to apply NsigmadEdx cut ----------*/
677Double_t kGCPIDnSigmaAboveElectronLine=6;
678Double_t kGCPIDnSigmaBelowElectronLine=-4;
679Double_t kGCPIDnSigmaAbovePionLine=0;
680Double_t kGCPIDMinPnSigmaAbovePionLine=5;
681
682
d7d7e825 683
6c84d371 684Bool_t kGCcalculateBackground = kTRUE;
6c3a327c 685
686Bool_t scanArguments(TString arguments){
687 Bool_t iResult = kTRUE;
32a6d407 688
6c3a327c 689 TString allArgs=arguments;
690 TString argument;
691 int bMissingParam=0;
32a6d407 692
6c3a327c 693 TObjArray* pTokens=allArgs.Tokenize(" ");
694 if (pTokens) {
32a6d407 695
6c3a327c 696 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
697 argument=((TObjString*)pTokens->At(i))->GetString();
32a6d407 698
6c3a327c 699 if(argument.IsNull()) continue;
700 // -- deconvolute-time option
701 if(argument.CompareTo("-data-list") == 0){
702 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
6c84d371 703 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
704 if(kGCdataList.IsNull()){
6c3a327c 705 cout<<"-data-list is NULL"<<endl;
706 iResult=kFALSE;
707 }
708 else{
6c84d371 709 cout<<"Data list is set to: "<<kGCdataList<<endl;
6c3a327c 710 }
711 }
712 else if(argument.CompareTo("-output-file-name") == 0){
713 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
6c84d371 714 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
715 if(kGCoutputFileName.IsNull()){
6c3a327c 716 cout<<"-output-file-name is NULL"<<endl;
717 iResult=kFALSE;
718 }
719 else{
6c84d371 720 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
6c3a327c 721 }
722 }
723 else if (argument.CompareTo("-write-ntuple") == 0){
724 cout<<"Writing ntuple to file."<<endl;
6c84d371 725 kGCwriteNtuple = kTRUE;
6c3a327c 726 }
d7d7e825 727 else if (argument.CompareTo("-run-on-train") == 0){
728 cout<<"Running on train"<<endl;
6c84d371 729 kGCrunOnTrain = kTRUE;
d7d7e825 730 }
731 else if (argument.CompareTo("-run-jet") == 0){
732 cout<<"Running jet analysis"<<endl;
6c84d371 733 kGCrunJet = kTRUE;
d7d7e825 734 }
735 else if (argument.CompareTo("-run-neutralmeson") == 0){
736 cout<<"Running neutral meson analysis"<<endl;
6c84d371 737 kGCrunNeutralMeson = kTRUE;
d7d7e825 738 }
739 else if (argument.CompareTo("-run-neutral-meson") == 0){
740 cout<<"Running neutral meson analysis"<<endl;
6c84d371 741 kGCrunNeutralMeson = kTRUE;
d7d7e825 742 }
743 else if (argument.CompareTo("-run-chic") == 0){
744 cout<<"Running Chi_c analysis"<<endl;
6c84d371 745 kGCrunChic = kTRUE;
d7d7e825 746 }
1e7846f4 747 else if (argument.CompareTo("-run-cf") == 0){
748 cout<<"Running CF"<<endl;
749 kGCrunCF = kTRUE;
750 }
751
d7d7e825 752 else if (argument.CompareTo("-jet-off") == 0){
753 cout<<"Skipping jet analysis"<<endl;
6c84d371 754 kGCrunJet = kFALSE;
d7d7e825 755 }
756 else if (argument.CompareTo("-neutralmeson-off") == 0){
757 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 758 kGCrunNeutralMeson = kFALSE;
d7d7e825 759 }
760 else if (argument.CompareTo("-neutral-meson-off") == 0){
761 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 762 kGCrunNeutralMeson = kFALSE;
d7d7e825 763 }
764 else if (argument.CompareTo("-chic-off") == 0){
765 cout<<"Skipping Chi_c analysis"<<endl;
6c84d371 766 kGCrunChic = kFALSE;
d7d7e825 767 }
768 else if (argument.CompareTo("-mc-off") == 0){
6c84d371 769 cout<<"Switching off kGCdoMCTruth"<<endl;
770 kGCdoMCTruth = kFALSE;
d7d7e825 771 }
a0b94e5c 772 else if (argument.CompareTo("-use-own-xyz") == 0){
773 cout<<"Switching on use own xyz calculation"<<endl;
774 kGCdoOwnXYZCalculation = kTRUE;
775 }
6c3a327c 776 else if(argument.CompareTo("-append-to-output-file") == 0){
777 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
a0b94e5c 778 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
6c84d371 779 if(kGCoutputFileAppendix.IsNull()){
6c3a327c 780 cout<<"-appending-to-output-file is NULL"<<endl;
781 iResult=kFALSE;
782 }
783 else{
6c84d371 784 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
6c3a327c 785 }
786 }
787 }
6c3a327c 788 delete pTokens;
789 }
790 if (bMissingParam) {
791 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
792 iResult=kFALSE;
793 }
794 return iResult;
795}
796
d7d7e825 797void SetVersionLibrary(){
798 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
6c84d371 799 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
800 // If no, kGCusePWG4PartCorr is true.
a0b94e5c 801
d7d7e825 802 TString file = gSystem->Getenv("ALICE_ROOT");
803 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
a0b94e5c 804
d7d7e825 805 ifstream stream;
806 stream.open(file.Data());
a0b94e5c 807
d7d7e825 808 if(!stream){
6c84d371 809 kGCusePWG4PartCorr=kFALSE;
d7d7e825 810 }
811 else{
6c84d371 812 kGCusePWG4PartCorr=kTRUE;
d7d7e825 813 }
814 stream.close();
815}
816
817
818
6c84d371 819AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments,AliAnalysisDataContainer *cin_esd=NULL){
32a6d407 820
6c3a327c 821 if(!scanArguments(arguments)){
822 break;
823 }
a0b94e5c 824
d7d7e825 825 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
a0b94e5c 826
6c84d371 827 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
828 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
d7d7e825 829 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
830 return;
831 }
a0b94e5c 832
6c84d371 833 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
834 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
835 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
d7d7e825 836 return;
837 }
6c84d371 838 if(kGCrunOnTrain == kFALSE){
839 if(kGCnumberOfFilesToAnalyze==0){
840 ifstream dataInStream;
841 dataInStream.open(kGCdataList.Data());
842 if ( !dataInStream ){
843 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
844 return 0;
6c3a327c 845 }
6c84d371 846 string line;
847 while ( !dataInStream.eof() )
848 {
849 getline(dataInStream, line);
850 if(line.compare("") != 0){//checks if there is an empty line in the data list
851 kGCnumberOfFilesToAnalyze++;
852 }
853 }
854 }
855 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
a0b94e5c 856
d7d7e825 857 build();//build (if necessary) and load the libraries needed
a0b94e5c 858
6c84d371 859 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
9640a3d1 860 }
a0b94e5c 861
9640a3d1 862
863 AliLog::SetGlobalDebugLevel(0);
864 AliLog::SetGlobalLogLevel(AliLog::kError);
a0b94e5c 865
866 // ------------------------------------------------------------------------
867
868 // for CF
869
870 //Container def.
871 const Double_t ptmin = kGCfirstXBinPt;
872 const Double_t ptmax = kGClastXBinPt;
873 const Double_t etamin = kGCfirstXBinEta;
874 const Double_t etamax = kGClastXBinEta;
875 const Double_t massmin = kGCfirstXBinPi0Mass;
876 const Double_t massmax = kGClastXBinPi0Mass;
877
878
879 // sensitive variables
880 UInt_t ipt = 0;
881 UInt_t ieta = 1;
882 UInt_t imass = 2;
883
884 //how many selection steps
885 UInt_t nstep = 15;
886 const Int_t nvar = 3;
887 const Int_t nbin0 = kGCnXBinsPt;
888 const Int_t nbin1 = kGCnXBinsEta;
889 const Int_t nbin2 = kGCnXBinsPi0Mass;
890
891 //arrays for the number of bins in each dimension
892 Int_t iBin[nvar];
893 iBin[0] = nbin0;
894 iBin[1] = nbin1;
895 iBin[2] = nbin2;
896
897 //arrays for lower bounds
898 Double_t *binLim0 = new Double_t[nbin0+1];
899 Double_t *binLim1 = new Double_t[nbin1+1];
900 Double_t *binLim2 = new Double_t[nbin2+1];
901
902 // values for lower bounds
903 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
904 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
905 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
906
907 // create container
908 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
909 container->SetBinLimits(ipt,binLim0);
910 container->SetBinLimits(ieta,binLim1);
911 container->SetBinLimits(imass,binLim2);
912
913 AliCFManager *man = new AliCFManager();
914 man->SetParticleContainer(container);
915
916 // end ---------------------------------------------------------------------------
917
918
9640a3d1 919
a0b94e5c 920
d7d7e825 921 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
922 AddHistograms(histograms);
923
924 // Create the Analysis manager
925 AliAnalysisManager *mgr =NULL;
6c84d371 926 if(kGCrunOnTrain == kFALSE){
a0b94e5c 927 mgr = new AliAnalysisManager("My Manager", "My Analysis");
00a6a31a 928 }
d7d7e825 929 else{
930 mgr = AliAnalysisManager::GetAnalysisManager();
00a6a31a 931 }
a0b94e5c 932
d7d7e825 933 if (!mgr) {
934 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
935 return NULL;
936 }
6c84d371 937 if(kGCrunOnTrain == kTRUE){
938 if (!mgr->GetInputEventHandler()) {
939 ::Error("ConfigGammaConversion", "This task requires an input event handler");
940 return NULL;
941 }
942 }
943 AliESDInputHandler* inpHandler = NULL;
a0b94e5c 944
6c84d371 945 if(kGCrunOnTrain == kFALSE){
946 // Define Input Event Handler
947 inpHandler = new AliESDInputHandler();
948 }
a19c3402 949 // Define MC Truth Event Handler
6c84d371 950 AliMCEventHandler* mcHandler = NULL;
951 if(kGCdoMCTruth){
952 if(kGCrunOnTrain == kFALSE){
953 mcHandler = new AliMCEventHandler();
954 }
955 else{
956 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
957 }
958 if (!mcHandler) {
959 ::Error("", "No MC handler connected");
960 return NULL;
961 }
962 }
a0b94e5c 963
d7d7e825 964 // Define Output Event Handler and ad
a0b94e5c 965 // if(kGCrunOnTrain == kFALSE){
966 if(fWriteStandardAOD == kTRUE){
d7d7e825 967 AliAODHandler* aodHandler = new AliAODHandler();
6c84d371 968 TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root";
d7d7e825 969 aodHandler->SetOutputFileName(fileOutAOD);
970 mgr->SetOutputEventHandler (aodHandler);
971 }
a0b94e5c 972
6c84d371 973 if(kGCrunOnTrain == kFALSE){
d7d7e825 974 mgr->SetInputEventHandler (inpHandler);
975 mgr->SetMCtruthEventHandler(mcHandler);
976 }
a19c3402 977 // Be sure you are told what you are doing
a0b94e5c 978 mgr->SetDebugLevel(10);
32a6d407 979
a19c3402 980 // Declare Common Input Tchain
32a6d407 981 AliAnalysisDataContainer *cinput1 = NULL;
6c84d371 982 if(kGCusePWG4PartCorr){
983 if(kGCrunOnTrain == kFALSE){
d7d7e825 984 cinput1 = mgr->CreateContainer("Chain",TChain::Class(),AliAnalysisManager::kInputContainer);
985 }
986 else{
987 cinput1 = cin_esd;
988 }
32a6d407 989 }
990 else{
6c84d371 991 if(kGCrunOnTrain == kFALSE){
a0b94e5c 992 cinput1 = mgr->GetCommonInputContainer(); // added by kenneth to avoid writing the standard AOD
d7d7e825 993 }
994 else{
995 // cinput = cin_esd;
996 cinput1 = mgr->GetCommonInputContainer();
997 }
32a6d407 998 }
999
a19c3402 1000 // Common Output Tree in common â\80\98defaultâ\80\99 output file
32a6d407 1001 AliAnalysisDataContainer *coutput1 = NULL;
6c84d371 1002 if(kGCusePWG4PartCorr){
32a6d407 1003 coutput1 = mgr->CreateContainer("tree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1004 }
1005 else{
a0b94e5c 1006 if(fWriteStandardAOD){
1007 coutput1 = mgr->GetCommonOutputContainer();
1008 }
32a6d407 1009 }
1010
a19c3402 1011 // Private output objects
6c84d371 1012 if(kGCoutputFileName.Contains(".root")){
1013 kGCoutputFileName.ReplaceAll(".root","");
32a6d407 1014 }
6c84d371 1015 if(kGCoutputFileAppendix.Contains(".root")){
1016 kGCoutputFileAppendix.ReplaceAll(".root","");
32a6d407 1017 }
6c84d371 1018 TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
a0b94e5c 1019
6c3a327c 1020 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histogramsAliGammaConversion", TList::Class(),AliAnalysisManager::kOutputContainer, fileOut);
a0b94e5c 1021 // for CF
1022 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer("ccontainer0",AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,fileOut);
1023
a19c3402 1024 //------------------------ END: Define input/output handlers ---------------------------------------------------
32a6d407 1025
a19c3402 1026 //check for errors in the specified data
6c84d371 1027 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
a19c3402 1028 //Print warning, cannot use both
6c84d371 1029 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
a0b94e5c 1030 }
6c84d371 1031 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
a19c3402 1032 //Print warning, one have to be specified
6c84d371 1033 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
a0b94e5c 1034 }
1035
1036
a19c3402 1037 //Create the V0Reader
1038 AliV0Reader * v0Reader = new AliV0Reader();
6c84d371 1039 if(kGCuseKFParticle){
a19c3402 1040 v0Reader->UseKFParticle();
1041 }
6c84d371 1042 else if(kGCuseESDTrack){
a19c3402 1043 v0Reader->UseESDTrack();
1044 }
6c84d371 1045 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1046 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1047 v0Reader->SetMaxRCut(kGCmaxRCut);
1048 v0Reader->SetEtaCut(kGCetaCut);
1049 v0Reader->SetPtCut(kGCptCut);
1050 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1051 v0Reader->SetLineCutZValue(kGCLineCutZValue);
a0b94e5c 1052 v0Reader->SetMaxZCut(kGCmaxZCut);
6c84d371 1053 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1054 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
1055 v0Reader->SetPIDProbability(kGCprobElectron);
1056 v0Reader->SetXVertexCut(kGCxVertexCut);
1057 v0Reader->SetYVertexCut(kGCyVertexCut);
1058 v0Reader->SetZVertexCut(kGCzVertexCut);
1059 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1060 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1061 v0Reader->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1062 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
1063 // for CF
1064 v0Reader->SetCFManager(man);
1065
9640a3d1 1066 // for dEdx N sigma Cut
1067 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1068 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1069 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1070 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1071 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
1072
32a6d407 1073
a19c3402 1074 // Create the GammaConversionTask
1075 AliAnalysisTaskGammaConversion *gammaconversion = new AliAnalysisTaskGammaConversion("GammaConversionTask");
1076 gammaconversion->SetDebugLevel(10);
32a6d407 1077
6c84d371 1078 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
32a6d407 1079
a19c3402 1080 gammaconversion->SetV0Reader(v0Reader);
6c84d371 1081 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
a19c3402 1082 gammaconversion->Init();
32a6d407 1083
6c84d371 1084 gammaconversion->SetElectronMass(kGCelectronMass);
1085 gammaconversion->SetGammaMass(kGCgammaMass);
1086 gammaconversion->SetPi0Mass(kGCpi0Mass);
1087 gammaconversion->SetEtaMass(kGCetaMass);
32a6d407 1088
6c84d371 1089 gammaconversion->SetGammaWidth(kGCgammaWidth);
1090 gammaconversion->SetPi0Width(kGCpi0Width);
1091 gammaconversion->SetEtaWidth(kGCetaWidth);
a0b94e5c 1092
6c84d371 1093 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
32a6d407 1094
a19c3402 1095 // define the width constraint used by KF particle.
1096 Double_t gammaWidth = 0.01;
1097 Double_t pi0Width = 0.01;
1098 Double_t etaWidth = 0.01;
32a6d407 1099
a19c3402 1100 gammaconversion->SetHistograms(histograms);
1101 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
32a6d407 1102
6c84d371 1103 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1104
6c84d371 1105 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
1106 gammaconversion->SetDoJet(kGCrunJet);
1107 gammaconversion->SetDoChic(kGCrunChic);
1e7846f4 1108
a0b94e5c 1109 // for CF
1110 gammaconversion->SetCFManager(man);
1e7846f4 1111 gammaconversion->SetDoCF(kGCrunCF);
1112 v0Reader->SetDoCF(kGCrunCF);
32a6d407 1113
a19c3402 1114 // Add task to the manager
1115 mgr->AddTask(gammaconversion);
32a6d407 1116
a19c3402 1117 // Connect I/O to the task
1118 mgr->ConnectInput (gammaconversion, 0, cinput1);
a0b94e5c 1119
1120 if(fWriteStandardAOD){
d7d7e825 1121 mgr->ConnectOutput(gammaconversion, 0, coutput1);
d7d7e825 1122 }
a0b94e5c 1123 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1124 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1125
6c84d371 1126 if(kGCrunOnTrain == kFALSE){
1127 if(kGCdataList.IsNull()){
1128 cout<<"Data list is not set, aborting."<<endl;
1129 return;
1130 }
a0b94e5c 1131
6c84d371 1132 if(kGCrunOnTrain == kFALSE){
1133 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
a0b94e5c 1134
6c84d371 1135 mgr->InitAnalysis();
a0b94e5c 1136
6c84d371 1137 mgr->PrintStatus();
a0b94e5c 1138
6c84d371 1139 mgr->StartAnalysis("local",chain);
1140 }
d7d7e825 1141 }
6c84d371 1142 return gammaconversion;
a19c3402 1143}
1144
a19c3402 1145void build() {
a0b94e5c 1146
a19c3402 1147 TStopwatch timer;
1148 timer.Start();
1149 gSystem->Load("libTree.so");
1150 gSystem->Load("libGeom");
32a6d407 1151
a19c3402 1152 ////
1153 //Setting up ESD.par//
1154 ////
1155 cout<<"compiling ESD"<<endl;
1156 setupPar("ESD");
1157 gSystem->Load("libVMC.so");
1158 gSystem->Load("libESD.so");
32a6d407 1159
a19c3402 1160 ////
1161 ////
1162 //Setting up STEERBase.par//
1163 ////
1164 cout<<"compiling STEERBase"<<endl;
1165 setupPar("STEERBase");
1166 gSystem->Load("libSTEERBase.so");
32a6d407 1167
a19c3402 1168 ////
1169 //Setting up AOD.par//
1170 ////
1171 cout<<"compiling AOD"<<endl;
1172 setupPar("AOD");
1173 gSystem->Load("libAOD.so");
32a6d407 1174
a19c3402 1175 ////
1176 //Setting up ANALYSIS.par//
1177 ////
1178 cout<<"compiling ANALYSIS"<<endl;
1179 setupPar("ANALYSIS");
1180 gSystem->Load("libANALYSIS.so");
32a6d407 1181
a19c3402 1182 ////
1183 //Setting up ANALYSISalice.par//
1184 ////
a0b94e5c 1185 cout<<"compiling ANALYSISalice"<<endl;
a19c3402 1186 setupPar("ANALYSISalice");
1187 gSystem->Load("libANALYSISalice.so");
32a6d407 1188
a0b94e5c 1189 ////
1190 //Setting up CORRFW.par//
1191 ////
1192 cout<<"compiling CORRFW"<<endl;
1193 setupPar("CORRFW");
1194 gSystem->Load("CORRFW.so");
1195
a19c3402 1196 ////
d7d7e825 1197 //Setting up PWG4GammaConv.par//
a19c3402 1198 ////
d7d7e825 1199 cout<<"compiling PWG4GammaConv"<<endl;
1200 setupPar("PWG4GammaConv");
1201 gSystem->Load("libPWG4GammaConv.so");
a19c3402 1202}
1203
1204Int_t setupPar(const char* pararchivename) {
1205 ///////////////////
1206 // Setup PAR File//
1207 ///////////////////
1208 if (pararchivename) {
1209 char processline[1024];
1210 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1211 gROOT->ProcessLine(processline);
1212 const char* ocwd = gSystem->WorkingDirectory();
1213 gSystem->ChangeDirectory(pararchivename);
32a6d407 1214
a19c3402 1215 // check for BUILD.sh and execute
1216 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1217 printf("*******************************\n");
1218 printf("*** Building PAR archive ***\n");
1219 printf("*******************************\n");
32a6d407 1220
a19c3402 1221 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
32a6d407 1222 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1223 return -1;
a19c3402 1224 }
1225 }
1226 // check for SETUP.C and execute
1227 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1228 printf("*******************************\n");
1229 printf("*** Setup PAR archive ***\n");
1230 printf("*******************************\n");
1231 gROOT->Macro("PROOF-INF/SETUP.C");
1232 }
32a6d407 1233
a19c3402 1234 gSystem->ChangeDirectory("../");
1235 }
1236 return 1;
1237}
d7d7e825 1238
1239
1240
1241void AddHistograms(AliGammaConversionHistograms *histograms){
1242 //---------------------------------------------- Jets ---------------------------------------------------------
6c84d371 1243 if(kGCrunJet == kTRUE){
1244 if (kGCplotdPhiHdrGam == kTRUE){
1245 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
d7d7e825 1246 }
a0b94e5c 1247
6c84d371 1248 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1249 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
d7d7e825 1250 }
a0b94e5c 1251
6c84d371 1252 if (kGCplotMinimumIsoDistance == kTRUE){
1253 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
d7d7e825 1254 }
a0b94e5c 1255
6c84d371 1256 if (kGCplotFFzHdrGam == kTRUE){
1257 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
d7d7e825 1258 }
a0b94e5c 1259
6c84d371 1260 if (kGCplotImbalanceHdrGam == kTRUE){
1261 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
d7d7e825 1262 }
6c84d371 1263 }//end if(kGCrunJet)
a0b94e5c 1264
d7d7e825 1265 //---------------------------------------------- Chi_c ---------------------------------------------------------
6c84d371 1266 if(kGCrunChic){
a0b94e5c 1267
6c84d371 1268 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1269 "");}
6c84d371 1270 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
a0b94e5c 1271 "","");}
6c84d371 1272 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1273 "");}
6c84d371 1274 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1275 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
a0b94e5c 1276 ");}
1277
6c84d371 1278 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1279 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
a0b94e5c 1280
6c84d371 1281 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPo
a0b94e5c 1282 sNegAngle,"","");}
6c84d371 1283 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1284 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","")
d7d7e825 1285 ;}
6c84d371 1286 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinE
a0b94e5c 1287 PosNegAngle,"","");}
6c84d371 1288 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1289 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1290 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1291 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1292 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1293 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1294 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
a0b94e5c 1295
6c84d371 1296 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1297
6c84d371 1298 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1299
1300
6c84d371 1301 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1302 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1303 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
a0b94e5c 1304
6c84d371 1305 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1306 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1307
6c84d371 1308 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
1309 }// end kGCrunChic
a0b94e5c 1310
d7d7e825 1311 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
6c84d371 1312 if(kGCrunNeutralMeson){
1313 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
1314 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
1315 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
1316 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
9640a3d1 1317 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1318 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
a0b94e5c 1319
9640a3d1 1320
6c84d371 1321 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1322 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1323 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1324 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
a0b94e5c 1325
6c84d371 1326 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1327 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1328 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1329 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
a0b94e5c 1330
6c84d371 1331 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1332 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1333 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1334 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1335 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1336
6c84d371 1337 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1338 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1339 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1340 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1341 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1342 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
a0b94e5c 1343
6c84d371 1344 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1345 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1346 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1347 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1348 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1349
6c84d371 1350 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1351 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1352 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1353 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1354 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1355
6c84d371 1356 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1357 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1358 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1359 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1360 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1361 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1362 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1363 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1364 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1365 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1366 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1367 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1368 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1369 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1370
6c84d371 1371 if(kGCplotMCMotherSpectra == kTRUE){
1372 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1373 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1374 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
d7d7e825 1375 }
a0b94e5c 1376
1377
6c84d371 1378 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1379 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1380 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1381 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1382 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1383 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1384 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1385 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1386 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1387 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1388 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1389 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1390 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1391 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1392 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
a0b94e5c 1393
1394
6c84d371 1395 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1396 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1397 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1398 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1399 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1400 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1401 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1402 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1403 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1404 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1405 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1406 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1407 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1408 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1409
1410
1411
6c84d371 1412 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1413 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1414 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1415 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1416 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1417 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1418 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1419 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1420 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1421 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1422 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1423 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1424 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1425 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1426 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
a0b94e5c 1427
1428
d7d7e825 1429 // Histograms from esd tracks
6c84d371 1430 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1431 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1432 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1433 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
a0b94e5c 1434
6c84d371 1435 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1436 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1437 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1438 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
a0b94e5c 1439
6c84d371 1440 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1441 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1442 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1443 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1444 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1445 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1446 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1447 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1448 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1449 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1450 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1451 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1452
1453
1454
6c84d371 1455 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1456 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1457 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1458 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1459
1460 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1461 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1462 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1463 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1464 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1465 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1466 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1467 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1468
1469
a0b94e5c 1470
1471
6c84d371 1472 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1473 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1474 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1475 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1476 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1477 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1478 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1479 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1480 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1481 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1482 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1483 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1484
6c84d371 1485 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1486 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1487 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1488 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1489
1490 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1491 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1492 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1493 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1494 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1495 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1496 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1497 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1498
a0b94e5c 1499
6c84d371 1500 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1501 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1502 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 1503
1504
1505
6c84d371 1506 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1507 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1508 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1509 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1510 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1511 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1512 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1513 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1514 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1515 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1516 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1517 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1518
6c84d371 1519 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1520 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1521 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1522 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1523
1524 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1525 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1526 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1527 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1528 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1529 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1530
1531
1532 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1533 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1534
6c84d371 1535 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1536 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1537 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 1538
1539
1540
6c84d371 1541 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1542 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1543 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1544 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1545 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1546 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1547 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1548 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1549 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1550 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1551
1552
6c84d371 1553 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1554 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1555 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1556 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1557 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1558 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1559 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1560 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1561 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1562 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1563
1564
6c84d371 1565 if(kGCplotMapping == kTRUE){
a0b94e5c 1566 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
9640a3d1 1567 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
1568 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
d7d7e825 1569 }
a0b94e5c 1570
6c84d371 1571 if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");}
1572 if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1573 if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
a0b94e5c 1574
6c84d371 1575 if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
a0b94e5c 1576
6c84d371 1577 if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1578 if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1579 if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
a0b94e5c 1580
6c84d371 1581 if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1582 if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1583 if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
a0b94e5c 1584
6c84d371 1585 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, 0, 100,"","");}
1586 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, 0, 100,"","");}
a0b94e5c 1587
d7d7e825 1588 // debug histograms
6c84d371 1589 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1590 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1591 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1592 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1593 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1594 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9640a3d1 1595
1596 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1597 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1598
6c84d371 1599 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1600 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1601 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1602 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1603 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1604 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9640a3d1 1605 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1606
6c84d371 1607 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
1608 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
a0b94e5c 1609
1610
6c84d371 1611 if(kGCplotPi0Spectra == kTRUE){
1612 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1613 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
9640a3d1 1614
1615 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]");
1616 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1617
1618
d7d7e825 1619 }
6c84d371 1620 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
1621 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1622 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
9640a3d1 1623
1624 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]");
1625 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1626
d7d7e825 1627 }
6c84d371 1628 }// end kGCrunNeutralMeson
d7d7e825 1629}