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