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