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