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