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