]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/macros/ConfigGammaConversion.C
moved cut selection up in the config file
[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
45795c36 80Double_t kGCminOpeningAngleGhostCut = 0.005;
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
45795c36 110Bool_t kGCplotMCEEnergy = kFALSE;
6c84d371 111Bool_t kGCplotMCEPt = kTRUE;
112Bool_t kGCplotMCEEta = kTRUE;
113Bool_t kGCplotMCEPhi = kTRUE;
ebcfaa7e 114Bool_t kGCplotMCENTPCClusters = kTRUE;
115Bool_t kGCplotMCENITSClusters = kTRUE;
6c84d371 116
45795c36 117Bool_t kGCplotMCPEnergy = kFALSE;
6c84d371 118Bool_t kGCplotMCPPt = kTRUE;
119Bool_t kGCplotMCPEta = kTRUE;
120Bool_t kGCplotMCPPhi = kTRUE;
ebcfaa7e 121Bool_t kGCplotMCPNTPCClusters = kTRUE;
122Bool_t kGCplotMCPNITSClusters = kTRUE;
6c84d371 123
45795c36 124Bool_t kGCplotMCallGammaEnergy = kFALSE;
6c84d371 125Bool_t kGCplotMCallGammaPt = kTRUE;
126Bool_t kGCplotMCallGammaEta = kTRUE;
127Bool_t kGCplotMCallGammaPhi = kTRUE;
128Bool_t kGCplotMCallGammaRapid = kTRUE;
129
130
45795c36 131Bool_t kGCplotMCConvGammaEnergy = kFALSE;
6c84d371 132Bool_t kGCplotMCConvGammaPt = kTRUE;
133Bool_t kGCplotMCConvGammaEta = kTRUE;
134Bool_t kGCplotMCConvGammaPhi = kTRUE;
135Bool_t kGCplotMCConvGammaRapid = kTRUE;
136Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
137
45795c36 138Bool_t kGCplotMCallDirectGammaEnergy = kFALSE;
6c84d371 139Bool_t kGCplotMCallDirectGammaPt = kTRUE;
140Bool_t kGCplotMCallDirectGammaEta = kTRUE;
141Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
142Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
143
45795c36 144Bool_t kGCplotMCConvDirectGammaEnergy = kFALSE;
6c84d371 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;
45795c36 154Bool_t kGCplotMCMotherEnergy = kFALSE;
6c84d371 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;
45795c36 173Bool_t kGCplotMCPi0Energy = kFALSE;
6c84d371 174Bool_t kGCplotMCPi0Mass = kTRUE;
48682642 175Bool_t kGCplotMCPi0Alpha = kTRUE;
6c84d371 176Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
177Bool_t kGCplotMCPi0R = kTRUE;
45795c36 178Bool_t kGCplotMCPi0ZR = kFALSE;
179Bool_t kGCplotMCPi0XY = kFALSE;
6c84d371 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;
45795c36 190Bool_t kGCplotMCPi0SecondaryEnergy = kFALSE;
6c84d371 191Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
192Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
193Bool_t kGCplotMCPi0SecondaryR = kTRUE;
45795c36 194Bool_t kGCplotMCPi0SecondaryZR = kFALSE;
195Bool_t kGCplotMCPi0SecondaryXY = kFALSE;
6c84d371 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;
45795c36 205Bool_t kGCplotMCEtaEnergy = kFALSE;
6c84d371 206Bool_t kGCplotMCEtaMass = kTRUE;
207Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
208Bool_t kGCplotMCEtaR = kTRUE;
45795c36 209Bool_t kGCplotMCEtaZR = kFALSE;
210Bool_t kGCplotMCEtaXY = kFALSE;
6c84d371 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
45795c36 233Bool_t kGCplotESDEEnergy = kFALSE;
6c84d371 234Bool_t kGCplotESDEPt = kTRUE;
235Bool_t kGCplotESDEEta = kTRUE;
236Bool_t kGCplotESDEPhi = kTRUE;
ebcfaa7e 237Bool_t kGCplotESDENTPCClusters = kTRUE;
238Bool_t kGCplotESDENITSClusters = kTRUE;
6c84d371 239
45795c36 240Bool_t kGCplotESDPEnergy = kFALSE;
6c84d371 241Bool_t kGCplotESDPPt = kTRUE;
242Bool_t kGCplotESDPEta = kTRUE;
243Bool_t kGCplotESDPPhi = kTRUE;
ebcfaa7e 244Bool_t kGCplotESDPNTPCClusters = kTRUE;
245Bool_t kGCplotESDPNITSClusters = kTRUE;
6c84d371 246
45795c36 247Bool_t kGCplotESDConvGammaEnergy = kFALSE;
6c84d371 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;
45795c36 262Bool_t kGCplotESDTrueConvGammaEnergy = kFALSE;
6c84d371 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;
45795c36 273Bool_t kGCplotESDTrueConversionZR = kFALSE;
274Bool_t kGCplotESDTrueConversionXY = kFALSE;
6c84d371 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;
45795c36 289Bool_t kGCplotESDTrueConversionMCZR = kFALSE;
290Bool_t kGCplotESDTrueConversionMCXY = kFALSE;
6c84d371 291
45795c36 292Bool_t kGCplotESDNoCutConvGammaEnergy = kFALSE;
6c84d371 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;
45795c36 303Bool_t kGCplotESDNoCutConversionZR = kFALSE;
304Bool_t kGCplotESDNoCutConversionXY = kFALSE;
6c84d371 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;
45795c36 318Bool_t kGCplotESDNoCutConversionMCZR = kFALSE;
319Bool_t kGCplotESDNoCutConversionMCXY = kFALSE;
6c84d371 320
321Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
45795c36 322Bool_t kGCplotESDMotherEnergy = kFALSE;
323Bool_t kGCplotESDMotherPt = kFALSE;
6c84d371 324Bool_t kGCplotESDMotherEta = kTRUE;
45795c36 325Bool_t kGCplotESDMotherPhi = kFALSE;
326Bool_t kGCplotESDMotherMass = kFALSE;
327Bool_t kGCplotESDMotherR = kFALSE;
d5f99c2b 328Bool_t kGCplotESDMotherZR = kFALSE;
329Bool_t kGCplotESDMotherXY = kFALSE;
6c84d371 330Bool_t kGCplotESDMotherRapid = kTRUE;
331
332Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
45795c36 333Bool_t kGCplotESDBackgroundEnergy = kFALSE;
334Bool_t kGCplotESDBackgroundPt = kFALSE;
335Bool_t kGCplotESDBackgroundEta = kFALSE;
336Bool_t kGCplotESDBackgroundPhi = kFALSE;
337Bool_t kGCplotESDBackgroundMass = kFALSE;
338Bool_t kGCplotESDBackgroundR = kFALSE;
d5f99c2b 339Bool_t kGCplotESDBackgroundZR = kFALSE;
340Bool_t kGCplotESDBackgroundXY = kFALSE;
45795c36 341Bool_t kGCplotESDBackgroundRapid = kFALSE;
6c84d371 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
45795c36 353Bool_t kGCplotResolutiondRdPt = kFALSE;
6c84d371 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
45795c36 441Int_t kGCnXBinsR = 400;
6c84d371 442Double_t kGCfirstXBinR = 0.;
45795c36 443Double_t kGClastXBinR = 200.;
a19c3402 444
445//ZR-plots
45795c36 446Int_t kGCnXBinsZR = 1000;
447Double_t kGCfirstXBinZR = -250.;
448Double_t kGClastXBinZR = 250.;
449Int_t kGCnYBinsZR = 400;
6c84d371 450Double_t kGCfirstYBinZR = 0.;
45795c36 451Double_t kGClastYBinZR = 200.;
a19c3402 452
453//XY-plots
45795c36 454Int_t kGCnXBinsXY = 800;
455Double_t kGCfirstXBinXY = -200.;
456Double_t kGClastXBinXY = 200.;
457Int_t kGCnYBinsXY = 800;
458Double_t kGCfirstYBinXY = -200.;
459Double_t kGClastYBinXY = 200.;
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
45795c36 498Int_t kGCnYBinsdEdx = 200;
9640a3d1 499Double_t kGCfirstYBindEdx = 0.;
45795c36 500Double_t kGClastYBindEdx = 200.;
9640a3d1 501
48682642 502//Qt-plots
45795c36 503Int_t kGCnYBinsQt = 250;
48682642 504Double_t kGCfirstYBinQt = 0.;
45795c36 505Double_t kGClastYBinQt = 0.25;
48682642 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;
7c19d7d7 823 kGCWriteStandardAOD=kTRUE;
824 kGCrunOnTrain = kTRUE;
825 }
826 else if (argument.CompareTo("-run-on-gsi-train") == 0){
827 cout<<"Running on gsi train"<<endl;
d5f99c2b 828 kGCWriteStandardAOD=kFALSE;
6c84d371 829 kGCrunOnTrain = kTRUE;
d7d7e825 830 }
831 else if (argument.CompareTo("-run-jet") == 0){
832 cout<<"Running jet analysis"<<endl;
6c84d371 833 kGCrunJet = kTRUE;
d7d7e825 834 }
835 else if (argument.CompareTo("-run-neutralmeson") == 0){
836 cout<<"Running neutral meson analysis"<<endl;
6c84d371 837 kGCrunNeutralMeson = kTRUE;
d7d7e825 838 }
839 else if (argument.CompareTo("-run-neutral-meson") == 0){
840 cout<<"Running neutral meson analysis"<<endl;
6c84d371 841 kGCrunNeutralMeson = kTRUE;
d7d7e825 842 }
45795c36 843 else if (argument.CompareTo("-run-omega-meson") == 0){
844 cout<<"Running omega meson analysis"<<endl;
845 kGCrunOmegaMeson = kTRUE;
846 }
d7d7e825 847 else if (argument.CompareTo("-run-chic") == 0){
848 cout<<"Running Chi_c analysis"<<endl;
6c84d371 849 kGCrunChic = kTRUE;
d7d7e825 850 }
1e7846f4 851 else if (argument.CompareTo("-run-cf") == 0){
852 cout<<"Running CF"<<endl;
853 kGCrunCF = kTRUE;
854 }
855
d7d7e825 856 else if (argument.CompareTo("-jet-off") == 0){
857 cout<<"Skipping jet analysis"<<endl;
6c84d371 858 kGCrunJet = kFALSE;
d7d7e825 859 }
860 else if (argument.CompareTo("-neutralmeson-off") == 0){
861 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 862 kGCrunNeutralMeson = kFALSE;
d7d7e825 863 }
864 else if (argument.CompareTo("-neutral-meson-off") == 0){
865 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 866 kGCrunNeutralMeson = kFALSE;
d7d7e825 867 }
868 else if (argument.CompareTo("-chic-off") == 0){
869 cout<<"Skipping Chi_c analysis"<<endl;
6c84d371 870 kGCrunChic = kFALSE;
d7d7e825 871 }
872 else if (argument.CompareTo("-mc-off") == 0){
6c84d371 873 cout<<"Switching off kGCdoMCTruth"<<endl;
874 kGCdoMCTruth = kFALSE;
d7d7e825 875 }
b5832f95 876 else if (argument.CompareTo("-trigger-CINT1B") == 0){
877 cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl;
878 kGCtriggerCINT1B = kTRUE;
879 }
a0b94e5c 880 else if (argument.CompareTo("-use-own-xyz") == 0){
881 cout<<"Switching on use own xyz calculation"<<endl;
882 kGCdoOwnXYZCalculation = kTRUE;
883 }
6c3a327c 884 else if(argument.CompareTo("-append-to-output-file") == 0){
885 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
a0b94e5c 886 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
6c84d371 887 if(kGCoutputFileAppendix.IsNull()){
6c3a327c 888 cout<<"-appending-to-output-file is NULL"<<endl;
889 iResult=kFALSE;
890 }
891 else{
6c84d371 892 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
6c3a327c 893 }
894 }
48682642 895 else if(argument.CompareTo("-set-cut-selection") == 0){
896 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
897 kGCAnalysisCutSelectionId = ((TObjString*)pTokens->At(i))->GetString();
898 cout<<"The analysis cut selection is set to: "<<kGCAnalysisCutSelectionId.Data()<<endl;
899 }
6c3a327c 900 }
6c3a327c 901 delete pTokens;
902 }
903 if (bMissingParam) {
904 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
905 iResult=kFALSE;
906 }
907 return iResult;
908}
909
d7d7e825 910void SetVersionLibrary(){
911 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
6c84d371 912 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
913 // If no, kGCusePWG4PartCorr is true.
a0b94e5c 914
d7d7e825 915 TString file = gSystem->Getenv("ALICE_ROOT");
916 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
a0b94e5c 917
d7d7e825 918 ifstream stream;
919 stream.open(file.Data());
a0b94e5c 920
d7d7e825 921 if(!stream){
6c84d371 922 kGCusePWG4PartCorr=kFALSE;
d7d7e825 923 }
924 else{
6c84d371 925 kGCusePWG4PartCorr=kTRUE;
d7d7e825 926 }
927 stream.close();
928}
929
930
931
48682642 932AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments, AliAnalysisDataContainer *cin_esd=NULL){
933
32a6d407 934
037dc2db 935
6c3a327c 936 if(!scanArguments(arguments)){
937 break;
938 }
037dc2db 939
d7d7e825 940 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
a0b94e5c 941
6c84d371 942 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
943 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
d7d7e825 944 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
945 return;
946 }
a0b94e5c 947
6c84d371 948 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
949 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
950 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
d7d7e825 951 return;
952 }
6c84d371 953 if(kGCrunOnTrain == kFALSE){
954 if(kGCnumberOfFilesToAnalyze==0){
955 ifstream dataInStream;
956 dataInStream.open(kGCdataList.Data());
957 if ( !dataInStream ){
958 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
959 return 0;
6c3a327c 960 }
6c84d371 961 string line;
962 while ( !dataInStream.eof() )
963 {
964 getline(dataInStream, line);
965 if(line.compare("") != 0){//checks if there is an empty line in the data list
966 kGCnumberOfFilesToAnalyze++;
967 }
968 }
969 }
970 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
a0b94e5c 971
d7d7e825 972 build();//build (if necessary) and load the libraries needed
037dc2db 973
6c84d371 974 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
9640a3d1 975 }
a0b94e5c 976
07b54fba 977 if(!kGCrunOnTrain){
978 // for the train leave this to the steering macro
9640a3d1 979 AliLog::SetGlobalDebugLevel(0);
06688fb6 980 AliLog::SetGlobalLogLevel(AliLog::kFatal);
07b54fba 981 }
982 // ------------------------------------------------------------------------
a0b94e5c 983
984 // for CF
985
986 //Container def.
987 const Double_t ptmin = kGCfirstXBinPt;
988 const Double_t ptmax = kGClastXBinPt;
989 const Double_t etamin = kGCfirstXBinEta;
990 const Double_t etamax = kGClastXBinEta;
991 const Double_t massmin = kGCfirstXBinPi0Mass;
992 const Double_t massmax = kGClastXBinPi0Mass;
993
994
995 // sensitive variables
996 UInt_t ipt = 0;
997 UInt_t ieta = 1;
998 UInt_t imass = 2;
999
1000 //how many selection steps
48682642 1001 UInt_t nstep = 20;
a0b94e5c 1002 const Int_t nvar = 3;
d5f99c2b 1003
1004 Int_t kGCnXBinsPtCF=40;
1005 Int_t kGCnXBinsEtaCF=8;
1006 Int_t kGCnXBinsPi0MassCF=10;
1007
1008 if(!kGCrunCF){
45795c36 1009 nstep=1;
1010 kGCnXBinsPtCF=1;
1011 kGCnXBinsEtaCF=1;
1012 kGCnXBinsPi0MassCF=1;
d5f99c2b 1013 }
1014 const Int_t nbin0 = kGCnXBinsPtCF; // do not use same variable for CF than for histogram
1015 const Int_t nbin1 = kGCnXBinsEtaCF; // do not use same variable for CF than for histogram
1016 const Int_t nbin2 = kGCnXBinsPi0MassCF; // do not use same variable for CF than for histogram
a0b94e5c 1017
1018 //arrays for the number of bins in each dimension
1019 Int_t iBin[nvar];
1020 iBin[0] = nbin0;
1021 iBin[1] = nbin1;
1022 iBin[2] = nbin2;
1023
1024 //arrays for lower bounds
1025 Double_t *binLim0 = new Double_t[nbin0+1];
1026 Double_t *binLim1 = new Double_t[nbin1+1];
1027 Double_t *binLim2 = new Double_t[nbin2+1];
1028
1029 // values for lower bounds
1030 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
1031 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
1032 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
1033
1034 // create container
1035 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
1036 container->SetBinLimits(ipt,binLim0);
1037 container->SetBinLimits(ieta,binLim1);
1038 container->SetBinLimits(imass,binLim2);
1039
1040 AliCFManager *man = new AliCFManager();
1041 man->SetParticleContainer(container);
1042
1043 // end ---------------------------------------------------------------------------
1044
1045
9640a3d1 1046
a0b94e5c 1047
d7d7e825 1048 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
1049 AddHistograms(histograms);
1050
1051 // Create the Analysis manager
1052 AliAnalysisManager *mgr =NULL;
6c84d371 1053 if(kGCrunOnTrain == kFALSE){
a0b94e5c 1054 mgr = new AliAnalysisManager("My Manager", "My Analysis");
00a6a31a 1055 }
d7d7e825 1056 else{
1057 mgr = AliAnalysisManager::GetAnalysisManager();
00a6a31a 1058 }
a0b94e5c 1059
d7d7e825 1060 if (!mgr) {
1061 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
1062 return NULL;
1063 }
6c84d371 1064 if(kGCrunOnTrain == kTRUE){
1065 if (!mgr->GetInputEventHandler()) {
1066 ::Error("ConfigGammaConversion", "This task requires an input event handler");
1067 return NULL;
1068 }
1069 }
1070 AliESDInputHandler* inpHandler = NULL;
a0b94e5c 1071
6c84d371 1072 if(kGCrunOnTrain == kFALSE){
1073 // Define Input Event Handler
1074 inpHandler = new AliESDInputHandler();
1075 }
a19c3402 1076 // Define MC Truth Event Handler
6c84d371 1077 AliMCEventHandler* mcHandler = NULL;
1078 if(kGCdoMCTruth){
1079 if(kGCrunOnTrain == kFALSE){
1080 mcHandler = new AliMCEventHandler();
1081 }
1082 else{
1083 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
1084 }
1085 if (!mcHandler) {
1086 ::Error("", "No MC handler connected");
1087 return NULL;
1088 }
1089 }
a0b94e5c 1090
d7d7e825 1091 // Define Output Event Handler and ad
07b54fba 1092 if(kGCrunOnTrain == kFALSE){
037dc2db 1093 if(kGCWriteStandardAOD == kTRUE){
07b54fba 1094 AliAODHandler* aodHandler = new AliAODHandler();
1095 TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root";
1096 aodHandler->SetOutputFileName(fileOutAOD);
1097 mgr->SetOutputEventHandler (aodHandler);
1098 }
d7d7e825 1099 }
a0b94e5c 1100
6c84d371 1101 if(kGCrunOnTrain == kFALSE){
d7d7e825 1102 mgr->SetInputEventHandler (inpHandler);
1103 mgr->SetMCtruthEventHandler(mcHandler);
1104 }
a19c3402 1105 // Be sure you are told what you are doing
b5bd091d 1106 // mgr->SetDebugLevel(10);
32a6d407 1107
a19c3402 1108 // Declare Common Input Tchain
32a6d407 1109 AliAnalysisDataContainer *cinput1 = NULL;
6c84d371 1110 if(kGCusePWG4PartCorr){
1111 if(kGCrunOnTrain == kFALSE){
8a685cf3 1112 cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer);
d7d7e825 1113 }
1114 else{
1115 cinput1 = cin_esd;
1116 }
32a6d407 1117 }
1118 else{
d7d7e825 1119 cinput1 = mgr->GetCommonInputContainer();
32a6d407 1120 }
1121
a19c3402 1122 // Common Output Tree in common â\80\98defaultâ\80\99 output file
07b54fba 1123 // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive?
32a6d407 1124 AliAnalysisDataContainer *coutput1 = NULL;
6c84d371 1125 if(kGCusePWG4PartCorr){
07b54fba 1126 // coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
8a685cf3 1127 coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
32a6d407 1128 }
1129 else{
037dc2db 1130 if(kGCWriteStandardAOD){
a0b94e5c 1131 coutput1 = mgr->GetCommonOutputContainer();
1132 }
32a6d407 1133 }
1134
a19c3402 1135 // Private output objects
6c84d371 1136 if(kGCoutputFileName.Contains(".root")){
1137 kGCoutputFileName.ReplaceAll(".root","");
32a6d407 1138 }
6c84d371 1139 if(kGCoutputFileAppendix.Contains(".root")){
1140 kGCoutputFileAppendix.ReplaceAll(".root","");
32a6d407 1141 }
61374d97 1142 //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
1143
48682642 1144
1145 TString outputfile = AliAnalysisManager::GetCommonFileName();
1146 cout<<"Analyis cut selection ID is: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1147 // outputfile += Form(":PWG4_GammaConversion_%llu",(ULong_t)kGCAnalysisCutSelectionId);
1148 outputfile += Form(":PWG4_GammaConversion_%s",kGCAnalysisCutSelectionId.Data());
1149
1150 cout<<"Ouput file::"<< outputfile <<endl;
d5f99c2b 1151 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(Form("histogramsAliGammaConversion_%s",kGCAnalysisCutSelectionId.Data()), TList::Class(),AliAnalysisManager::kOutputContainer, outputfile);
a0b94e5c 1152 // for CF
d5f99c2b 1153 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(Form("GammaConvccontainer0_%s",kGCAnalysisCutSelectionId.Data()),AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile);
a0b94e5c 1154
a19c3402 1155 //------------------------ END: Define input/output handlers ---------------------------------------------------
32a6d407 1156
a19c3402 1157 //check for errors in the specified data
6c84d371 1158 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
a19c3402 1159 //Print warning, cannot use both
6c84d371 1160 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
a0b94e5c 1161 }
6c84d371 1162 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
a19c3402 1163 //Print warning, one have to be specified
6c84d371 1164 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
a0b94e5c 1165 }
1166
77fa1db4 1167
1168 if(!SetAnalysisCutSelection(kGCAnalysisCutSelectionId)){
1169 return 0;
1170 }
a0b94e5c 1171
a19c3402 1172 //Create the V0Reader
1173 AliV0Reader * v0Reader = new AliV0Reader();
6c84d371 1174 if(kGCuseKFParticle){
a19c3402 1175 v0Reader->UseKFParticle();
1176 }
6c84d371 1177 else if(kGCuseESDTrack){
a19c3402 1178 v0Reader->UseESDTrack();
1179 }
6c84d371 1180 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1181 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1182 v0Reader->SetMaxRCut(kGCmaxRCut);
1183 v0Reader->SetEtaCut(kGCetaCut);
1184 v0Reader->SetPtCut(kGCptCut);
48682642 1185 v0Reader->SetSinglePtCut(kGCsingleptCut);
6c84d371 1186 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1187 v0Reader->SetLineCutZValue(kGCLineCutZValue);
a0b94e5c 1188 v0Reader->SetMaxZCut(kGCmaxZCut);
48682642 1189 v0Reader->SetMinClsTPCCut(kGCminClsTPCCut);
6c84d371 1190 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1191 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
1192 v0Reader->SetPIDProbability(kGCprobElectron);
1193 v0Reader->SetXVertexCut(kGCxVertexCut);
1194 v0Reader->SetYVertexCut(kGCyVertexCut);
1195 v0Reader->SetZVertexCut(kGCzVertexCut);
1196 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1197 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1198 v0Reader->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1199 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
48682642 1200
a0b94e5c 1201 // for CF
1202 v0Reader->SetCFManager(man);
1203
9640a3d1 1204 // for dEdx N sigma Cut
1205 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1206 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1207 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1208 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1209 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
77880bd8 1210 v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder);
87f6de3e 1211 v0Reader->SetCalculateBackground(kGCcalculateBackground);
48682642 1212
48682642 1213
a19c3402 1214 // Create the GammaConversionTask
48682642 1215
1216
1217 AliAnalysisTaskGammaConversion *gammaconversion =
1218 new AliAnalysisTaskGammaConversion(Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data()));
1219
1220 cout<<"name of Task::"<< Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())<< " "<<gammaconversion->GetName() <<endl;
52a15f71 1221 gammaconversion->SetDebugLevel(0);
32a6d407 1222
6c84d371 1223 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
32a6d407 1224
a19c3402 1225 gammaconversion->SetV0Reader(v0Reader);
6c84d371 1226 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
a19c3402 1227 gammaconversion->Init();
32a6d407 1228
6c84d371 1229 gammaconversion->SetElectronMass(kGCelectronMass);
1230 gammaconversion->SetGammaMass(kGCgammaMass);
1231 gammaconversion->SetPi0Mass(kGCpi0Mass);
1232 gammaconversion->SetEtaMass(kGCetaMass);
32a6d407 1233
6c84d371 1234 gammaconversion->SetGammaWidth(kGCgammaWidth);
1235 gammaconversion->SetPi0Width(kGCpi0Width);
1236 gammaconversion->SetEtaWidth(kGCetaWidth);
a0b94e5c 1237
6c84d371 1238 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
32a6d407 1239
ebcfaa7e 1240 Double_t lowPtMapping=0.4;
1241 Double_t highPtMapping=1.5;
1242 gammaconversion->SetLowPtMapping(lowPtMapping);
1243 gammaconversion->SetHighPtMapping(highPtMapping);
1244
a19c3402 1245 // define the width constraint used by KF particle.
1246 Double_t gammaWidth = 0.01;
1247 Double_t pi0Width = 0.01;
1248 Double_t etaWidth = 0.01;
32a6d407 1249
a19c3402 1250 gammaconversion->SetHistograms(histograms);
1251 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
b5832f95 1252
1253 gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B);
6c84d371 1254 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1255
6c84d371 1256 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
037dc2db 1257 gammaconversion->SetDoNeutralMesonV0MCCheck(kGCdoNeutralMesonV0MCCheck);
6c84d371 1258 gammaconversion->SetDoJet(kGCrunJet);
1259 gammaconversion->SetDoChic(kGCrunChic);
48682642 1260 gammaconversion->SetDoOmegaMeson(kGCrunOmegaMeson);
1e7846f4 1261
a0b94e5c 1262 // for CF
1263 gammaconversion->SetCFManager(man);
1e7846f4 1264 gammaconversion->SetDoCF(kGCrunCF);
1265 v0Reader->SetDoCF(kGCrunCF);
32a6d407 1266
a19c3402 1267 // Add task to the manager
1268 mgr->AddTask(gammaconversion);
32a6d407 1269
a19c3402 1270 // Connect I/O to the task
1271 mgr->ConnectInput (gammaconversion, 0, cinput1);
07b54fba 1272
1273
1274 // CKB Output slot 0 is NOT connected if WriteStandardAOD is false?
037dc2db 1275 if(kGCWriteStandardAOD){
d7d7e825 1276 mgr->ConnectOutput(gammaconversion, 0, coutput1);
d7d7e825 1277 }
a0b94e5c 1278 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1279 mgr->ConnectOutput(gammaconversion, 2, coutput3);
1280
6c84d371 1281 if(kGCrunOnTrain == kFALSE){
1282 if(kGCdataList.IsNull()){
1283 cout<<"Data list is not set, aborting."<<endl;
1284 return;
1285 }
037dc2db 1286 /*
1287 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1288 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
1289 if(kGCdoMCTruth)physSelTask->GetPhysicsSelection()->SetAnalyzeMC();
1290 physSelTask->GetPhysicsSelection()->AddBackgroundIdentification(new AliBackgroundSelection());
1291 gammaconversion->SelectCollisionCandidates();
1292 */
48682642 1293
037dc2db 1294 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1295 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kGCdoMCTruth,kTRUE);
1296 gammaconversion->SelectCollisionCandidates();
48682642 1297
037dc2db 1298 // if(kGCrunOnTrain == kFALSE){
6c84d371 1299 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
a0b94e5c 1300
6c84d371 1301 mgr->InitAnalysis();
a0b94e5c 1302
6c84d371 1303 mgr->PrintStatus();
a0b94e5c 1304
6c84d371 1305 mgr->StartAnalysis("local",chain);
037dc2db 1306 // }
d7d7e825 1307 }
6c84d371 1308 return gammaconversion;
a19c3402 1309}
1310
a19c3402 1311void build() {
a0b94e5c 1312
a19c3402 1313 TStopwatch timer;
1314 timer.Start();
1315 gSystem->Load("libTree.so");
1316 gSystem->Load("libGeom");
32a6d407 1317
a19c3402 1318 ////
1319 //Setting up ESD.par//
1320 ////
1321 cout<<"compiling ESD"<<endl;
1322 setupPar("ESD");
1323 gSystem->Load("libVMC.so");
1324 gSystem->Load("libESD.so");
32a6d407 1325
a19c3402 1326 ////
1327 ////
1328 //Setting up STEERBase.par//
1329 ////
1330 cout<<"compiling STEERBase"<<endl;
1331 setupPar("STEERBase");
1332 gSystem->Load("libSTEERBase.so");
32a6d407 1333
a19c3402 1334 ////
1335 //Setting up AOD.par//
1336 ////
1337 cout<<"compiling AOD"<<endl;
1338 setupPar("AOD");
1339 gSystem->Load("libAOD.so");
32a6d407 1340
a19c3402 1341 ////
1342 //Setting up ANALYSIS.par//
1343 ////
1344 cout<<"compiling ANALYSIS"<<endl;
1345 setupPar("ANALYSIS");
1346 gSystem->Load("libANALYSIS.so");
32a6d407 1347
a19c3402 1348 ////
1349 //Setting up ANALYSISalice.par//
1350 ////
a0b94e5c 1351 cout<<"compiling ANALYSISalice"<<endl;
a19c3402 1352 setupPar("ANALYSISalice");
1353 gSystem->Load("libANALYSISalice.so");
32a6d407 1354
a0b94e5c 1355 ////
1356 //Setting up CORRFW.par//
1357 ////
1358 cout<<"compiling CORRFW"<<endl;
1359 setupPar("CORRFW");
1360 gSystem->Load("CORRFW.so");
1361
a19c3402 1362 ////
d7d7e825 1363 //Setting up PWG4GammaConv.par//
a19c3402 1364 ////
d7d7e825 1365 cout<<"compiling PWG4GammaConv"<<endl;
1366 setupPar("PWG4GammaConv");
1367 gSystem->Load("libPWG4GammaConv.so");
a19c3402 1368}
1369
1370Int_t setupPar(const char* pararchivename) {
1371 ///////////////////
1372 // Setup PAR File//
1373 ///////////////////
1374 if (pararchivename) {
1375 char processline[1024];
1376 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1377 gROOT->ProcessLine(processline);
1378 const char* ocwd = gSystem->WorkingDirectory();
1379 gSystem->ChangeDirectory(pararchivename);
32a6d407 1380
a19c3402 1381 // check for BUILD.sh and execute
1382 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1383 printf("*******************************\n");
1384 printf("*** Building PAR archive ***\n");
1385 printf("*******************************\n");
32a6d407 1386
a19c3402 1387 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
32a6d407 1388 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1389 return -1;
a19c3402 1390 }
1391 }
1392 // check for SETUP.C and execute
1393 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1394 printf("*******************************\n");
1395 printf("*** Setup PAR archive ***\n");
1396 printf("*******************************\n");
1397 gROOT->Macro("PROOF-INF/SETUP.C");
1398 }
32a6d407 1399
a19c3402 1400 gSystem->ChangeDirectory("../");
1401 }
1402 return 1;
1403}
d7d7e825 1404
1405
1406
1407void AddHistograms(AliGammaConversionHistograms *histograms){
1408 //---------------------------------------------- Jets ---------------------------------------------------------
6c84d371 1409 if(kGCrunJet == kTRUE){
1410 if (kGCplotdPhiHdrGam == kTRUE){
1411 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
d7d7e825 1412 }
a0b94e5c 1413
6c84d371 1414 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1415 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
d7d7e825 1416 }
a0b94e5c 1417
6c84d371 1418 if (kGCplotMinimumIsoDistance == kTRUE){
1419 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
d7d7e825 1420 }
a0b94e5c 1421
6c84d371 1422 if (kGCplotFFzHdrGam == kTRUE){
1423 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
d7d7e825 1424 }
a0b94e5c 1425
6c84d371 1426 if (kGCplotImbalanceHdrGam == kTRUE){
1427 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
d7d7e825 1428 }
6c84d371 1429 }//end if(kGCrunJet)
a0b94e5c 1430
d7d7e825 1431 //---------------------------------------------- Chi_c ---------------------------------------------------------
6c84d371 1432 if(kGCrunChic){
a0b94e5c 1433
6c84d371 1434 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1435 "");}
6c84d371 1436 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
a0b94e5c 1437 "","");}
6c84d371 1438 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1439 "");}
6c84d371 1440 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1441 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
a0b94e5c 1442 ");}
1443
6c84d371 1444 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1445 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
a0b94e5c 1446
7bea833a 1447 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1448
6c84d371 1449 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1450 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1451 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1452 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1453 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1454 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
a0b94e5c 1455
6c84d371 1456 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1457
6c84d371 1458 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1459
1460
6c84d371 1461 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1462 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1463 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
a0b94e5c 1464
6c84d371 1465 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1466 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1467
6c84d371 1468 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
7bea833a 1469
1470 if(kGCdoMCTruth){
1471 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1472 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","");}
1473 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1474 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1475 }
1476
6c84d371 1477 }// end kGCrunChic
a0b94e5c 1478
d7d7e825 1479 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
6c84d371 1480 if(kGCrunNeutralMeson){
a0b94e5c 1481
d7d7e825 1482 // Histograms from esd tracks
6c84d371 1483 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1484 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1485 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1486 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
ebcfaa7e 1487 if(kGCplotESDENTPCClusters == kTRUE){ histograms->AddHistogram("ESD_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1488 if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
a0b94e5c 1489
6c84d371 1490 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1491 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1492 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1493 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
ebcfaa7e 1494 if(kGCplotESDPNTPCClusters == kTRUE){ histograms->AddHistogram("ESD_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
f5f99b3d 1495 if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
a0b94e5c 1496
6c84d371 1497 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1498 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1499 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1500 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1501 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1502 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1503 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1504 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1505 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1506 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1507 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1508 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1509
1510
1511
6c84d371 1512 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1513 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1514 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1515 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1516
1517 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1518 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1519 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1520 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1521 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1522 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1523 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1524 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1525
48682642 1526 if(kGCplotESDConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlpha, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
1527
9640a3d1 1528
a0b94e5c 1529
037dc2db 1530 if(kGCplotESDTrueDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueDalitzContamination_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
a0b94e5c 1531
6c84d371 1532 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1533 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1534 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1535 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1536 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1537 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1538 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1539 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1540 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1541 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1542 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1543 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1544
6c84d371 1545 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1546 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1547 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1548 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1549
1550 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1551 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1552 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1553 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1554 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1555 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1556 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1557 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1558
a0b94e5c 1559
6c84d371 1560 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1561 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1562 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 1563
1564
1565
6c84d371 1566 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1567 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1568 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1569 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1570 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1571 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1572 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1573 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1574 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1575 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1576 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1577 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1578
6c84d371 1579 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1580 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1581 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1582 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1583
1584 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1585 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1586 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1587 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1588 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1589 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1590
1591
1592 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1593 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");}
1594
6c84d371 1595 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1596 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1597 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 1598
1599
1600
6c84d371 1601 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1602 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1603 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1604 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1605 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1606 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1607 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1608 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1609 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1610 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1611
037dc2db 1612 for(Int_t z=0;z<8;z++){
1613 for(Int_t m=0;m<4;m++){
1614 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_GammaDaughter_OpeningAngle",z,m) ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1615 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Energy",z,m) ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1616 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Pt",z,m) ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1617 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Eta",z,m) ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1618 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Phi",z,m) ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1619 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Mass",z,m) ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1620 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_R",z,m) ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1621 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_ZR",z,m) ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1622 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_XY",z,m) ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1623 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Rapid",z,m) ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1624 }
1625 }
1626
6c84d371 1627 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1628 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1629 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1630 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1631 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1632 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1633 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1634 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1635 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1636 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 1637
1638
6c84d371 1639 if(kGCplotMapping == kTRUE){
a0b94e5c 1640 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
9640a3d1 1641 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
1642 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
d7d7e825 1643 }
a0b94e5c 1644
037dc2db 1645 if(kGCplotResolutiondRAbs== kTRUE){histograms->AddHistogram("Resolution_dRAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1646 if(kGCplotResolutiondZAbs== kTRUE){histograms->AddHistogram("Resolution_dZAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1647
1648 if(kGCplotResolutiondPhiAbs== kTRUE){histograms->AddHistogram("Resolution_dPhiAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR, -TMath::Pi()/30., TMath::Pi()/30., "", "");}
1649
6c84d371 1650 if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");}
1651 if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
1652 if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
a0b94e5c 1653
6c84d371 1654 if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
a0b94e5c 1655
6c84d371 1656 if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1657 if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1658 if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
a0b94e5c 1659
6c84d371 1660 if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
1661 if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
1662 if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
48682642 1663
1664 if(kGCplotResolutionPtdPt = kTRUE){
1665 histograms->AddHistogram("Resolution_Gamma_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1666 histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1667 histograms->AddHistogram("Resolution_P_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1668 histograms->AddHistogram("Resolution_Gamma_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
7bea833a 1669 // histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
48682642 1670 histograms->AddHistogram("Resolution_P_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
1671 }
1672
ebcfaa7e 1673 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, -0.5, 99.5,"","");}
1674 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, -0.5, 99.5,"","");}
1675 if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",100, -0.5, 99.5,"","");}
037dc2db 1676 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracks","Number of Good ESD tracks",100, -0.5, 99.5,"","");}
a0b94e5c 1677
d7d7e825 1678 // debug histograms
6c84d371 1679 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1680 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1681 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1682 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1683 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1684 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9640a3d1 1685
1686 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1687 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1688
6c84d371 1689 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1690 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1691 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1692 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1693 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1694 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
ebcfaa7e 1695 if(kGCplotESDCutZ == kTRUE){histograms->AddHistogram("ESD_CutZ_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
48682642 1696 if(kGCplotESDCutMinClsTPC == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPC_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1697
9640a3d1 1698 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
037dc2db 1699 if(kGCplotESDAllV0s == kTRUE){histograms->AddHistogram("ESD_AllV0s_InvMass" ,"All V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
48682642 1700 if(kGCplotESDAllV0sCurrentFinder == kTRUE){histograms->AddHistogram("ESD_AllV0sCurrentFinder_InvMass" ,"All V0s Current Finder" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
1701
1702 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlpha, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
9640a3d1 1703
6c84d371 1704 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
1705 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
a0b94e5c 1706
48682642 1707 if(kGCplotOmegaSpectra == kTRUE){
1708 histograms->AddHistogram("ESD_Omega_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1709 histograms->AddHistogram("ESD_Omega_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1710
1711 histograms->AddHistogram("ESD_Omega_Bck_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1712 histograms->AddHistogram("ESD_Omega_Bck_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1713 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1714 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1715
1716 }
63e16c52 1717
6c84d371 1718 if(kGCplotPi0Spectra == kTRUE){
48682642 1719 histograms->AddHistogram("ESD_Mother_alfa","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alfa","Counts");
1720
6c84d371 1721 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1722 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
ebcfaa7e 1723 histograms->AddHistogram("ESD_Mother_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1724 histograms->AddHistogram("ESD_Mother_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1725 histograms->AddHistogram("ESD_Mother_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1726 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1727 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1728 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1729
f5f99b3d 1730
48682642 1731 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1732 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvPHOS" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1733 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1734 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1735
1736 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1737 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_Bck","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1738
1739 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1740 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL_Bck" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1741
1742
1743 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1744 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1745
63e16c52 1746
ebcfaa7e 1747 // if(kGCdoNeutralMesonV0MCCheck == kTRUE){
1748 histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
037dc2db 1749 histograms->AddHistogram("ESD_TruePi0_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1750 histograms->AddHistogram("ESD_TruePi0_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1751 histograms->AddHistogram("ESD_TruePi0_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1752 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_1212" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
1753 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0912" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
1754 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0909" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
ebcfaa7e 1755 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
037dc2db 1756 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1757 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1758 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
ebcfaa7e 1759 //}
037dc2db 1760
9640a3d1 1761 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]");
1762 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
1763
1764
d7d7e825 1765 }
48682642 1766
6c84d371 1767 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
037dc2db 1768 for(Int_t z=0;z<8;z++){
1769 for(Int_t m=0;m<4;m++){
1770 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 1771
037dc2db 1772
48682642 1773 histograms->AddHistogram(Form("%d%dESD_Background_InvMass",z,m),"Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1774
d5f99c2b 1775
48682642 1776 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]");
1777
1778
037dc2db 1779 histograms->AddHistogram(Form("%d%dESD_Background_InvMass_Fiducial",z,m),"Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
1780 }
1781 }
48682642 1782
6c84d371 1783 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
1784 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
9640a3d1 1785
1786 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]");
1787 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
48682642 1788
d7d7e825 1789 }
037dc2db 1790
7bea833a 1791 if(kGCdoMCTruth){
1792 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
1793 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
1794 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
1795 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
1796 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1797 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1798
1799
1800 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1801 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1802 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1803 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1804 if(kGCplotMCENTPCClusters == kTRUE){ histograms->AddHistogram("MC_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1805 if(kGCplotMCENITSClusters == kTRUE){ histograms->AddHistogram("MC_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1806
1807 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1808 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1809 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1810 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1811 if(kGCplotMCPNTPCClusters == kTRUE){ histograms->AddHistogram("MC_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1812 if(kGCplotMCPNITSClusters == kTRUE){ histograms->AddHistogram("MC_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
1813
1814 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1815 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1816 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1817 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1818 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1819
1820 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1821 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1822 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1823 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1824 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1825 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
1826
1827 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1828 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1829 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1830 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1831 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1832
1833 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1834 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1835 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1836 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1837 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1838
1839 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1840 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1841 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1842 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1843 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1844 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1845 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1846 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1847 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1848 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1849 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1850 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1851 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1852 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1853
1854 if(kGCplotMCMotherSpectra == kTRUE){
1855 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1856 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1857 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
1858 }
1859
1860
1861 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1862 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1863 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1864 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1865 if(kGCplotMCPi0PtFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Fiducial" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1866 if(kGCplotMCPi0PtWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_withinAcceptance_Fiducial" ,"" , kGCnXBinsPt,kGCfirstXBinPt, kGClastXBinPt, "", "");}
1867 if(kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_ConvGamma_withinAcceptance_Fiducial","" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1868
1869 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1870 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1871 if(kGCplotMCPi0Alpha == kTRUE){ histograms->AddHistogram("MC_Pi0_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");}
1872
1873 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1874 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1875 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1876 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1877 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1878 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1879 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1880 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1881 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1882
1883
1884 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1885 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1886 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1887 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1888 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1889 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
1890 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1891 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1892 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1893 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1894 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1895 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1896 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1897 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1898
1899
1900
1901 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1902 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1903 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1904 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1905 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1906 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
1907 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
1908 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1909 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1910 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
1911 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1912 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1913 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1914 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1915 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1916 }
1917
6c84d371 1918 }// end kGCrunNeutralMeson
037dc2db 1919
1920
1921 //--------------------------------------------------- 2 gamma Background -------------------------------------------------------
1922
1923 if(kGCcalculateBackground==kTRUE){
1924 histograms->AddHistogram("ESD_Z_distribution" ,"Z primary vertex" , 2000, -30, 30,"Z[cm]","counts");
45795c36 1925 histograms->AddHistogram("ESD_multiplicity_distribution" ,"multiplicity distribution" , 200, 0, 200,"counts","Multiplicity");
1926 histograms->AddHistogram("ESD_ZvsMultiplicity" ,"Z vs Multiplicity" , 1000, -10, 10,200,0,200,"Z[cm]","Multiplicity");
037dc2db 1927 }
d7d7e825 1928}
48682642 1929
1930
1931
1932Int_t SetAnalysisCutSelection(TString analysisCutSelection){
1933 Int_t iResult=0;
1934
1935 // set the cuts depending on the Cut Selection Id
1936 // first number is dummy always set to 9
1937 const char* cutSelection = analysisCutSelection.Data();
1938
1939 cout<<"cutSelection is: "<<cutSelection<<endl;
1940
1941 if(analysisCutSelection.Length()!=10){
1942 cout<<"Cut selection has the wrong length!"<<endl;
1943 return 0;
1944 }
1945 char tmp = cutSelection[0];
1946 // cout<<"reading: "<<tmp<<endl;
1947 Int_t goodId=atoi(&tmp);
1948 tmp = cutSelection[1];
1949 // cout<<"reading: "<<tmp<<endl;
1950 Int_t v0FinderType=atoi(&tmp);
1951 tmp = cutSelection[2];
1952 // cout<<"reading: "<<tmp<<endl;
1953 Int_t eProbCut=atoi(&tmp);
1954 tmp = cutSelection[3];
1955 // cout<<"reading: "<<tmp<<endl;
1956 Int_t ededxSigmaCut=atoi(&tmp);
1957 tmp = cutSelection[4];
1958 // cout<<"reading: "<<tmp<<endl;
1959 Int_t pidedxSigmaCut=atoi(&tmp);
1960 tmp = cutSelection[5];
1961 // cout<<"reading: "<<tmp<<endl;
1962 Int_t piMomdedxSigmaCut=atoi(&tmp);
1963 tmp = cutSelection[6];
1964 // cout<<"reading: "<<tmp<<endl;
1965 Int_t chi2GammaCut=atoi(&tmp);
1966 tmp = cutSelection[7];
1967 // cout<<"reading: "<<tmp<<endl;
1968 Int_t singlePtCut=atoi(&tmp);
1969 tmp = cutSelection[8];
1970 // cout<<"reading: "<<tmp<<endl;
1971 Int_t clsTPCCut=atoi(&tmp);
1972 tmp = cutSelection[9];
1973 // cout<<"reading: "<<tmp<<endl;
1974 Int_t etaCut=atoi(&tmp);
1975
1976
1977
1978 cout<<"etaCut: "<<etaCut<<endl;
1979 cout<<"clsTPCCut: "<<clsTPCCut<<endl;
1980 cout<<"singlePtCut: "<<singlePtCut<<endl;
1981 cout<<"chi2GammaCut: "<<chi2GammaCut<<endl;
1982 cout<<"piMomdedxSigmaCut: "<<piMomdedxSigmaCut<<endl;
1983 cout<<"pidedxSigmaCut: "<<pidedxSigmaCut <<endl;
1984 cout<<"ededxSigmaCut: "<<ededxSigmaCut <<endl;
1985 cout<<"eProbCut: "<< eProbCut<<endl;
1986 cout<<"v0FinderType: "<<v0FinderType <<endl;
1987 cout<<"goodId: "<<goodId <<endl;
1988
1989 if(goodId !=9){
1990 cout<<"Analysis Cut Selection too short or does not start with 9"<<endl;
1991 return iResult;
1992 }
1993
1994 switch (v0FinderType){
1995 case 0: // on fly V0 finder
1996 kGCUseOnFlyV0Finder=kTRUE;
1997 break;
1998 case 1: // offline V0 finder
1999 kGCUseOnFlyV0Finder=kFALSE;
2000 break;
2001 default:
2002 return iResult;
2003 }
2004 switch(eProbCut){
2005 case 0: // 0.
2006 kGCprobElectron = 0.000;
2007 break;
2008 case 1: // 0.001
2009 kGCprobElectron = 0.001;
2010 break;
2011 case 2: // 0.01
2012 kGCprobElectron = 0.01;
2013 break;
2014 default:
2015 return iResult;
2016 }
2017
2018 switch(ededxSigmaCut){
2019 case 0: // -10,10
2020 kGCPIDnSigmaBelowElectronLine=-10;
2021 kGCPIDnSigmaAboveElectronLine=10;
2022 break;
2023 case 1: // -5,5
2024 kGCPIDnSigmaBelowElectronLine=-5;
2025 kGCPIDnSigmaAboveElectronLine=5;
2026 break;
2027 case 2: // -3,5
2028 kGCPIDnSigmaBelowElectronLine=-3;
2029 kGCPIDnSigmaAboveElectronLine=5;
2030 break;
2031 default:
2032 return iResult;
2033 }
2034
2035 switch(pidedxSigmaCut){
2036 case 0: // -10
2037 kGCPIDnSigmaAbovePionLine=-10;
2038 break;
2039 case 1: // 0
2040 kGCPIDnSigmaAbovePionLine=0;
2041 break;
2042 case 2: // 1
2043 kGCPIDnSigmaAbovePionLine=1;
2044 break;
2045 default:
2046 return iResult;
2047 }
2048
2049 switch(piMomdedxSigmaCut){
2050 case 0: // 0.5 GeV
2051 kGCPIDMinPnSigmaAbovePionLine=0.5;
2052 break;
2053 case 1: // 1. GeV
2054 kGCPIDMinPnSigmaAbovePionLine=1.;
2055 break;
2056 case 2: // 1.5 GeV
2057 kGCPIDMinPnSigmaAbovePionLine=1.5;
2058 break;
2059 default:
2060 return iResult;
2061 }
2062
2063 switch(chi2GammaCut){
2064 case 0: // 100
2065 kGCchi2CutConversion = 100.;
2066 break;
2067 case 1: // 50
2068 kGCchi2CutConversion = 50.;
2069 break;
2070 case 2: // 30
2071 kGCchi2CutConversion = 30.;
2072 break;
2073 default:
2074 return iResult;
2075 }
2076
2077 switch(singlePtCut){
2078 case 0: // 0.050 GeV
2079 kGCsingleptCut = 0.050;
2080 break;
2081 case 1: // 0.100 GeV
2082 kGCsingleptCut = 0.100;
2083 break;
2084 case 2: // 0.150 GeV
2085 kGCsingleptCut = 0.150;
2086 break;
2087 case 3: // 0.200 GeV
2088 kGCsingleptCut = 0.200;
2089 break;
2090 default:
2091 return iResult;
2092 }
2093
2094 switch(clsTPCCut){
2095 case 0: // 0
2096 kGCminClsTPCCut= 0.;
2097 break;
2098 case 1: // 70
2099 kGCminClsTPCCut= 70.;
2100 break;
2101 case 2: // 80
2102 kGCminClsTPCCut= 80.;
2103 break;
2104 case 3: // 100
2105 kGCminClsTPCCut= 100.;
2106 break;
2107 default:
2108 return iResult;
2109 }
2110
2111 switch(etaCut){
2112 case 0: // 0.9
2113 kGCetaCut = 0.9;
2114 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2115 break;
2116 case 1: // 1.2
2117 kGCetaCut = 1.2;
2118 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2119 break;
2120 case 2: // 1.4
2121 kGCetaCut = 1.4;
2122 kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
2123 break;
2124 default:
2125 return iResult;
2126 }
2127
2128 iResult=1;
2129 return iResult;
2130}
2131
2132
2133
2134
2135
2136