extra cut for clusters
[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 **************************************************************************/
64f4118c 18const int c_array_size = 26;
bf008563 19
d7d7e825 20class AliAnalysisDataContainer;
21class AliGammaConversionHistograms;
6c84d371 22class AliAnalysisTaskGammaConversion;
332f1f44 23class AliAnalysisTaskGammaJet;
a19c3402 24
d7d7e825 25// set this to a number if you want to analyze a set number of files
26// if it is 0 it will analyze the files listed in the data list
6c84d371 27Int_t kGCnumberOfFilesToAnalyze=0;
a19c3402 28
6c84d371 29Bool_t kGCrunNeutralMeson = kTRUE;
30Bool_t kGCrunJet = kFALSE;
31Bool_t kGCrunChic = kFALSE;
eb35cbb5 32Bool_t kGCrunDalitz = kFALSE;
1e7846f4 33Bool_t kGCrunCF = kFALSE;
037dc2db 34Bool_t kGCcalculateBackground = kTRUE;
35Bool_t kGCdoNeutralMesonV0MCCheck =kFALSE;
48682642 36Bool_t kGCrunOmegaMeson = kFALSE;
ca6d4600 37Bool_t kGCrunRES = kFALSE;
9c1cb6f7 38Bool_t kGCRecalculateV0ForGamma = kFALSE;
5ce758b0 39Bool_t kGCUseTrackMultiplicityForBG = kTRUE;
40Bool_t kGCMoveParticlesAccordingToVertex = kFALSE;
2e2da371 41Bool_t kGCLowMemoryConsumption = kFALSE;
42Bool_t kGCApplyChi2Cut = kFALSE;
111d75df 43
44Bool_t kGCUseRotationMethodInBG=kTRUE;
45Int_t kGCnDegreeRotationPMForBG=15;
46Int_t kGCnumberOfRotationEventsForBG=15;
c1237864 47Bool_t kGCdoBGProbability=kFALSE;
332f1f44 48//Svein
49Bool_t kGCRunGammaJetTask = kFALSE;
a19c3402 50/** ---------------------------------- define cuts here ------------------------------------*/
64f4118c 51TString kGCAnalysisCutSelectionId="90035620401003321022000000"; // do not change here, use -set-cut-selection in argument instead
70ef88b5 52
0c1270f1 53Int_t kGCNEventsForBGCalculation=20;
48682642 54
6c84d371 55Int_t kGCpidOfNegativeTrack=11;
56Int_t kGCpidOfPositiveTrack=-11;
a19c3402 57
10e3319b 58Double_t kGCmaxVertexZ = 10.;
6c84d371 59Double_t kGCmaxRCut = 180.;
4f07ce38 60Double_t kGCminRCut = 2.8;
48682642 61Double_t kGCetaCut = 0.9;
6c84d371 62Double_t kGCptCut = 0.02;
48682642 63Double_t kGCsingleptCut = 0.02;
a0b94e5c 64Double_t kGCmaxZCut = 240.;
48682642 65Double_t kGCminClsTPCCut= 0.;
4f07ce38 66Double_t kGCminClsTPCCutToF= 0.;
48682642 67Double_t kGCchi2CutConversion = 30.;
9640a3d1 68Double_t kGCchi2CutMeson = 50.;
9c1cb6f7 69Double_t kGCalphaCutMeson = 0.7;
67381a40 70Double_t kGCalphaMinCutMeson = 0.0;
c1237864 71Double_t kGCrapidityCutMeson = 0.9;
a19c3402 72
52a15f71 73Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut)));
74Double_t kGCLineCutZValue = 7.;
75
76
6c84d371 77Double_t kGCxVertexCut = 0.;
78Double_t kGCyVertexCut = 0.;
79Double_t kGCzVertexCut = 0.;
a19c3402 80
6c84d371 81Double_t kGCsigmaCutGammaMass=0.0001;
a19c3402 82
6c84d371 83Bool_t kGCuseImprovedVertex = kTRUE;
a19c3402 84
77880bd8 85Bool_t kGCUseOnFlyV0Finder = kTRUE;
86
a19c3402 87// define masses of different particles, this will be used by the KF particle
88// together with the width to set mass constraints. Units in GeV.
6c84d371 89Double_t kGCelectronMass = 0.00051099892;
90Double_t kGCgammaMass = 0.;
91Double_t kGCpi0Mass = 0.1349766;
92Double_t kGCetaMass = 0.54751;
a19c3402 93
94// define the width constraint used by KF particle.
6c84d371 95Double_t kGCgammaWidth = 0.01;
96Double_t kGCpi0Width = 0.01;
97Double_t kGCetaWidth = 0.01;
a19c3402 98
99// define the probability of track being an electron
037dc2db 100Double_t kGCprobElectron = 0.000;
32a6d407 101
45795c36 102Double_t kGCminOpeningAngleGhostCut = 0.005;
a19c3402 103
2f426a53 104Bool_t kGCRemovePileUp = kFALSE;
18a1e325 105
106Bool_t kGCSelectV0AND = kFALSE;
6746e1e1 107Bool_t kGCUseMultiplicity = kFALSE;
108Int_t kGCUseMultiplicityBin=0;
109
64f4118c 110Int_t kGCIsHeavyIon = 0;
111Int_t kGCUseCentrality = 0;
40051a3e 112Int_t kGCUseCentralityBin = 0;
113Int_t kGCUseCorrectedTPCClsInfo = 0;
64f4118c 114
115
eb35cbb5 116/** ---------------------------------- define pi0 dalitz cuts here ------------------------------------*/
117
7811d09e 118Bool_t kGCRunStandalone = kTRUE;
eb35cbb5 119Bool_t kGCUseBayesPID = kFALSE;
120Bool_t kGCUseTrackIndexCut = kTRUE;
121Bool_t kGCUsePsiPairCut = kTRUE;
122Bool_t kGCUseMassCut = kFALSE;
123Bool_t kGCUseGammaCut = kFALSE;
124Bool_t kGCReadMagFieldSign = kTRUE;
125Bool_t kGCUseAliKF = kFALSE;
126
127Double_t kGCPsiPairCut = 0.45;
128Double_t kGCDeltaPhiCutMin = 0.;
129Double_t kGCDeltaPhiCutMax = 0.12;
130Double_t kGCMassCutMin = 0.;
131Double_t kGCMassCutMax = 0.1;
132Double_t kGCNSigmaBelowElecTPCbethe = -2.;
133Double_t kGCNSigmaAboveElecTPCbethe = 3.;
134Double_t kGCNSigmaAbovePionTPCbethe = 2.;
135Double_t kGCNSigmaAboveKaonTPCbethe = 2.;
136Double_t kGCNSigmaAboveProtonTPCbethe = 2.;
137
138Int_t kGCTrkSelectionCriteria = 1; // kITSsaTrack=0, kGlobalTrack=1, kITSsaGlobalTrack=2
139// NOTE: for details in the track cuts and defined histograms see AddGammaConvDalitz.C
140
a19c3402 141/** ----------------------------------end define cuts here----------------------------------*/
142
143/** -------------------------------- Phi/R Mapping ---------------------------------------*/
a0b94e5c 144Int_t kGCnPhiIndex = 8;
f5f99b3d 145Int_t kGCnRIndex = 14;
a19c3402 146
6c84d371 147Double_t kGCminRadius = 0.;
148Double_t kGCmaxRadius = 200.;
149Double_t kGCminPhi = -TMath::Pi();
150Double_t kGCmaxPhi = TMath::Pi();
a19c3402 151/** ------------------------------- end Phi/R Mapping ------------------------------------*/
152
a0b94e5c 153Bool_t kGCdoOwnXYZCalculation = kFALSE;
5ce758b0 154Bool_t kGCdoConstructGamma = kFALSE;
a0b94e5c 155
332f1f44 156/** -------------AOD stuff ---------------------------------------------------------------*/
157TString kGCDeltaAODFilename = "AliAODGammaConversion.root"; //If empty, writes to standard common aod file.
d765d400 158Bool_t kGCWriteAOD =kTRUE; // Turn on AOD
159Bool_t kGCForceAOD = kFALSE; // Call AliAnalysisManager::SetFillAOD(kTRUE) every ESD event.
160
a19c3402 161/** ------------------- define which histograms to plot here --------------------------------*/
162/** NB: to change the bin numbers, see below the histogram flags */
d7d7e825 163
45bc8986 164Bool_t kGCplotEventQuality = kTRUE;
165
f8017b04 166
167// MC GAMMA DECAY PLOTS
168Bool_t kGCplotMCGammaFromDecay = kTRUE;
d7d7e825 169// NEUTRAL MESON PLOTS
6c84d371 170Bool_t kGCplotMCConversionR = kTRUE;
171Bool_t kGCplotMCConversionZR = kTRUE;
172Bool_t kGCplotMCConversionXY = kTRUE;
173Bool_t kGCplotMCConversionOpeningAngle = kTRUE;
9640a3d1 174Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE;
175Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE;
176
6c84d371 177
45795c36 178Bool_t kGCplotMCEEnergy = kFALSE;
6c84d371 179Bool_t kGCplotMCEPt = kTRUE;
180Bool_t kGCplotMCEEta = kTRUE;
181Bool_t kGCplotMCEPhi = kTRUE;
ebcfaa7e 182Bool_t kGCplotMCENTPCClusters = kTRUE;
183Bool_t kGCplotMCENITSClusters = kTRUE;
6c84d371 184
45795c36 185Bool_t kGCplotMCPEnergy = kFALSE;
6c84d371 186Bool_t kGCplotMCPPt = kTRUE;
187Bool_t kGCplotMCPEta = kTRUE;
188Bool_t kGCplotMCPPhi = kTRUE;
ebcfaa7e 189Bool_t kGCplotMCPNTPCClusters = kTRUE;
190Bool_t kGCplotMCPNITSClusters = kTRUE;
6c84d371 191
45795c36 192Bool_t kGCplotMCallGammaEnergy = kFALSE;
6c84d371 193Bool_t kGCplotMCallGammaPt = kTRUE;
194Bool_t kGCplotMCallGammaEta = kTRUE;
195Bool_t kGCplotMCallGammaPhi = kTRUE;
196Bool_t kGCplotMCallGammaRapid = kTRUE;
197
198
45795c36 199Bool_t kGCplotMCConvGammaEnergy = kFALSE;
6c84d371 200Bool_t kGCplotMCConvGammaPt = kTRUE;
201Bool_t kGCplotMCConvGammaEta = kTRUE;
202Bool_t kGCplotMCConvGammaPhi = kTRUE;
203Bool_t kGCplotMCConvGammaRapid = kTRUE;
204Bool_t kGCplotMCConvGammaPtvsEta = kTRUE;
205
45795c36 206Bool_t kGCplotMCallDirectGammaEnergy = kFALSE;
6c84d371 207Bool_t kGCplotMCallDirectGammaPt = kTRUE;
208Bool_t kGCplotMCallDirectGammaEta = kTRUE;
209Bool_t kGCplotMCallDirectGammaPhi = kTRUE;
210Bool_t kGCplotMCallDirectGammaRapid = kTRUE;
211
45795c36 212Bool_t kGCplotMCConvDirectGammaEnergy = kFALSE;
6c84d371 213Bool_t kGCplotMCConvDirectGammaPt = kTRUE;
214Bool_t kGCplotMCConvDirectGammaEta = kTRUE;
215Bool_t kGCplotMCConvDirectGammaPhi = kTRUE;
216Bool_t kGCplotMCConvDirectGammaRapid = kTRUE;
217
218Bool_t kGCplotMCMotherEta = kTRUE;
219Bool_t kGCplotMCMotherRapid = kTRUE;
220Bool_t kGCplotMCMotherPhi = kTRUE;
221Bool_t kGCplotMCMotherPt = kTRUE;
45795c36 222Bool_t kGCplotMCMotherEnergy = kFALSE;
6c84d371 223Bool_t kGCplotMCMotherMass = kTRUE;
224Bool_t kGCplotMCMotherOpeningAngle = kTRUE;
225Bool_t kGCplotMCMotherR = kTRUE;
d5f99c2b 226Bool_t kGCplotMCMotherZR = kFALSE;
227Bool_t kGCplotMCMotherXY = kFALSE;
6c84d371 228Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE;
229Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE;
230Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE;
231Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE;
232Bool_t kGCplotMCMotherSpectra = kTRUE;
233
4f07ce38 234Bool_t kGCplotMCPhysicalPrimaryChargedPt = kTRUE;
235
6c84d371 236Bool_t kGCplotMCPi0Eta = kTRUE;
237Bool_t kGCplotMCPi0Rapid = kTRUE;
c1237864 238Bool_t kGCplotMCPi0PtvsRapid = kTRUE;
6c84d371 239Bool_t kGCplotMCPi0Phi = kTRUE;
240Bool_t kGCplotMCPi0Pt = kTRUE;
48682642 241Bool_t kGCplotMCPi0PtFiducial = kTRUE;
242Bool_t kGCplotMCPi0PtWithinAcceptanceFiducial = kTRUE;
243Bool_t kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial = kTRUE;
10e3319b 244Bool_t kGCplotMCPi0OpeningPtConvGammaWithinAcceptance = kTRUE;
245Bool_t kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance = kTRUE;
45795c36 246Bool_t kGCplotMCPi0Energy = kFALSE;
6c84d371 247Bool_t kGCplotMCPi0Mass = kTRUE;
48682642 248Bool_t kGCplotMCPi0Alpha = kTRUE;
dcdc851f 249Bool_t kGCplotMCEtaAlpha = kTRUE;
6c84d371 250Bool_t kGCplotMCPi0OpeningAngle = kTRUE;
251Bool_t kGCplotMCPi0R = kTRUE;
45795c36 252Bool_t kGCplotMCPi0ZR = kFALSE;
253Bool_t kGCplotMCPi0XY = kFALSE;
6c84d371 254Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE;
255Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE;
256Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE;
257Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE;
258Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE;
259
260Bool_t kGCplotMCPi0SecondaryEta = kTRUE;
261Bool_t kGCplotMCPi0SecondaryRapid = kTRUE;
262Bool_t kGCplotMCPi0SecondaryPhi = kTRUE;
263Bool_t kGCplotMCPi0SecondaryPt = kTRUE;
45795c36 264Bool_t kGCplotMCPi0SecondaryEnergy = kFALSE;
6c84d371 265Bool_t kGCplotMCPi0SecondaryMass = kTRUE;
266Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE;
267Bool_t kGCplotMCPi0SecondaryR = kTRUE;
45795c36 268Bool_t kGCplotMCPi0SecondaryZR = kFALSE;
269Bool_t kGCplotMCPi0SecondaryXY = kFALSE;
6c84d371 270Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE;
271Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE;
272Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE;
273Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE;
274
275Bool_t kGCplotMCEtaEta = kTRUE;
276Bool_t kGCplotMCEtaRapid = kTRUE;
c1237864 277Bool_t kGCplotMCEtaPtvsRapid = kTRUE;
6c84d371 278Bool_t kGCplotMCEtaPhi = kTRUE;
279Bool_t kGCplotMCEtaPt = kTRUE;
45795c36 280Bool_t kGCplotMCEtaEnergy = kFALSE;
6c84d371 281Bool_t kGCplotMCEtaMass = kTRUE;
282Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE;
283Bool_t kGCplotMCEtaR = kTRUE;
45795c36 284Bool_t kGCplotMCEtaZR = kFALSE;
285Bool_t kGCplotMCEtaXY = kFALSE;
6c84d371 286Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE;
287Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE;
288Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE;
289Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE;
10e3319b 290Bool_t kGCplotMCEtaOpeningPtConvGammaWithinAcceptance = kTRUE;
291Bool_t kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance = kTRUE;
6c84d371 292Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE;
32a6d407 293
a19c3402 294// Histograms from esd tracks
9640a3d1 295Bool_t kGCplotESDConversionR = kTRUE;
296Bool_t kGCplotESDConversionZR = kTRUE;
297Bool_t kGCplotESDConversionXY = kTRUE;
e60f3265 298Bool_t kGCplotESDConversionXYBeamPipe = kTRUE;
299Bool_t kGCplotESDConversionRPhiBeamPipe = kTRUE;
9640a3d1 300Bool_t kGCplotESDConversionOpeningAngle = kTRUE;
301Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE;
302Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE;
303Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE;
304Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE;
305Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE;
306Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE;
307Bool_t kGCplotESDConvGammaEdEdxP = kTRUE;
308Bool_t kGCplotESDConvGammaPdEdxP = kTRUE;
9c1cb6f7 309Bool_t kGCplotESDConvGammaEeProbP = kTRUE;
310Bool_t kGCplotESDConvGammaPeProbP = kTRUE;
311Bool_t kGCplotESDConvGammaEmupiProbP = kTRUE;
312Bool_t kGCplotESDConvGammaPmupiProbP = kTRUE;
313
48682642 314Bool_t kGCplotESDConvGammaQtAlfa = kTRUE;
9640a3d1 315
6c84d371 316
45795c36 317Bool_t kGCplotESDEEnergy = kFALSE;
6c84d371 318Bool_t kGCplotESDEPt = kTRUE;
319Bool_t kGCplotESDEEta = kTRUE;
320Bool_t kGCplotESDEPhi = kTRUE;
ebcfaa7e 321Bool_t kGCplotESDENTPCClusters = kTRUE;
322Bool_t kGCplotESDENITSClusters = kTRUE;
5ce758b0 323Bool_t kGCplotESDENTPCClustersToFP = kTRUE;
19338f3c 324Bool_t kGCplotESDENTPCClustersToFR = kTRUE;
5ce758b0 325Bool_t kGCplotESDETPCchi2 = kTRUE;
6c84d371 326
45795c36 327Bool_t kGCplotESDPEnergy = kFALSE;
6c84d371 328Bool_t kGCplotESDPPt = kTRUE;
329Bool_t kGCplotESDPEta = kTRUE;
330Bool_t kGCplotESDPPhi = kTRUE;
5ce758b0 331Bool_t kGCplotESDPNTPCClusters = kTRUE;
ebcfaa7e 332Bool_t kGCplotESDPNITSClusters = kTRUE;
5ce758b0 333Bool_t kGCplotESDPNTPCClustersToFP = kTRUE;
19338f3c 334Bool_t kGCplotESDPNTPCClustersToFR = kTRUE;
5ce758b0 335Bool_t kGCplotESDPTPCchi2 = kTRUE;
6c84d371 336
45795c36 337Bool_t kGCplotESDConvGammaEnergy = kFALSE;
6c84d371 338Bool_t kGCplotESDConvGammaPt = kTRUE;
339Bool_t kGCplotESDConvGammaEta = kTRUE;
340Bool_t kGCplotESDConvGammaPhi = kTRUE;
341Bool_t kGCplotESDConvGammaMass = kTRUE;
342Bool_t kGCplotESDConvGammaWidth = kTRUE;
343Bool_t kGCplotESDConvGammaChi2 = kTRUE;
344Bool_t kGCplotESDConvGammaNDF = kTRUE;
345Bool_t kGCplotESDConvGammaRapid = kTRUE;
346Bool_t kGCplotESDConvGammaPtvsEta = kTRUE;
347Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE;
348Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE;
349
9640a3d1 350
037dc2db 351Bool_t kGCplotESDTrueDalitzContaminationR = kTRUE;
64f4118c 352Bool_t kGCplotESDTruePi0DalitzContaminationR = kTRUE;
353Bool_t kGCplotESDTrueEtaDalitzContaminationR = kTRUE;
354Bool_t kGCplotESDTrueCombinatorialContaminationR = kTRUE;
355Bool_t kGCplotESDTrueCombinatorialElecContaminationR = kTRUE;
dcdc851f 356Bool_t kGCplotESDTrueHadronicContaminationR = kTRUE;
357Bool_t kGCplotESDTrueCombinatorialContaminationPt = kTRUE;
358Bool_t kGCplotESDTrueCombinatorialElecContaminationPt = kTRUE;
359Bool_t kGCplotESDTrueHadronicContaminationPt = kTRUE;
64f4118c 360
f3026589 361
362Bool_t kGCplotESDTrueBackground = kTRUE;
45795c36 363Bool_t kGCplotESDTrueConvGammaEnergy = kFALSE;
6c84d371 364Bool_t kGCplotESDTrueConvGammaPt = kTRUE;
365Bool_t kGCplotESDTrueConvGammaEta = kTRUE;
366Bool_t kGCplotESDTrueConvGammaPhi = kTRUE;
367Bool_t kGCplotESDTrueConvGammaMass = kTRUE;
368Bool_t kGCplotESDTrueConvGammaWidth = kTRUE;
369Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE;
370Bool_t kGCplotESDTrueConvGammaNDF = kTRUE;
371Bool_t kGCplotESDTrueConvGammaRapid = kTRUE;
372Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE;
373Bool_t kGCplotESDTrueConversionR = kTRUE;
45795c36 374Bool_t kGCplotESDTrueConversionZR = kFALSE;
375Bool_t kGCplotESDTrueConversionXY = kFALSE;
6c84d371 376Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE;
9640a3d1 377Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE;
378Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE;
379Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE;
380Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE;
381Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE;
382Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE;
383Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE;
384Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE;
70ef88b5 385Bool_t kGCplotESDTrueConvGammaQtAlfa = kTRUE;
9640a3d1 386
6c84d371 387Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE;
388Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE;
389Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE;
45795c36 390Bool_t kGCplotESDTrueConversionMCZR = kFALSE;
391Bool_t kGCplotESDTrueConversionMCXY = kFALSE;
6c84d371 392
f3026589 393Bool_t kGCplotESDNoCutAllV0Pt = kTRUE;
45795c36 394Bool_t kGCplotESDNoCutConvGammaEnergy = kFALSE;
6c84d371 395Bool_t kGCplotESDNoCutConvGammaPt = kTRUE;
396Bool_t kGCplotESDNoCutConvGammaEta = kTRUE;
397Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE;
398Bool_t kGCplotESDNoCutConvGammaMass = kTRUE;
399Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE;
400Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE;
401Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE;
402Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE;
403Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE;
404Bool_t kGCplotESDNoCutConversionR = kTRUE;
45795c36 405Bool_t kGCplotESDNoCutConversionZR = kFALSE;
406Bool_t kGCplotESDNoCutConversionXY = kFALSE;
6c84d371 407Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE;
9640a3d1 408Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE;
409Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE;
410Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE;
411Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE;
412
413Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE;
414Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE;
415Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE;
416Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE;
6c84d371 417Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE;
418Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE;
419Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE;
45795c36 420Bool_t kGCplotESDNoCutConversionMCZR = kFALSE;
421Bool_t kGCplotESDNoCutConversionMCXY = kFALSE;
6c84d371 422
70ef88b5 423Bool_t kGCplotESDMotherChi2 = kTRUE;
6c84d371 424Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE;
45795c36 425Bool_t kGCplotESDMotherEnergy = kFALSE;
426Bool_t kGCplotESDMotherPt = kFALSE;
6c84d371 427Bool_t kGCplotESDMotherEta = kTRUE;
45795c36 428Bool_t kGCplotESDMotherPhi = kFALSE;
429Bool_t kGCplotESDMotherMass = kFALSE;
430Bool_t kGCplotESDMotherR = kFALSE;
d5f99c2b 431Bool_t kGCplotESDMotherZR = kFALSE;
432Bool_t kGCplotESDMotherXY = kFALSE;
6c84d371 433Bool_t kGCplotESDMotherRapid = kTRUE;
434
435Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE;
45795c36 436Bool_t kGCplotESDBackgroundEnergy = kFALSE;
437Bool_t kGCplotESDBackgroundPt = kFALSE;
438Bool_t kGCplotESDBackgroundEta = kFALSE;
439Bool_t kGCplotESDBackgroundPhi = kFALSE;
440Bool_t kGCplotESDBackgroundMass = kFALSE;
441Bool_t kGCplotESDBackgroundR = kFALSE;
d5f99c2b 442Bool_t kGCplotESDBackgroundZR = kFALSE;
443Bool_t kGCplotESDBackgroundXY = kFALSE;
45795c36 444Bool_t kGCplotESDBackgroundRapid = kFALSE;
6c84d371 445
a0b94e5c 446Bool_t kGCplotMapping = kTRUE;
6c84d371 447
448Bool_t kGCplotResolutiondPt = kTRUE;
449Bool_t kGCplotResolutiondR = kTRUE;
450Bool_t kGCplotResolutiondZ = kTRUE;
451
037dc2db 452Bool_t kGCplotResolutiondRAbs = kTRUE;
453Bool_t kGCplotResolutiondZAbs = kTRUE;
454Bool_t kGCplotResolutiondPhiAbs = kTRUE;
455
ca6d4600 456Bool_t kGCplotResolutiondRdPt = kTRUE;
6c84d371 457
458Bool_t kGCplotResolutionMCPt = kTRUE;
459Bool_t kGCplotResolutionMCR = kTRUE;
460Bool_t kGCplotResolutionMCZ = kTRUE;
461
462Bool_t kGCplotResolutionESDPt = kTRUE;
463Bool_t kGCplotResolutionESDR = kTRUE;
464Bool_t kGCplotResolutionESDZ = kTRUE;
465
48682642 466Bool_t kGCplotResolutionPtdPt = kTRUE;
467
6c84d371 468Bool_t kGCplotESDNumberOfV0s = kTRUE;
469Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE;
b5832f95 470Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE;
037dc2db 471Bool_t kGCplotESDNumberOfGoodESDTracks = kTRUE;
a19c3402 472
6c3a327c 473// debug histograms
6c84d371 474Bool_t kGCplotESDCutGetOnFly = kTRUE;
475Bool_t kGCplotESDCutNContributors = kTRUE;
476Bool_t kGCplotESDCutLikeSign = kTRUE;
477Bool_t kGCplotESDCutRefit = kTRUE;
478Bool_t kGCplotESDCutKink = kTRUE;
479Bool_t kGCplotESDCutPIDProb = kTRUE;
9640a3d1 480Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE;
481Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE;
9c1cb6f7 482Bool_t kGCplotESDCutPionRejectionLowP =kTRUE;
483Bool_t kGCplotESDCutProtonRejectionLowP=kTRUE;
484Bool_t kGCplotESDCutKaonRejectionLowP =kTRUE;
70ef88b5 485Bool_t kGCplotESDCutQtGammaSelection=kTRUE;
6c84d371 486Bool_t kGCplotESDCutR = kTRUE;
4f07ce38 487Bool_t kGCplotESDCutMinR = kTRUE;
6c84d371 488Bool_t kGCplotESDCutLine = kTRUE;
ebcfaa7e 489Bool_t kGCplotESDCutZ = kTRUE;
48682642 490Bool_t kGCplotESDCutMinClsTPC = kTRUE;
4f07ce38 491Bool_t kGCplotESDCutMinClsTPCToF = kTRUE;
9640a3d1 492Bool_t kGCplotESDGoodV0s = kTRUE;
ebcfaa7e 493Bool_t kGCplotESDAllV0s = kTRUE;
494Bool_t kGCplotESDAllV0sCurrentFinder = kTRUE;
48682642 495Bool_t kGCplotESDAllV0sCurrentFinderQtAlfa = kTRUE;
496
6c84d371 497Bool_t kGCplotESDCutNDF = kTRUE;
498Bool_t kGCplotESDCutChi2 = kTRUE;
499Bool_t kGCplotESDCutEta = kTRUE;
500Bool_t kGCplotESDCutPt = kTRUE;
9c1cb6f7 501Bool_t kGCplotESDCutSinglePt = kTRUE;
d5f99c2b 502Bool_t kGCplotESDTrueConvGammaTrackLength =kFALSE;
503Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kFALSE;
6c84d371 504
505Bool_t kGCplotPi0Spectra = kTRUE;
506Bool_t kGCplotEtaSpectra = kTRUE;
48682642 507Bool_t kGCplotOmegaSpectra = kTRUE;
a19c3402 508
00a6a31a 509/////////////Chi_c Analysis//////////////////////////
6c84d371 510Bool_t kGCplotStatsElectrons = kTRUE;
511Bool_t kGCplotRecENegJPsiPtDiff = kTRUE;
512Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE;
513Bool_t kGCplotRecEPosENegR = kTRUE;
514Bool_t kGCplotRecEPosENegEta = kTRUE;
515Bool_t kGCplotESDInvMassePluseMinus = kTRUE;
516Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE;
517Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE;
518Bool_t kGCplotESDElectronPosNegPt = kTRUE;
519Bool_t kGCplotESDElectronPosNegEta = kTRUE;
520Bool_t kGCplotESDElectronPosNegAngle = kTRUE;
521Bool_t kGCplotMCElectronPosNegPt = kTRUE;
522Bool_t kGCplotMCElectronPosNegEta = kTRUE;
523Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE;
524Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE;
525Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE;
526Bool_t kGCplotTableElectrons = kTRUE;
527Bool_t kGCplotESDEPosBackground = kTRUE;
528Bool_t kGCplotESDENegBackground = kTRUE;
529Bool_t kGCplotESDEPosENegBackground = kTRUE;
530Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE;
531Bool_t kGCplotESDePoseNegAngle = kTRUE;
532Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE;
533Bool_t kGCplotMCLabels = kTRUE;
00a6a31a 534///////////////////////////////////////////////////////////////////
a19c3402 535
d7d7e825 536//---------------- Gamma Jet analysis ----------------------------
6c84d371 537Bool_t kGCplotdPhiHdrGam = kTRUE;
538Bool_t kGCplotdPhiHdrGamIsolated = kTRUE;
539Bool_t kGCplotMinimumIsoDistance = kTRUE;
540Bool_t kGCplotFFzHdrGam = kTRUE;
541Bool_t kGCplotImbalanceHdrGam = kTRUE;
d7d7e825 542//----------------------------------------------------------------
543
544
a19c3402 545/** ----------------- end define which histograms to plot here -------------------------------*/
546
547
548
549/** ----------- Define the binning for the different plot types here -------------------------*/
f5a9fa20 550// Number of V0s-plot
551Int_t kGCnXBinsNV0 = 1000;
552Double_t kGCfirstXBinNV0 = -0.5;
553Double_t kGClastXBinNV0 = 999.5;
554
555
556// Number of ESD track-Plot
56cadfae 557Int_t kGCnXBinsESDtrk = 10000;
f5a9fa20 558Double_t kGCfirstXBinESDtrk= -0.5;
56cadfae 559Double_t kGClastXBinESDtrk = 9999.5;
f5a9fa20 560
45bc8986 561
562//EventQuality-plot
64f4118c 563Int_t kGCnXBinsEvtQ= 9;
45bc8986 564Double_t kGCfirstXBinEvtQ=-1.5;
64f4118c 565Double_t kGClastXBinEvtQ=7.5;
45bc8986 566
a19c3402 567//R-plots
45795c36 568Int_t kGCnXBinsR = 400;
6c84d371 569Double_t kGCfirstXBinR = 0.;
45795c36 570Double_t kGClastXBinR = 200.;
a19c3402 571
572//ZR-plots
45795c36 573Int_t kGCnXBinsZR = 1000;
574Double_t kGCfirstXBinZR = -250.;
575Double_t kGClastXBinZR = 250.;
576Int_t kGCnYBinsZR = 400;
6c84d371 577Double_t kGCfirstYBinZR = 0.;
45795c36 578Double_t kGClastYBinZR = 200.;
a19c3402 579
580//XY-plots
45795c36 581Int_t kGCnXBinsXY = 800;
582Double_t kGCfirstXBinXY = -200.;
583Double_t kGClastXBinXY = 200.;
584Int_t kGCnYBinsXY = 800;
585Double_t kGCfirstYBinXY = -200.;
586Double_t kGClastYBinXY = 200.;
a19c3402 587
e60f3265 588//XY-plots-BeamPipe
589Int_t kGCnXBinsXYBP = 200;
590Double_t kGCfirstXBinXYBP = -10.;
591Double_t kGClastXBinXYBP = 10.;
592Int_t kGCnYBinsXYBP = 200;
593Double_t kGCfirstYBinXYBP = -10.;
594Double_t kGClastYBinXYBP = 10.;
595
596//Rphi-plots-BeamPipe
597Int_t kGCnXBinsRPhiBP = 200;
598Double_t kGCfirstXBinRPhiBP = -TMath::Pi();
599Double_t kGClastXBinRPhiBP = TMath::Pi();
600Int_t kGCnYBinsRPhiBP = 200;
601Double_t kGCfirstYBinRPhiBP = 0.;
602Double_t kGClastYBinRPhiBP = 10.;
603
604
605
a19c3402 606//OpenAngle-plots
6c84d371 607Int_t kGCnXBinsOpeningAngle = 400;
608Double_t kGCfirstXBinOpeningAngle = 0.;
609Double_t kGClastXBinOpeningAngle = TMath::Pi();
a19c3402 610
9640a3d1 611//CosPointingAngle-plots
612Int_t kGCnXBinsCosPointingAngle = 400;
613Double_t kGCfirstXBinCosPointingAngle = 0.99;
614Double_t kGClastXBinCosPointingAngle = 1.01;
615
616//DCA Daugthers-plots
617Int_t kGCnXBinsDcaDaughters = 400;
618Double_t kGCfirstXBinDcaDaughters= 0.;
619Double_t kGClastXBinDcaDaughters = 5.;
620
621//Norm DCA dist Daugthers-plots
622Int_t kGCnXBinsNormDcaDistDaughters = 400;
623Double_t kGCfirstXBinNormDcaDistDaughters= 0.;
624Double_t kGClastXBinNormDcaDistDaughters = 10.;
625
626//LikelihoodAP Plots
627Int_t kGCnXBinsLikelihoodAP = 400;
628Double_t kGCfirstXBinLikelihoodAP= 0.;
629Double_t kGClastXBinLikelihoodAP = 2.;
630
631
a19c3402 632//Energy-plots
6c84d371 633Int_t kGCnXBinsEnergy = 200;
634Double_t kGCfirstXBinEnergy = 0.;
635Double_t kGClastXBinEnergy = 50.;
a19c3402 636
9640a3d1 637//P-plots
638Int_t kGCnXBinsP = 200;
9c1cb6f7 639Double_t kGCfirstXBinP = 0.05;
9640a3d1 640Double_t kGClastXBinP = 50.;
641
642//dEdx-plots
45795c36 643Int_t kGCnYBinsdEdx = 200;
9640a3d1 644Double_t kGCfirstYBindEdx = 0.;
45795c36 645Double_t kGClastYBindEdx = 200.;
9640a3d1 646
9c1cb6f7 647//EProb-plots
648Int_t kGCnYBinsEProb = 200;
649Double_t kGCfirstYBinEProb = 0.;
650Double_t kGClastYBinEProb = 1.;
651
48682642 652//Qt-plots
45795c36 653Int_t kGCnYBinsQt = 250;
48682642 654Double_t kGCfirstYBinQt = 0.;
45795c36 655Double_t kGClastYBinQt = 0.25;
48682642 656
657
658
9640a3d1 659//Asymmetry-plots
660Int_t kGCnYBinsAsymmetry = 200;
661Double_t kGCfirstYBinAsymmetry = 0.;
662Double_t kGClastYBinAsymmetry = 1.;
663
664
a19c3402 665//Pt-plots
26923b22 666Int_t kGCnXBinsPt = 500;
6c84d371 667Double_t kGCfirstXBinPt = 0.;
668Double_t kGClastXBinPt = 50.;
a19c3402 669
670//Eta-plots
6c84d371 671Int_t kGCnXBinsEta = 40;
672Double_t kGCfirstXBinEta = -2.;
673Double_t kGClastXBinEta = 2.;
a19c3402 674
32a6d407 675//Rapidity
6c84d371 676Int_t kGCnXBinsRapid = 200;
677Double_t kGCfirstXBinRapid = -10.;
678Double_t kGClastXBinRapid = 10.;
32a6d407 679
a19c3402 680//Phi-plots
6c84d371 681Int_t kGCnXBinsPhi = 72;
682Double_t kGCfirstXBinPhi = -TMath::Pi();
683Double_t kGClastXBinPhi = TMath::Pi();
a19c3402 684
ebcfaa7e 685//nTPCCluster-plots
f5f99b3d 686Int_t kGCnXBinsNTPCClusters = 201;
687Double_t kGCfirstXBinNTPCClusters = -0.5;
688Double_t kGClastXBinNTPCClusters = 200.5;
ebcfaa7e 689
690//nITSCluster-plots
f5f99b3d 691Int_t kGCnXBinsNITSClusters = 7;
692Double_t kGCfirstXBinNITSClusters = -0.5;
693Double_t kGClastXBinNITSClusters = 6.5;
ebcfaa7e 694
5ce758b0 695//TPCcluster to Findable-plots
86e91247 696Int_t kGCnYBinsClsToF = 200;
5ce758b0 697Double_t kGCfirstYBinClsToF = 0.;
86e91247 698Double_t kGClastYBinClsToF = 2.0;
5ce758b0 699
700//TPCchi2 -plots
701Int_t kGCnXBinsTPCchi2 = 100;
702Double_t kGCfirstXBinTPCchi2 = 0.;
703Double_t kGClastXBinTPCchi2 = 10;
ebcfaa7e 704
705
a19c3402 706//Mapping-plots
f5f99b3d 707Int_t kGCnXBinsMapping = 800;
6c84d371 708Double_t kGCfirstXBinMapping = -100.;
709Double_t kGClastXBinMapping = 100.;
710Int_t kGCnYBinsMapping = 40;
711Double_t kGCfirstYBinMapping = -2;
712Double_t kGClastYBinMapping = 2;
a19c3402 713
714//ResolutionPlots
715//RESdPt
9c1cb6f7 716Int_t kGCnXBinsResdPt=500;
6c84d371 717Int_t kGCfirstXBinResdPt= 0;
f5f99b3d 718Int_t kGClastXBinResdPt=100;
9c1cb6f7 719Int_t kGCnYBinsResdPt=200;
ca6d4600 720Int_t kGCfirstYBinResdPt= -10;
721Int_t kGClastYBinResdPt=10;
a19c3402 722
723//RESdR
9c1cb6f7 724Int_t kGCnXBinsResdR=400;
6c84d371 725Int_t kGCfirstXBinResdR= 0;
9c1cb6f7 726Int_t kGClastXBinResdR=200;
6c84d371 727Int_t kGCnYBinsResdR=100;
728Int_t kGCfirstYBinResdR= -25;
729Int_t kGClastYBinResdR=25;
a19c3402 730
731//RESdZ
6c84d371 732Int_t kGCnXBinsResdZ=80;
733Int_t kGCfirstXBinResdZ= -20;
734Int_t kGClastXBinResdZ=20;
735Int_t kGCnYBinsResdZ=80;
736Int_t kGCfirstYBinResdZ= -20;
737Int_t kGClastYBinResdZ=20;
a19c3402 738
739//RESdRdPt
ca6d4600 740Int_t kGCnYBinsResdRdPt=400;
741Int_t kGCfirstYBinResdRdPt= -10;
742Int_t kGClastYBinResdRdPt=10;
a19c3402 743
a19c3402 744//RESMCPt
ca6d4600 745Int_t kGCnXBinsResPt=500;
6c84d371 746Int_t kGCfirstXBinResPt= 0;
f5f99b3d 747Int_t kGClastXBinResPt=100;
a19c3402 748
749//RESMCR
6c84d371 750Int_t kGCnXBinsResR=500;
751Int_t kGCfirstXBinResR= 0;
752Int_t kGClastXBinResR=250;
a19c3402 753
754//RESMCZ
6c84d371 755Int_t kGCnXBinsResZ=500;
756Int_t kGCfirstXBinResZ= 0;
757Int_t kGClastXBinResZ=250;
a19c3402 758
759//GammaMass-plots
6c84d371 760Int_t kGCnXBinsGammaMass = 4000;
761Double_t kGCfirstXBinGammaMass = 0.;
762Double_t kGClastXBinGammaMass = 1.;
a19c3402 763
764//Pi0Mass-plots
f5f99b3d 765Int_t kGCnXBinsPi0Mass = 1000;
6c84d371 766Double_t kGCfirstXBinPi0Mass = 0.;
767Double_t kGClastXBinPi0Mass = 1.;
9c1cb6f7 768Double_t kGCfirstXBinPi0Alpha = 0.;
48682642 769Double_t kGClastXBinPi0Alpha = 1.;
770
a19c3402 771
772//EtaMass-plots
f5f99b3d 773Int_t kGCnXBinsEtaMass = 1000;
6c84d371 774Double_t kGCfirstXBinEtaMass = 0.;
775Double_t kGClastXBinEtaMass = 1.;
a19c3402 776
777//GammaWidth-plots
6c84d371 778Int_t kGCnXBinsGammaWidth = 100;
779Double_t kGCfirstXBinGammaWidth = 0.;
780Double_t kGClastXBinGammaWidth = 1.;
a19c3402 781
782//GammaChi2-plots
10e3319b 783Int_t kGCnXBinsMesonChi2 = 200;
6c84d371 784Int_t kGCnXBinsGammaChi2 = 100;
785Double_t kGCfirstXBinGammaChi2 = 0;
ebcfaa7e 786Double_t kGClastXBinGammaChi2 = 200.;
a19c3402 787
788//GammaNDF-plots
6c84d371 789Int_t kGCnXBinsGammaNDF = 10;
790Double_t kGCfirstXBinGammaNDF = 0.;
791Double_t kGClastXBinGammaNDF = 10.;
a19c3402 792
793//Spectra-plots
5ce758b0 794Int_t kGCnXBinsSpectra = 500;
6c84d371 795Double_t kGCfirstXBinSpectra = 0.;
796Double_t kGClastXBinSpectra = 1.;
1ebf7aa6 797Int_t kGCnYBinsSpectra = 250;
6c84d371 798Double_t kGCfirstYBinSpectra = 0.;
1ebf7aa6 799Double_t kGClastYBinSpectra = 25.;
32a6d407 800
9c1cb6f7 801Double_t kGCfirstXBinAlphaG = -1.;
802Double_t kGCfirstXBinAlpha = 0.;
48682642 803Double_t kGClastXBinAlpha = 1.;
804
32a6d407 805//track length plots
6c84d371 806Int_t kGCnXBinsTrackLength = 1000;
807Double_t kGCfirstXBinTrackLength = 0;
808Double_t kGClastXBinTrackLength = 500;
a19c3402 809
eb35cbb5 810/////////Pi0 Dalitz decay AnalysisTask ///////////////////////////////////
811
812Int_t kGCnXBinsDalitzMass = 4000;
813Double_t kGCfirstXBinDalitzMass = 0.;
814Double_t kGClastXBinDalitzMass = 4.;
815
816Int_t kGCnXBinsPi0DalitzMass = 4000;
817Double_t kGCfirstXBinPi0DalitzMass = 0.;
818Double_t kGClastXBinPi0DalitzMass = 4.;
819
00a6a31a 820/////////Chic_Analysis///////////////////////////////////
6c84d371 821Int_t kGCnXBinsEPt = 1000;
822Double_t kGCfirstXBinEPt = 0.;
823Double_t kGClastXBinJPsiPt = 10;
00a6a31a 824
6c84d371 825Int_t kGCnXBinsJPsiMass = 1000;
826Double_t kGCfirstXBinJPsiMass = 0.;
827Double_t kGClastXBinJPsiMass = 10.;
00a6a31a 828
6c84d371 829Int_t kGCnXBinsChicMass = 1000;
830Double_t kGCfirstXBinChicMass = 0.;
831Double_t kGClastXBinChicMass = 10.;
00a6a31a 832
6c84d371 833Int_t kGCnXBinsPi0Mass = 1000;
834Double_t kGCfirstXBinPi0Mass = 0.;
835Double_t kGClastXBinPi0Mass = 1.;
00a6a31a 836
6c84d371 837Int_t kGCnXBinsEPosNegPt = 1000;
838Double_t kGCfirstXBinEPosNegPt = 0.;
839Double_t kGClastXBinEPosNegPt = 10.;
00a6a31a 840
6c84d371 841Int_t kGCnXBinsEPosNegEta = 200;
842Double_t kGCfirstXBinEPosNegEta = -1.2;
843Double_t kGClastXBinEPosNegEta = 1.2;
00a6a31a 844
6c84d371 845Int_t kGCnXBinsEPosNegAngle = 200;
846Double_t kGCfirstXBinEPosNegAngle = 0.;
847Double_t kGClastXBinEPosNegAngle = TMath::Pi();
00a6a31a 848
6c84d371 849Int_t kGCnXBinsEBackground = 1000;
850Double_t kGCfirstXBinEBackground = 0.;
851Double_t kGClastXBinEBackground = 10.;
00a6a31a 852
6c84d371 853Int_t kGCnXBinsEBackgroundCut = 100;
854Double_t kGCfirstXBinEBackgroundCut = 0.;
855Double_t kGClastXBinEBackgroundCut = 0.015.;
00a6a31a 856
6c84d371 857Int_t kGCnXBinsMCLabels = 10;
858Double_t kGCfirstXBinMCLabels = 0.;
859Double_t kGClastXBinMCLabels = 10.;
00a6a31a 860
6c84d371 861Int_t kGCnElementsElectronTable = 19;
00a6a31a 862
863//18 elements
6c84d371 864const char * kGCelectronTable[] = {
00a6a31a 865 "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",
866 "ESDtracks", "Kink Cut",
867 "Vertex Cut","TRDOut","TRDrefit","TPCrefit",
868 "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi",
869 "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2"
00a6a31a 870};
871
d7d7e825 872
873// for Gamma Jet analysis
6c84d371 874Int_t kGCnXBinsdphiHdrGam = 100;
875Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2();
876Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2();
d7d7e825 877
6c84d371 878Int_t kGCnXBinsMinimumIsoDistance = 100;
879Double_t kGCfirstXBinMinimumIsoDistance = 0.;
880Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2();
d7d7e825 881
6c84d371 882Int_t kGCnXBinsFFzHdrGam = 100;
883Double_t kGCfirstXBinFFzHdrGam = 0.;
884Double_t kGClastXBinFFzHdrGam = 5;
d7d7e825 885
6c84d371 886Int_t kGCnXBinsImbalanceHdrGam = 100;
887Double_t kGCfirstXBinImbalanceHdrGam = -5.;
888Double_t kGClastXBinImbalanceHdrGam = 5.;
00a6a31a 889////////////////////////////////////////////////////////
890
891
a19c3402 892/** ---------- end Define the binning for the different plot types here ----------------------*/
893
894
a19c3402 895/************************************************************************************************
896 * *
897 * *
898 * EVERYTHING BELOW IS FOR DEVELOPERS ONLY *
899 * *
900 * *
901 ************************************************************************************************/
6c84d371 902TString kGCoutputFileName = "histogramsGammaConversion";
903TString kGCoutputFileAppendix = "";
904TString kGCdataList = "";
905Bool_t kGCwriteNtuple = kFALSE;
906// WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW
907Bool_t kGCusePWG4PartCorr = kTRUE;
d7d7e825 908
909/** Flag to enable running on train */
6c84d371 910Bool_t kGCrunOnTrain = kFALSE;
98de7903 911Bool_t kGCrunOnGsiTrain = kFALSE;
d7d7e825 912
913/** ------------------------------ Monte Carlo flag -----------------------------------------*/
6c84d371 914Bool_t kGCdoMCTruth = kTRUE;
d7d7e825 915/** ---------------------------- end Monte Carlo flag ---------------------------------------*/
916
b5832f95 917/** ------------------------------ Selecting trigger CINT1B -----------------------------------*/
918Bool_t kGCtriggerCINT1B = kFALSE;
919/** ---------------------------- end Monte Carlo flag ---------------------------------------*/
920
d7d7e825 921/** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/
6c84d371 922Bool_t kGCuseKFParticle = kTRUE;
923Bool_t kGCuseESDTrack = kFALSE;
d7d7e825 924/** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/
925
9640a3d1 926/**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/
927Bool_t kGCdodEdxSigmaCut= kTRUE;
928/**------------------------------end Flag to apply NsigmadEdx cut ----------*/
9c1cb6f7 929
037dc2db 930Double_t kGCPIDnSigmaAboveElectronLine=5;
48682642 931Double_t kGCPIDnSigmaBelowElectronLine=-3;
9640a3d1 932Double_t kGCPIDnSigmaAbovePionLine=0;
10e3319b 933Double_t kGCPIDMinPnSigmaAbovePionLine=1.;
934Double_t kGCPIDMaxPnSigmaAbovePionLine=3.;
9640a3d1 935
9c1cb6f7 936/**------- Flag to apply rejection at LowP of Kaons, protons , pions------------*/
937Bool_t kGCdoPionRejectionLowP=kTRUE;
938Bool_t kGCdoKaonRejectionLowP=kTRUE;
939Bool_t kGCdoProtonRejectionLowP=kTRUE;
940/**---------------------------------------*/
941
942Double_t kGCPIDnSigmaAtLowPAroundKaonLine=0;
943Double_t kGCPIDnSigmaAtLowPAroundProtonLine=0;
944Double_t kGCPIDnSigmaAtLowPAroundPionLine=0;
945
946Double_t kGCPIDMinPKaonRejectionLowP=1.5;
947Double_t kGCPIDMinPProtonRejectionLowP=2.;
948Double_t kGCPIDMinPPionRejectionLowP=0.5;
d7d7e825 949
6c3a327c 950
70ef88b5 951Bool_t kGCdoQtGammaSelection=kTRUE;
952Double_t kGCQtMax=100.;
953
954
955
6c3a327c 956Bool_t scanArguments(TString arguments){
037dc2db 957
6c3a327c 958 Bool_t iResult = kTRUE;
32a6d407 959
6c3a327c 960 TString allArgs=arguments;
961 TString argument;
962 int bMissingParam=0;
037dc2db 963
964 cout<<"Arguments received: "<<allArgs.Data()<<endl;
32a6d407 965
6c3a327c 966 TObjArray* pTokens=allArgs.Tokenize(" ");
967 if (pTokens) {
32a6d407 968
6c3a327c 969 for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) {
970 argument=((TObjString*)pTokens->At(i))->GetString();
32a6d407 971
6c3a327c 972 if(argument.IsNull()) continue;
973 // -- deconvolute-time option
974 if(argument.CompareTo("-data-list") == 0){
975 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
6c84d371 976 kGCdataList = ((TObjString*)pTokens->At(i))->GetString();
977 if(kGCdataList.IsNull()){
6c3a327c 978 cout<<"-data-list is NULL"<<endl;
979 iResult=kFALSE;
980 }
981 else{
6c84d371 982 cout<<"Data list is set to: "<<kGCdataList<<endl;
6c3a327c 983 }
984 }
985 else if(argument.CompareTo("-output-file-name") == 0){
986 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
6c84d371 987 kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString();
988 if(kGCoutputFileName.IsNull()){
6c3a327c 989 cout<<"-output-file-name is NULL"<<endl;
990 iResult=kFALSE;
991 }
992 else{
6c84d371 993 cout<<"Setting output file name to: "<<kGCoutputFileName<<endl;
6c3a327c 994 }
995 }
5e55d806 996 else if (argument.CompareTo("-bg-off") == 0){
997 kGCcalculateBackground =kFALSE;
998 }
111d75df 999 else if (argument.CompareTo("-bg-prob-off") == 0){
c1237864 1000 kGCdoBGProbability = kFALSE;
111d75df 1001 }
74b5b459 1002 else if (argument.CompareTo("-bg-prob-on") == 0){
c1237864 1003 kGCdoBGProbability = kTRUE;
74b5b459 1004 }
111d75df 1005 else if (argument.CompareTo("-bg-rotation-off") == 0){
1006 kGCUseRotationMethodInBG = kFALSE;
1007 }
5ce758b0 1008 else if (argument.CompareTo("-use-v0-multiplicity") == 0){
1009 kGCUseTrackMultiplicityForBG = kFALSE;
1010 }
2e2da371 1011 else if (argument.CompareTo("-apply-chi2-cut") == 0){
1012 kGCApplyChi2Cut = kTRUE;
1013 }
111d75df 1014 else if(argument.CompareTo("-set-number-of-rotations") == 0){
1015 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1016 kGCnumberOfRotationEventsForBG = ((TObjString*)pTokens->At(i))->GetString().Atoi();
1017 }
1018 else if(argument.CompareTo("-set-number-of-degrees") == 0){
1019 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1020 kGCnDegreeRotationPMForBG = ((TObjString*)pTokens->At(i))->GetString().Atoi();
1021 }
2e2da371 1022 else if (argument.CompareTo("-low-memory") == 0){
1023 kGCLowMemoryConsumption = kTRUE;
1024 }
5ce758b0 1025 else if (argument.CompareTo("-move-bg-vertex") == 0){
1026 kGCMoveParticlesAccordingToVertex = kTRUE;
1027 }
037dc2db 1028 else if (argument.CompareTo("-check-neutralmeson-pi0s") == 0){
1029 kGCdoNeutralMesonV0MCCheck=kTRUE;
1030 }
77880bd8 1031 else if (argument.CompareTo("-use-offline-finder") == 0){
1032 kGCUseOnFlyV0Finder = kFALSE;
1033 }
6c3a327c 1034 else if (argument.CompareTo("-write-ntuple") == 0){
1035 cout<<"Writing ntuple to file."<<endl;
6c84d371 1036 kGCwriteNtuple = kTRUE;
6c3a327c 1037 }
d7d7e825 1038 else if (argument.CompareTo("-run-on-train") == 0){
1039 cout<<"Running on train"<<endl;
332f1f44 1040 //kGCWriteStandardAOD=kTRUE;
fea0b26e 1041 kGCDeltaAODFilename="";
7c19d7d7 1042 kGCrunOnTrain = kTRUE;
1043 }
1044 else if (argument.CompareTo("-run-on-gsi-train") == 0){
1045 cout<<"Running on gsi train"<<endl;
332f1f44 1046 //kGCWriteStandardAOD=kFALSE;
6c84d371 1047 kGCrunOnTrain = kTRUE;
98de7903 1048 kGCrunOnGsiTrain = kTRUE;
d7d7e825 1049 }
1050 else if (argument.CompareTo("-run-jet") == 0){
1051 cout<<"Running jet analysis"<<endl;
6c84d371 1052 kGCrunJet = kTRUE;
d7d7e825 1053 }
332f1f44 1054 else if (argument.CompareTo("-run-gamma-jet-task") == 0){
1055 cout<<"Running gamma jet task"<<endl;
1056 kGCRunGammaJetTask= kTRUE;
1057 }
d7d7e825 1058 else if (argument.CompareTo("-run-neutralmeson") == 0){
1059 cout<<"Running neutral meson analysis"<<endl;
6c84d371 1060 kGCrunNeutralMeson = kTRUE;
d7d7e825 1061 }
1062 else if (argument.CompareTo("-run-neutral-meson") == 0){
1063 cout<<"Running neutral meson analysis"<<endl;
6c84d371 1064 kGCrunNeutralMeson = kTRUE;
d7d7e825 1065 }
45795c36 1066 else if (argument.CompareTo("-run-omega-meson") == 0){
1067 cout<<"Running omega meson analysis"<<endl;
1068 kGCrunOmegaMeson = kTRUE;
1069 }
d7d7e825 1070 else if (argument.CompareTo("-run-chic") == 0){
1071 cout<<"Running Chi_c analysis"<<endl;
6c84d371 1072 kGCrunChic = kTRUE;
d7d7e825 1073 }
eb35cbb5 1074 else if (argument.CompareTo("-run-dalitz") == 0){
1075 cout<<"Running Dalitz analysis"<<endl;
1076 kGCrunDalitz = kTRUE;
1077 }
1e7846f4 1078 else if (argument.CompareTo("-run-cf") == 0){
1079 cout<<"Running CF"<<endl;
1080 kGCrunCF = kTRUE;
1081 }
ca6d4600 1082 else if (argument.CompareTo("-run-resolution") == 0){
1083 cout<<"Running Resolution"<<endl;
1084 kGCrunRES = kTRUE;
1085 }
9c1cb6f7 1086 else if (argument.CompareTo("-run-recalculateV0") == 0){
1087 cout<<"Running RecalculateV0ForGamma"<<endl;
1088 kGCRecalculateV0ForGamma=kTRUE;
1089 }
d7d7e825 1090 else if (argument.CompareTo("-jet-off") == 0){
1091 cout<<"Skipping jet analysis"<<endl;
6c84d371 1092 kGCrunJet = kFALSE;
d7d7e825 1093 }
1094 else if (argument.CompareTo("-neutralmeson-off") == 0){
1095 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 1096 kGCrunNeutralMeson = kFALSE;
d7d7e825 1097 }
1098 else if (argument.CompareTo("-neutral-meson-off") == 0){
1099 cout<<"Skipping neutral meson analysis"<<endl;
6c84d371 1100 kGCrunNeutralMeson = kFALSE;
d7d7e825 1101 }
1102 else if (argument.CompareTo("-chic-off") == 0){
1103 cout<<"Skipping Chi_c analysis"<<endl;
6c84d371 1104 kGCrunChic = kFALSE;
d7d7e825 1105 }
1106 else if (argument.CompareTo("-mc-off") == 0){
6c84d371 1107 cout<<"Switching off kGCdoMCTruth"<<endl;
1108 kGCdoMCTruth = kFALSE;
d7d7e825 1109 }
b5832f95 1110 else if (argument.CompareTo("-trigger-CINT1B") == 0){
1111 cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl;
1112 kGCtriggerCINT1B = kTRUE;
1113 }
a0b94e5c 1114 else if (argument.CompareTo("-use-own-xyz") == 0){
1115 cout<<"Switching on use own xyz calculation"<<endl;
1116 kGCdoOwnXYZCalculation = kTRUE;
1117 }
5ce758b0 1118 else if (argument.CompareTo("-use-ConstructGamma") == 0){
1119 cout<<"Switching on use ConstructGamma and OFF own xyz calculation"<<endl;
1120 kGCdoOwnXYZCalculation = kFALSE;
1121 kGCdoConstructGamma = kTRUE;
1122 }
332f1f44 1123 else if (argument.CompareTo("-no-aod") == 0){
1124 cout<<"Turning off AOD"<<endl;
1125 kGCWriteAOD = kFALSE;
1126 }
d765d400 1127 else if (argument.CompareTo("-force-aod") == 0){
1128 cout<<"Turning on FillAOD = kTRUE every event; If running in common train this should probably not be done!!!"<<endl;
1129 kGCForceAOD = kTRUE;
1130 }
332f1f44 1131 else if (argument.CompareTo("-standard-aod") == 0){
1132 cout<<"Writing to standard AOD, will only work on train"<<endl;
1133 kGCDeltaAODFilename = "";
1134 }
6c3a327c 1135 else if(argument.CompareTo("-append-to-output-file") == 0){
1136 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
a0b94e5c 1137 kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString();
6c84d371 1138 if(kGCoutputFileAppendix.IsNull()){
6c3a327c 1139 cout<<"-appending-to-output-file is NULL"<<endl;
1140 iResult=kFALSE;
1141 }
1142 else{
6c84d371 1143 cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl;
6c3a327c 1144 }
1145 }
48682642 1146 else if(argument.CompareTo("-set-cut-selection") == 0){
1147 if((bMissingParam=(++i>=pTokens->GetEntries()))) break;
1148 kGCAnalysisCutSelectionId = ((TObjString*)pTokens->At(i))->GetString();
1149 cout<<"The analysis cut selection is set to: "<<kGCAnalysisCutSelectionId.Data()<<endl;
1150 }
6c3a327c 1151 }
6c3a327c 1152 delete pTokens;
1153 }
1154 if (bMissingParam) {
1155 cout<<"Missing parameter for argument "<< argument.Data()<<endl;
1156 iResult=kFALSE;
1157 }
1158 return iResult;
1159}
1160
d7d7e825 1161void SetVersionLibrary(){
1162 // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists.
6c84d371 1163 // If yes, we set kGCusePWG4PartCorr to false since we have a newer version
1164 // If no, kGCusePWG4PartCorr is true.
a0b94e5c 1165
d7d7e825 1166 TString file = gSystem->Getenv("ALICE_ROOT");
1167 file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx";
a0b94e5c 1168
d7d7e825 1169 ifstream stream;
1170 stream.open(file.Data());
a0b94e5c 1171
d7d7e825 1172 if(!stream){
6c84d371 1173 kGCusePWG4PartCorr=kFALSE;
d7d7e825 1174 }
1175 else{
6c84d371 1176 kGCusePWG4PartCorr=kTRUE;
d7d7e825 1177 }
1178 stream.close();
1179}
1180
1181
332f1f44 1182AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments, AliAnalysisDataContainer *cin_esd=NULL){
d7d7e825 1183
48682642 1184
32a6d407 1185
037dc2db 1186
6c3a327c 1187 if(!scanArguments(arguments)){
1188 break;
1189 }
037dc2db 1190
d7d7e825 1191 SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used
a0b94e5c 1192
6c84d371 1193 if(cin_esd == NULL && kGCrunOnTrain == kTRUE){
1194 cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl;
d7d7e825 1195 cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl;
1196 return;
1197 }
a0b94e5c 1198
6c84d371 1199 if(cin_esd != NULL && kGCrunOnTrain == kFALSE){
1200 cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl;
1201 cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl;
d7d7e825 1202 return;
1203 }
6c84d371 1204 if(kGCrunOnTrain == kFALSE){
1205 if(kGCnumberOfFilesToAnalyze==0){
1206 ifstream dataInStream;
1207 dataInStream.open(kGCdataList.Data());
1208 if ( !dataInStream ){
1209 cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl;
1210 return 0;
6c3a327c 1211 }
6c84d371 1212 string line;
1213 while ( !dataInStream.eof() )
1214 {
1215 getline(dataInStream, line);
1216 if(line.compare("") != 0){//checks if there is an empty line in the data list
1217 kGCnumberOfFilesToAnalyze++;
1218 }
1219 }
1220 }
1221 cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl;
a0b94e5c 1222
d7d7e825 1223 build();//build (if necessary) and load the libraries needed
6441e967 1224 LoadLibraries();
6c84d371 1225 gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro
9640a3d1 1226 }
a0b94e5c 1227
07b54fba 1228 if(!kGCrunOnTrain){
1229 // for the train leave this to the steering macro
9640a3d1 1230 AliLog::SetGlobalDebugLevel(0);
06688fb6 1231 AliLog::SetGlobalLogLevel(AliLog::kFatal);
07b54fba 1232 }
1233 // ------------------------------------------------------------------------
a0b94e5c 1234
1235 // for CF
1236
1237 //Container def.
1238 const Double_t ptmin = kGCfirstXBinPt;
1239 const Double_t ptmax = kGClastXBinPt;
1240 const Double_t etamin = kGCfirstXBinEta;
1241 const Double_t etamax = kGClastXBinEta;
1242 const Double_t massmin = kGCfirstXBinPi0Mass;
1243 const Double_t massmax = kGClastXBinPi0Mass;
1244
1245
1246 // sensitive variables
1247 UInt_t ipt = 0;
1248 UInt_t ieta = 1;
1249 UInt_t imass = 2;
1250
1251 //how many selection steps
48682642 1252 UInt_t nstep = 20;
a0b94e5c 1253 const Int_t nvar = 3;
d5f99c2b 1254
1255 Int_t kGCnXBinsPtCF=40;
1256 Int_t kGCnXBinsEtaCF=8;
1257 Int_t kGCnXBinsPi0MassCF=10;
1258
1259 if(!kGCrunCF){
45795c36 1260 nstep=1;
1261 kGCnXBinsPtCF=1;
1262 kGCnXBinsEtaCF=1;
1263 kGCnXBinsPi0MassCF=1;
d5f99c2b 1264 }
1265 const Int_t nbin0 = kGCnXBinsPtCF; // do not use same variable for CF than for histogram
1266 const Int_t nbin1 = kGCnXBinsEtaCF; // do not use same variable for CF than for histogram
1267 const Int_t nbin2 = kGCnXBinsPi0MassCF; // do not use same variable for CF than for histogram
a0b94e5c 1268
1269 //arrays for the number of bins in each dimension
1270 Int_t iBin[nvar];
1271 iBin[0] = nbin0;
1272 iBin[1] = nbin1;
1273 iBin[2] = nbin2;
1274
1275 //arrays for lower bounds
1276 Double_t *binLim0 = new Double_t[nbin0+1];
1277 Double_t *binLim1 = new Double_t[nbin1+1];
1278 Double_t *binLim2 = new Double_t[nbin2+1];
1279
1280 // values for lower bounds
1281 for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i;
1282 for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i;
1283 for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i;
1284
1285 // create container
1286 AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin);
1287 container->SetBinLimits(ipt,binLim0);
1288 container->SetBinLimits(ieta,binLim1);
1289 container->SetBinLimits(imass,binLim2);
1290
1291 AliCFManager *man = new AliCFManager();
1292 man->SetParticleContainer(container);
70ef88b5 1293 for(int i = 0;i<nstep;i++){
1294 TObjArray *tmp = new TObjArray(0);
1295 man->SetParticleCutsList(i,tmp) ;
1296 }
1297
a0b94e5c 1298 // end ---------------------------------------------------------------------------
1299
1300
9640a3d1 1301
a0b94e5c 1302
d7d7e825 1303 AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms();
1304 AddHistograms(histograms);
1305
1306 // Create the Analysis manager
1307 AliAnalysisManager *mgr =NULL;
6c84d371 1308 if(kGCrunOnTrain == kFALSE){
a0b94e5c 1309 mgr = new AliAnalysisManager("My Manager", "My Analysis");
00a6a31a 1310 }
d7d7e825 1311 else{
1312 mgr = AliAnalysisManager::GetAnalysisManager();
00a6a31a 1313 }
a0b94e5c 1314
d7d7e825 1315 if (!mgr) {
1316 ::Error("ConfigGammaConversion", "No analysis manager to connect to.");
1317 return NULL;
1318 }
6c84d371 1319 if(kGCrunOnTrain == kTRUE){
1320 if (!mgr->GetInputEventHandler()) {
1321 ::Error("ConfigGammaConversion", "This task requires an input event handler");
1322 return NULL;
1323 }
1324 }
1325 AliESDInputHandler* inpHandler = NULL;
a0b94e5c 1326
6c84d371 1327 if(kGCrunOnTrain == kFALSE){
1328 // Define Input Event Handler
1329 inpHandler = new AliESDInputHandler();
1330 }
a19c3402 1331 // Define MC Truth Event Handler
6c84d371 1332 AliMCEventHandler* mcHandler = NULL;
1333 if(kGCdoMCTruth){
1334 if(kGCrunOnTrain == kFALSE){
1335 mcHandler = new AliMCEventHandler();
1336 }
1337 else{
1338 mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler();
1339 }
1340 if (!mcHandler) {
1341 ::Error("", "No MC handler connected");
1342 return NULL;
1343 }
1344 }
a0b94e5c 1345
332f1f44 1346
a0b94e5c 1347
6c84d371 1348 if(kGCrunOnTrain == kFALSE){
d7d7e825 1349 mgr->SetInputEventHandler (inpHandler);
1350 mgr->SetMCtruthEventHandler(mcHandler);
1351 }
a19c3402 1352 // Be sure you are told what you are doing
b5bd091d 1353 // mgr->SetDebugLevel(10);
32a6d407 1354
a19c3402 1355 // Declare Common Input Tchain
32a6d407 1356 AliAnalysisDataContainer *cinput1 = NULL;
332f1f44 1357
6c84d371 1358 if(kGCusePWG4PartCorr){
332f1f44 1359
6c84d371 1360 if(kGCrunOnTrain == kFALSE){
8a685cf3 1361 cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer);
332f1f44 1362
1363 } else{
d7d7e825 1364 cinput1 = cin_esd;
332f1f44 1365
d7d7e825 1366 }
32a6d407 1367 }
1368 else{
d7d7e825 1369 cinput1 = mgr->GetCommonInputContainer();
32a6d407 1370 }
1371
10e3319b 1372 // Common Output Tree in common ??????default?????? output file
07b54fba 1373 // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive?
32a6d407 1374 AliAnalysisDataContainer *coutput1 = NULL;
332f1f44 1375
98de7903 1376 if(kGCWriteAOD) {
1377 if(kGCrunOnTrain && !(kGCrunOnGsiTrain)) {
1378 coutput1 = mgr->GetCommonOutputContainer();
1379 } else {
1380 coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default");
1381 }
32a6d407 1382 }
1383
a19c3402 1384 // Private output objects
6c84d371 1385 if(kGCoutputFileName.Contains(".root")){
1386 kGCoutputFileName.ReplaceAll(".root","");
32a6d407 1387 }
6c84d371 1388 if(kGCoutputFileAppendix.Contains(".root")){
1389 kGCoutputFileAppendix.ReplaceAll(".root","");
32a6d407 1390 }
61374d97 1391 //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root";
1392
48682642 1393
1394 TString outputfile = AliAnalysisManager::GetCommonFileName();
1395 cout<<"Analyis cut selection ID is: "<<kGCAnalysisCutSelectionId.Data()<<endl;
ca6d4600 1396 // outputfile += Form(":PWG4_GammaConversion_%s",kGCAnalysisCutSelectionId.Data());
d2abd45d 1397 outputfile += Form(":PWG4_GammaConversion");
ca6d4600 1398
9c1cb6f7 1399// if(kGCrunNeutralMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1400
1401// if(kGCrunJet==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1402
9c1cb6f7 1403// if(kGCrunChic==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1404
9c1cb6f7 1405// if(kGCrunCF==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1406
9c1cb6f7 1407// if(kGCcalculateBackground==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1408
9c1cb6f7 1409// if(kGCdoNeutralMesonV0MCCheck==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1410
9c1cb6f7 1411// if(kGCrunOmegaMeson==kTRUE) outputfile +="1"; else outputfile +="0";
1412
1413// if(kGCrunRES==kTRUE) outputfile +="1"; else outputfile +="0";
ca6d4600 1414
ca6d4600 1415 outputfile += Form("_%s",kGCAnalysisCutSelectionId.Data());
48682642 1416
1417 cout<<"Ouput file::"<< outputfile <<endl;
d5f99c2b 1418 AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(Form("histogramsAliGammaConversion_%s",kGCAnalysisCutSelectionId.Data()), TList::Class(),AliAnalysisManager::kOutputContainer, outputfile);
a0b94e5c 1419 // for CF
d5f99c2b 1420 AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(Form("GammaConvccontainer0_%s",kGCAnalysisCutSelectionId.Data()),AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile);
a0b94e5c 1421
a19c3402 1422 //------------------------ END: Define input/output handlers ---------------------------------------------------
32a6d407 1423
a19c3402 1424 //check for errors in the specified data
6c84d371 1425 if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){
a19c3402 1426 //Print warning, cannot use both
6c84d371 1427 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time")
a0b94e5c 1428 }
6c84d371 1429 if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){
a19c3402 1430 //Print warning, one have to be specified
6c84d371 1431 ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time")
a0b94e5c 1432 }
1433
77fa1db4 1434
1435 if(!SetAnalysisCutSelection(kGCAnalysisCutSelectionId)){
77ac6f3e 1436 cout<<"Error in analysis cut selection"<<endl;
77fa1db4 1437 return 0;
1438 }
a0b94e5c 1439
a19c3402 1440 //Create the V0Reader
1441 AliV0Reader * v0Reader = new AliV0Reader();
6c84d371 1442 if(kGCuseKFParticle){
a19c3402 1443 v0Reader->UseKFParticle();
1444 }
6c84d371 1445 else if(kGCuseESDTrack){
a19c3402 1446 v0Reader->UseESDTrack();
1447 }
10e3319b 1448
1449 v0Reader->SetMaxVertexZ(kGCmaxVertexZ);
6c84d371 1450 v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack);
1451 v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack);
1452 v0Reader->SetMaxRCut(kGCmaxRCut);
4f07ce38 1453 v0Reader->SetMinRCut(kGCminRCut);
6c84d371 1454 v0Reader->SetEtaCut(kGCetaCut);
c1237864 1455 v0Reader->SetRapidityMesonCut(kGCrapidityCutMeson);
6c84d371 1456 v0Reader->SetPtCut(kGCptCut);
48682642 1457 v0Reader->SetSinglePtCut(kGCsingleptCut);
6c84d371 1458 v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope);
1459 v0Reader->SetLineCutZValue(kGCLineCutZValue);
a0b94e5c 1460 v0Reader->SetMaxZCut(kGCmaxZCut);
48682642 1461 v0Reader->SetMinClsTPCCut(kGCminClsTPCCut);
4f07ce38 1462 v0Reader->SetMinClsTPCCutToF(kGCminClsTPCCutToF);
6c84d371 1463 v0Reader->SetChi2CutConversion(kGCchi2CutConversion);
1464 v0Reader->SetChi2CutMeson(kGCchi2CutMeson);
9c1cb6f7 1465 v0Reader->SetAlphaCutMeson(kGCalphaCutMeson);
67381a40 1466 v0Reader->SetAlphaMinCutMeson(kGCalphaMinCutMeson);
6c84d371 1467 v0Reader->SetPIDProbability(kGCprobElectron);
1468 v0Reader->SetXVertexCut(kGCxVertexCut);
1469 v0Reader->SetYVertexCut(kGCyVertexCut);
1470 v0Reader->SetZVertexCut(kGCzVertexCut);
1471 v0Reader->SetSigmaMass(kGCsigmaCutGammaMass);
1472 v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex);
1473 v0Reader->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1474 v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation);
5ce758b0 1475 v0Reader->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
a0b94e5c 1476 // for CF
1477 v0Reader->SetCFManager(man);
1478
9640a3d1 1479 // for dEdx N sigma Cut
1480 v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut);
1481 v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine);
1482 v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine);
1483 v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine);
1484 v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine);
10e3319b 1485 v0Reader->SetPIDMaxPnSigmaAbovePionLine(kGCPIDMaxPnSigmaAbovePionLine);
77880bd8 1486 v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder);
87f6de3e 1487 v0Reader->SetCalculateBackground(kGCcalculateBackground);
48682642 1488
9c1cb6f7 1489 // for the rejection at LowP based on Dedx signal
1490
1491 v0Reader->SetDoKaonRejectionLowP(kGCdoKaonRejectionLowP);
1492 v0Reader->SetDoProtonRejectionLowP(kGCdoProtonRejectionLowP);
1493 v0Reader->SetDoPionRejectionLowP(kGCdoPionRejectionLowP);
1494 v0Reader->SetPIDnSigmaAtLowPAroundKaonLine(kGCPIDnSigmaAtLowPAroundKaonLine);
1495 v0Reader->SetPIDnSigmaAtLowPAroundProtonLine(kGCPIDnSigmaAtLowPAroundProtonLine);
1496 v0Reader->SetPIDnSigmaAtLowPAroundPionLine(kGCPIDnSigmaAtLowPAroundPionLine);
1497 v0Reader->SetPIDMinPKaonRejectionLowP(kGCPIDMinPKaonRejectionLowP);
1498 v0Reader->SetPIDMinPProtonRejectionLowP(kGCPIDMinPProtonRejectionLowP);
1499 v0Reader->SetPIDMinPPionRejectionLowP(kGCPIDMinPPionRejectionLowP);
70ef88b5 1500 v0Reader->SetDoQtGammaSelection(kGCdoQtGammaSelection);
1501 v0Reader->SetQtMax(kGCQtMax);
8de8695b 1502 kGCNEventsForBGCalculation= kGCnumberOfRotationEventsForBG;
1503 cout<< "number of Events used for mixing::"<<kGCNEventsForBGCalculation<<endl;
70ef88b5 1504 v0Reader->SetNEventsForBG(kGCNEventsForBGCalculation);
48682642 1505
a19c3402 1506 // Create the GammaConversionTask
48682642 1507
1508
1509 AliAnalysisTaskGammaConversion *gammaconversion =
1510 new AliAnalysisTaskGammaConversion(Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data()));
1511
1512 cout<<"name of Task::"<< Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())<< " "<<gammaconversion->GetName() <<endl;
52a15f71 1513 gammaconversion->SetDebugLevel(0);
32a6d407 1514
6c84d371 1515 gammaconversion->SetWriteNtuple(kGCwriteNtuple);
32a6d407 1516
a19c3402 1517 gammaconversion->SetV0Reader(v0Reader);
6c84d371 1518 gammaconversion->SetCalculateBackground(kGCcalculateBackground);
a19c3402 1519 gammaconversion->Init();
32a6d407 1520
6c84d371 1521 gammaconversion->SetElectronMass(kGCelectronMass);
1522 gammaconversion->SetGammaMass(kGCgammaMass);
1523 gammaconversion->SetPi0Mass(kGCpi0Mass);
1524 gammaconversion->SetEtaMass(kGCetaMass);
32a6d407 1525
6c84d371 1526 gammaconversion->SetGammaWidth(kGCgammaWidth);
1527 gammaconversion->SetPi0Width(kGCpi0Width);
1528 gammaconversion->SetEtaWidth(kGCetaWidth);
a0b94e5c 1529
6c84d371 1530 gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut);
2f426a53 1531
32a6d407 1532
ebcfaa7e 1533 Double_t lowPtMapping=0.4;
1534 Double_t highPtMapping=1.5;
1535 gammaconversion->SetLowPtMapping(lowPtMapping);
1536 gammaconversion->SetHighPtMapping(highPtMapping);
1537
a19c3402 1538 // define the width constraint used by KF particle.
1539 Double_t gammaWidth = 0.01;
1540 Double_t pi0Width = 0.01;
1541 Double_t etaWidth = 0.01;
32a6d407 1542
a19c3402 1543 gammaconversion->SetHistograms(histograms);
1544 v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts
b5832f95 1545
1546 gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B);
6c84d371 1547 gammaconversion->SetDoMCTruth(kGCdoMCTruth);
a0b94e5c 1548
6c84d371 1549 gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson);
037dc2db 1550 gammaconversion->SetDoNeutralMesonV0MCCheck(kGCdoNeutralMesonV0MCCheck);
6c84d371 1551 gammaconversion->SetDoJet(kGCrunJet);
1552 gammaconversion->SetDoChic(kGCrunChic);
48682642 1553 gammaconversion->SetDoOmegaMeson(kGCrunOmegaMeson);
9c1cb6f7 1554 gammaconversion->SetRecalculateV0ForGamma(kGCRecalculateV0ForGamma);
5ce758b0 1555 gammaconversion->SetUseChargedTracksMultiplicityForBG(kGCUseTrackMultiplicityForBG);
1556 gammaconversion->SetMoveParticleAccordingToVertex(kGCMoveParticlesAccordingToVertex);
2e2da371 1557 gammaconversion->SetApplyChi2Cut(kGCApplyChi2Cut);
77ac6f3e 1558 cout<<"NumberOfDegrees in rotatation method set to: "<<kGCnDegreeRotationPMForBG<<endl;
111d75df 1559 gammaconversion->SetPMDegreesBG(kGCnDegreeRotationPMForBG);
77ac6f3e 1560 if(kGCUseRotationMethodInBG){
1561 cout<<"Using rotation method for bg."<<endl;
1562 }
1563 else{
1564 cout<<"Using mixed event for bg."<<endl;
1565 }
86e91247 1566 if(kGCUseTrackMultiplicityForBG){
1567 cout<<"Using track multiplicity for bck"<<endl;
1568 }else{
1569 cout<<"Using V0 multiplicity for bck"<<endl;
1570 }
111d75df 1571 gammaconversion->SetDoRotation(kGCUseRotationMethodInBG);
77ac6f3e 1572 cout<<"Using :"<<kGCnumberOfRotationEventsForBG<<" rotations in bg calculation"<<endl;
111d75df 1573 gammaconversion->SetNumberOfRotationsBG(kGCnumberOfRotationEventsForBG);
c1237864 1574 gammaconversion->SetCheckBGProbability(kGCdoBGProbability);
111d75df 1575
2f426a53 1576 gammaconversion->SetRemovePileUp(kGCRemovePileUp);
18a1e325 1577 gammaconversion->SetSelectV0AND(kGCSelectV0AND);
6746e1e1 1578 gammaconversion->SetUseMultiplicity(kGCUseMultiplicity);
1579 gammaconversion->SetUseMultiplicityBin(kGCUseMultiplicityBin);
18a1e325 1580
64f4118c 1581 v0Reader->SetIsHeavyIon(kGCIsHeavyIon);
40051a3e 1582 v0Reader->SetUseCorrectedTPCClsInfo(kGCUseCorrectedTPCClsInfo);
64f4118c 1583 gammaconversion->SetUseCentrality(kGCUseCentrality);
1584 if(kGCUseCentrality){
1585 gammaconversion->SetUseCentralityBin(kGCUseCentralityBin);
1586 }
1587
1588
1589
1590
a0b94e5c 1591 // for CF
1592 gammaconversion->SetCFManager(man);
1e7846f4 1593 gammaconversion->SetDoCF(kGCrunCF);
1594 v0Reader->SetDoCF(kGCrunCF);
332f1f44 1595
a25750be 1596 // Add task to the manager
1597 mgr->AddTask(gammaconversion);
1598
1599
332f1f44 1600 // Define Output Event Handler and add
1601 if(kGCWriteAOD){
d765d400 1602 gammaconversion->SetForceAOD(kGCForceAOD);
6441e967 1603 gammaconversion->SetOutputAODClassName("AliAODConversionParticle");
1604 //gammaconversion->SetOutputAODClassName("AliGammaConversionAODObject");
332f1f44 1605
a25750be 1606 if( kGCrunOnTrain ) {
63477d82 1607
332f1f44 1608 AliAODHandler * aodHandler = dynamic_cast<AliAODHandler*>(mgr->GetOutputEventHandler());
a25750be 1609 if(!aodHandler) {
1610 ::Error("This task requires an AOD handler");
63477d82 1611 return NULL;
a25750be 1612 }
63477d82 1613
332f1f44 1614 gammaconversion->SetDeltaAODFileName(kGCDeltaAODFilename);
1615
1b3a3172 1616 if(kGCDeltaAODFilename.Length() > 0) {
332f1f44 1617 mgr->RegisterExtraFile(kGCDeltaAODFilename.Data());
1618 }
1619
1620 } else {
1621 if(kGCDeltaAODFilename.Length() == 0 ) {
1622 cout << "Error:: Need a file name for the AOD"<<endl;
63477d82 1623 return NULL;
332f1f44 1624 }
1625 AliAODHandler* aodHandler = new AliAODHandler();
1626 aodHandler->SetOutputFileName(kGCDeltaAODFilename);
1627 aodHandler->SetCreateNonStandardAOD();
1628 mgr->SetOutputEventHandler(aodHandler);
1629 }
63477d82 1630 } else {
1631 gammaconversion->SetCreateAOD(kFALSE);
332f1f44 1632 }
1633
a19c3402 1634 // Connect I/O to the task
1635 mgr->ConnectInput (gammaconversion, 0, cinput1);
a25750be 1636 if(mgr->GetCommonOutputContainer())
1637 mgr->ConnectOutput(gammaconversion, 0, mgr->GetCommonOutputContainer());
63477d82 1638
a0b94e5c 1639 mgr->ConnectOutput(gammaconversion, 1, coutput2);
1640 mgr->ConnectOutput(gammaconversion, 2, coutput3);
63477d82 1641
332f1f44 1642 if(kGCRunGammaJetTask) {
1643 AliAnalysisTaskGammaJet * gammaJetTask = new AliAnalysisTaskGammaJet("GammaJetTask");
1644 if(kGCrunOnTrain) {
1645 gammaJetTask->SetDeltaAODFileName(kGCDeltaAODFileName);
1646 }
1647
1648 mgr->ConnectInput(gammaJetTask, 0, cinput1);
1649 AliAnalysisDataContainer *coutputgj = mgr->CreateContainer("chistpt", TList::Class(), AliAnalysisManager::kOutputContainer, "AnalysisResultsConvJets.root");
1650 mgr->ConnectOutput(gammaJetTask, 1, coutputgj);
1651 }
1652
1653
eb35cbb5 1654 if( kGCrunDalitz ){
fd05b495 1655
1656 gROOT->LoadMacro("$ALICE_ROOT/PWG4/macros/AddTaskGammaConvDalitz.C");
1657 AddTaskGammaConvDalitz( v0Reader, kGCcalculateBackground, kGCRunStandalone );
eb35cbb5 1658
eb35cbb5 1659 }
332f1f44 1660
6c84d371 1661 if(kGCrunOnTrain == kFALSE){
1662 if(kGCdataList.IsNull()){
1663 cout<<"Data list is not set, aborting."<<endl;
1664 return;
1665 }
037dc2db 1666 /*
1667 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1668 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
1669 if(kGCdoMCTruth)physSelTask->GetPhysicsSelection()->SetAnalyzeMC();
1670 physSelTask->GetPhysicsSelection()->AddBackgroundIdentification(new AliBackgroundSelection());
1671 gammaconversion->SelectCollisionCandidates();
1672 */
48682642 1673
037dc2db 1674 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
1675 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kGCdoMCTruth,kTRUE);
1676 gammaconversion->SelectCollisionCandidates();
48682642 1677
19338f3c 1678 // if(kGCrunOnTrain == kFALSE){
6c84d371 1679 TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze);
a0b94e5c 1680
6c84d371 1681 mgr->InitAnalysis();
a0b94e5c 1682
6c84d371 1683 mgr->PrintStatus();
a0b94e5c 1684
6c84d371 1685 mgr->StartAnalysis("local",chain);
037dc2db 1686 // }
d7d7e825 1687 }
6c84d371 1688 return gammaconversion;
a19c3402 1689}
1690
6441e967 1691void LoadLibraries() {
19338f3c 1692
1693 TStopwatch timer;
6441e967 1694 timer.Start();
1695 gSystem->Load("libTree.so");
1696 gSystem->Load("libGeom");
19338f3c 1697
6441e967 1698 gSystem->Load("libSTEERBase.so");
1699 gSystem->Load("libVMC.so");
1700 gSystem->Load("libESD.so");
1701 gSystem->Load("libAOD.so");
1702 gSystem->Load("libANALYSIS.so");
1703 gSystem->Load("libANALYSISalice.so");
1704 gSystem->Load("libCORRFW.so");
1705 gSystem->Load("libPWG4GammaConv.so");
1706
1707 // gSystem->ChangeDirectory(pwd.Data());
19338f3c 1708
6441e967 1709}
a19c3402 1710void build() {
a0b94e5c 1711
a19c3402 1712 TStopwatch timer;
1713 timer.Start();
1714 gSystem->Load("libTree.so");
1715 gSystem->Load("libGeom");
32a6d407 1716
fd05b495 1717 TString pwd = gSystem->WorkingDirectory();
1718
a19c3402 1719 ////
eb35cbb5 1720 //Setting up STEERBase.par//
1721 ////
1722 cout<<"compiling STEERBase"<<endl;
1723 setupPar("STEERBase");
1724 gSystem->Load("libSTEERBase.so");
1725
1726
1727 ////
a19c3402 1728 //Setting up ESD.par//
1729 ////
1730 cout<<"compiling ESD"<<endl;
1731 setupPar("ESD");
1732 gSystem->Load("libVMC.so");
1733 gSystem->Load("libESD.so");
eb35cbb5 1734
32a6d407 1735
a19c3402 1736 ////
1737 //Setting up AOD.par//
1738 ////
1739 cout<<"compiling AOD"<<endl;
1740 setupPar("AOD");
1741 gSystem->Load("libAOD.so");
32a6d407 1742
a19c3402 1743 ////
1744 //Setting up ANALYSIS.par//
1745 ////
1746 cout<<"compiling ANALYSIS"<<endl;
1747 setupPar("ANALYSIS");
1748 gSystem->Load("libANALYSIS.so");
32a6d407 1749
a19c3402 1750 ////
1751 //Setting up ANALYSISalice.par//
1752 ////
a0b94e5c 1753 cout<<"compiling ANALYSISalice"<<endl;
a19c3402 1754 setupPar("ANALYSISalice");
1755 gSystem->Load("libANALYSISalice.so");
32a6d407 1756
a0b94e5c 1757 ////
1758 //Setting up CORRFW.par//
1759 ////
1760 cout<<"compiling CORRFW"<<endl;
1761 setupPar("CORRFW");
9c1cb6f7 1762 gSystem->Load("libCORRFW.so");
a0b94e5c 1763
a19c3402 1764 ////
d7d7e825 1765 //Setting up PWG4GammaConv.par//
a19c3402 1766 ////
d7d7e825 1767 cout<<"compiling PWG4GammaConv"<<endl;
1768 setupPar("PWG4GammaConv");
1769 gSystem->Load("libPWG4GammaConv.so");
fd05b495 1770
91b98865 1771 gSystem->ChangeDirectory(pwd.Data());
a19c3402 1772}
1773
1774Int_t setupPar(const char* pararchivename) {
1775 ///////////////////
1776 // Setup PAR File//
1777 ///////////////////
1778 if (pararchivename) {
1779 char processline[1024];
1780 sprintf(processline,".! tar xvzf %s.par",pararchivename);
1781 gROOT->ProcessLine(processline);
1782 const char* ocwd = gSystem->WorkingDirectory();
1783 gSystem->ChangeDirectory(pararchivename);
32a6d407 1784
a19c3402 1785 // check for BUILD.sh and execute
1786 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
1787 printf("*******************************\n");
1788 printf("*** Building PAR archive ***\n");
1789 printf("*******************************\n");
32a6d407 1790
a19c3402 1791 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
32a6d407 1792 Error("runAnalysis","Cannot Build the PAR Archive! - Abort!");
1793 return -1;
a19c3402 1794 }
1795 }
1796 // check for SETUP.C and execute
1797 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
1798 printf("*******************************\n");
1799 printf("*** Setup PAR archive ***\n");
1800 printf("*******************************\n");
1801 gROOT->Macro("PROOF-INF/SETUP.C");
1802 }
32a6d407 1803
a19c3402 1804 gSystem->ChangeDirectory("../");
1805 }
1806 return 1;
1807}
d7d7e825 1808
1809
1810
1811void AddHistograms(AliGammaConversionHistograms *histograms){
1812 //---------------------------------------------- Jets ---------------------------------------------------------
6c84d371 1813 if(kGCrunJet == kTRUE){
1814 if (kGCplotdPhiHdrGam == kTRUE){
1815 histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts");
d7d7e825 1816 }
a0b94e5c 1817
6c84d371 1818 if (kGCplotdPhiHdrGamIsolated == kTRUE){
1819 histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts");
d7d7e825 1820 }
a0b94e5c 1821
6c84d371 1822 if (kGCplotMinimumIsoDistance == kTRUE){
1823 histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts");
d7d7e825 1824 }
a0b94e5c 1825
6c84d371 1826 if (kGCplotFFzHdrGam == kTRUE){
1827 histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts");
d7d7e825 1828 }
a0b94e5c 1829
6c84d371 1830 if (kGCplotImbalanceHdrGam == kTRUE){
1831 histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts");
d7d7e825 1832 }
6c84d371 1833 }//end if(kGCrunJet)
a0b94e5c 1834
d7d7e825 1835 //---------------------------------------------- Chi_c ---------------------------------------------------------
6c84d371 1836 if(kGCrunChic){
a0b94e5c 1837
6c84d371 1838 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1839 "");}
6c84d371 1840 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass,
a0b94e5c 1841 "","");}
6c84d371 1842 if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "",
a0b94e5c 1843 "");}
6c84d371 1844 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1845 if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","
a0b94e5c 1846 ");}
1847
6c84d371 1848 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1849 if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
a0b94e5c 1850
7bea833a 1851 if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1852
6c84d371 1853 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1854 if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1855 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1856 if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");}
1857 if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");}
1858 if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
a0b94e5c 1859
6c84d371 1860 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1861
6c84d371 1862 if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1863
1864
6c84d371 1865 if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1866 if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1867 if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");}
a0b94e5c 1868
6c84d371 1869 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
1870 if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");}
a0b94e5c 1871
6c84d371 1872 if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);}
7bea833a 1873
1874 if(kGCdoMCTruth){
1875 if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");}
1876 if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","");}
1877 if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1878 if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");}
1879 }
1880
6c84d371 1881 }// end kGCrunChic
a0b94e5c 1882
f8017b04 1883
1884 //---------------------------------------------- Gamma from Decay ----------------------------------------------------
1885 if(kGCplotMCGammaFromDecay == kTRUE && kGCdoMCTruth == kTRUE){
1886 histograms->AddHistogram("MC_DecayPi0Gamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1887 histograms->AddHistogram("MC_DecayRho0Gamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1888 histograms->AddHistogram("MC_DecayEtaGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1889 histograms->AddHistogram("MC_DecayOmegaGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1890 histograms->AddHistogram("MC_DecayK0sGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1891 histograms->AddHistogram("MC_DecayEtapGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
86e91247 1892 histograms->AddHistogram("MC_DecayPhiGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
f8017b04 1893 histograms->AddHistogram("MC_DecayAllGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1894 }
1895
d7d7e825 1896 //---------------------------------------------- Neutral Meson ---------------------------------------------------------
6c84d371 1897 if(kGCrunNeutralMeson){
a0b94e5c 1898
d7d7e825 1899 // Histograms from esd tracks
6c84d371 1900 if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1901 if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1902 if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1903 if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
ebcfaa7e 1904 if(kGCplotESDENTPCClusters == kTRUE){ histograms->AddHistogram("ESD_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
1905 if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
5ce758b0 1906 if(kGCplotESDENTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
19338f3c 1907 if(kGCplotESDENTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_E_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
86e91247 1908 if(kGCplotESDENTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_TrueConversion_E_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
5ce758b0 1909 if(kGCplotESDETPCchi2 == kTRUE){ histograms->AddHistogram("ESD_E_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1910
a0b94e5c 1911
6c84d371 1912 if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1913 if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1914 if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1915 if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
ebcfaa7e 1916 if(kGCplotESDPNTPCClusters == kTRUE){ histograms->AddHistogram("ESD_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
f5f99b3d 1917 if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
5ce758b0 1918 if(kGCplotESDPNTPCClustersToFP== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
19338f3c 1919 if(kGCplotESDPNTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_P_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
86e91247 1920 if(kGCplotESDPNTPCClustersToFR== kTRUE){ histograms->AddHistogram("ESD_TrueConversion_P_nTPCClustersToFR" ,"" ,kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,kGCnYBinsClsToF, kGCfirstYBinClsToF, kGClastYBinClsToF,"", "",0);}
5ce758b0 1921 if(kGCplotESDPTPCchi2 == kTRUE){ histograms->AddHistogram("ESD_P_TPCchi2" ,"" , kGCnXBinsTPCchi2, kGCfirstXBinTPCchi2, kGClastXBinTPCchi2, "", "");}
1922
6c84d371 1923 if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
1924 if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1925 if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
1926 if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
1927 if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
1928 if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
1929 if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1930 if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
1931 if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
1932 if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );}
1933 if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
1934 if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 1935
1936
1937
6c84d371 1938 if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1939 if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
1940 if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2e2da371 1941 if(kGCplotESDConversionXYBeamPipe == kTRUE && kGCLowMemoryConsumption == kFALSE){ histograms->AddHistogram("ESD_Conversion_XY_BeamPipe" ,"" , kGCnXBinsXYBP, kGCfirstXBinXYBP, kGClastXBinXYBP, kGCnYBinsXYBP, kGCfirstYBinXYBP, kGClastYBinXYBP, "", "");}
1942 if(kGCplotESDConversionRPhiBeamPipe == kTRUE && kGCLowMemoryConsumption == kFALSE){ histograms->AddHistogram("ESD_Conversion_RPhi_BeamPipe" ,"" , kGCnXBinsRPhiBP, kGCfirstXBinRPhiBP, kGClastXBinRPhiBP, kGCnYBinsRPhiBP, kGCfirstYBinRPhiBP, kGClastYBinRPhiBP, "", "");}
6c84d371 1943 if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 1944
1945 if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
1946 if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
1947 if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
1948 if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
1949 if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
1950 if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
9c1cb6f7 1951 if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1952 if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
1953
1954 if(kGCplotESDConvGammaEeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1955 if(kGCplotESDConvGammaPeProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_EProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1956 if(kGCplotESDConvGammaEmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
1957 if(kGCplotESDConvGammaPmupiProbP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_mupiProbP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsEProb, kGCfirstYBinEProb, kGClastYBinEProb,"", "",0);}
9640a3d1 1958
9c1cb6f7 1959 if(kGCplotESDConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
48682642 1960
9640a3d1 1961
a0b94e5c 1962
037dc2db 1963 if(kGCplotESDTrueDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueDalitzContamination_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
64f4118c 1964 if(kGCplotESDTruePi0DalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueConvDalitzPi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1965 if(kGCplotESDTrueEtaDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueConvDalitzEta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1966 if(kGCplotESDTrueCombinatorialContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueConvCombinatorial_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1967 if(kGCplotESDTrueCombinatorialElecContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueConvCombinatorialElec_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
dcdc851f 1968 if(kGCplotESDTrueHadronicContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueConvHadronicBck_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
1969 if(kGCplotESDTrueCombinatorialContaminationPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvCombinatorial_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1970 if(kGCplotESDTrueCombinatorialElecContaminationPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvCombinatorialElec_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1971 if(kGCplotESDTrueHadronicContaminationPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvHadronicBck_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
1972
f3026589 1973
1974 if(kGCplotESDTrueBackground){
1975 histograms->AddHistogram("ESD_TrueConvCombinatorialDaughter_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsPt,kGCfirstXBinPt , kGClastXBinPt, "", "");
1976 histograms->AddHistogram("ESD_TrueConvHadronicBckDaughter_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsPt,kGCfirstXBinPt , kGClastXBinPt, "", "");
1977 histograms->AddHistogram("ESD_TrueConvCombinatorialPiDaughter_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsPt,kGCfirstXBinPt , kGClastXBinPt, "", "");
1978 histograms->AddHistogram("ESD_TrueConvCombinatorialPiPDaughter_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsPt,kGCfirstXBinPt , kGClastXBinPt, "", "");
1979
1980 histograms->AddHistogram("ESD_TrueConvCombinatorialPi_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1981 histograms->AddHistogram("ESD_TrueConvCombinatorialPi_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1982 histograms->AddHistogram("ESD_TrueConvCombinatorialPiP_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1983 histograms->AddHistogram("ESD_TrueConvCombinatorialPiP_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1984 histograms->AddHistogram("ESD_TrueConvCombinatorialElecPi_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1985 histograms->AddHistogram("ESD_TrueConvCombinatorialElecPi_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1986 histograms->AddHistogram("ESD_TrueConvMeson_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1987 histograms->AddHistogram("ESD_TrueConvMeson_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1988 histograms->AddHistogram("ESD_TrueConvLambda_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1989 histograms->AddHistogram("ESD_TrueConvLambda_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1990 }
1991
8de8695b 1992 histograms->AddHistogram("ESD_TrueConvDalitzPi0_SinglePos_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1993 histograms->AddHistogram("ESD_TrueConvDalitzPi0_SingleNeg_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1994 histograms->AddHistogram("ESD_TrueConvDalitzPi0_SinglePos_kFirst_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1995 histograms->AddHistogram("ESD_TrueConvDalitzPi0_SingleNeg_kFirst_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");
1996 histograms->AddHistogram("ESD_TrueConversion_SinglePos_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"", "");
1997 histograms->AddHistogram("ESD_TrueConversion_SingleNeg_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1998 histograms->AddHistogram("ESD_TrueConversion_SinglePos_kFirst_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
1999 histograms->AddHistogram("ESD_TrueConversion_SingleNeg_kFirst_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
2000
64f4118c 2001
6c84d371 2002 if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2003 if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2004 if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2005 if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2006 if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
2007 if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
2008 if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
2009 if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
2010 if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2011 if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2012 if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
2013 if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 2014
6c84d371 2015 if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2016 if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2017 if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2018 if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 2019
2020 if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
2021 if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
2022 if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
2023 if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
2024 if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2025 if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
9c1cb6f7 2026 if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
2027 if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
70ef88b5 2028 if(kGCplotESDTrueConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
a0b94e5c 2029
6c84d371 2030 if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2031 if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2032 if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 2033
2034
f3026589 2035 if(kGCplotESDNoCutAllV0Pt == kTRUE){ histograms->AddHistogram("ESD_NoCutAllV0_Pt" ,"" , kGCnXBinsPt,kGCfirstXBinPt , kGClastXBinPt, "", "");}
6c84d371 2036 if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2037 if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2038 if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2039 if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2040 if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
2041 if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");}
2042 if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
2043 if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");}
2044 if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2045 if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2046 if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
2047 if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
a0b94e5c 2048
6c84d371 2049 if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2050 if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2051 if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2052 if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
9640a3d1 2053
2054 if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");}
2055 if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");}
2056 if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");}
2057 if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");}
2058 if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2059 if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2060
2061
9c1cb6f7 2062 if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
2063 if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);}
9640a3d1 2064
6c84d371 2065 if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2066 if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2067 if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
a0b94e5c 2068
2069
10e3319b 2070 if(kGCplotESDMotherChi2 == kTRUE){ histograms->AddHistogram("ESD_Mother_Chi2","" , kGCnXBinsMesonChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");}
6c84d371 2071 if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2072 if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2073 if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2074 if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2075 if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2076 if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2077 if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2078 if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2079 if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2080 if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 2081
037dc2db 2082 for(Int_t z=0;z<8;z++){
10e3319b 2083 for(Int_t m=0;m<6;m++){
037dc2db 2084 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_GammaDaughter_OpeningAngle",z,m) ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2085 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Energy",z,m) ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2086 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Pt",z,m) ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2087 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Eta",z,m) ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2088 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Phi",z,m) ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2089 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Mass",z,m) ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
2090 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_R",z,m) ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2091 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_ZR",z,m) ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2092 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_XY",z,m) ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2093 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Rapid",z,m) ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2094 }
2095 }
2096
6c84d371 2097 if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2098 if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2099 if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2100 if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2101 if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2102 if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
2103 if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2104 if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2105 if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2106 if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
a0b94e5c 2107
2108
6c84d371 2109 if(kGCplotMapping == kTRUE){
a0b94e5c 2110 histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
9640a3d1 2111 histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping);
2112 // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi);
d7d7e825 2113 }
037dc2db 2114
ca6d4600 2115 //
2116 //************************************* Defining Resolution histograms *******************************************************/
2117 //
2118 // written by Friederike Bock
2119 // contact: Friederike.Bock@cern.ch
2120 //
2121
2122 if(kGCrunRES == kTRUE){
2123 //------------------------------------------ Absolute Resolutions --------------------------------------------------------
2124 if(kGCplotResolutiondRAbs== kTRUE){
2125 histograms->AddHistogram("Resolution_dRAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2126 if(kGCplotResolutiondZAbs== kTRUE){
2127 histograms->AddHistogram("Resolution_dZAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2128 if(kGCplotResolutiondPhiAbs== kTRUE){
2129 histograms->AddHistogram("Resolution_dPhiAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR, -TMath::Pi()/30., TMath::Pi()/30., "", "");}
2130
2131 //------------------------------------------ Relative Resolutions --------------------------------------------------------
2132 if(kGCplotResolutiondR == kTRUE){
2133 histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");}
2134 if(kGCplotResolutiondZ == kTRUE){
2135 histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");}
2136
2137 //------------------------------------------- Pt vs R ---------------------------------------------------------------------
2138 if(kGCplotResolutiondRdPt == kTRUE){
2139 histograms->AddHistogram("Resolution_R_dPt" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");}
2140
2141
2142 // ------------------------------------------- Reconstruction Plots for Resolution ----------------------------------------
2143 if(kGCplotResolutionMCPt == kTRUE){
2144 histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
2145 if(kGCplotResolutionMCR == kTRUE){
2146 histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
2147 if(kGCplotResolutionMCZ == kTRUE){
2148 histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
2149
2150 if(kGCplotResolutionESDPt == kTRUE){
2151 histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");}
2152 if(kGCplotResolutionESDR == kTRUE){
2153 histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");}
2154 if(kGCplotResolutionESDZ == kTRUE){
2155 histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");}
2156
2157 // ------------------------------------------- Plots for specific Gamma Trigger Studies -----------------------------------
48682642 2158 if(kGCplotResolutionPtdPt = kTRUE){
ca6d4600 2159 // ::::::::::::::::::::::::::::::::::::::: histograms for gammas ::::::::::::::::::::::::::::::::::::::::::::::::::::::
2160 histograms->AddHistogram("Resolution_Gamma_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2161 histograms->AddHistogram("Resolution_Gamma_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2162
2163 // ::::::::::::::::::::::::::::::::::::::: histograms for electrons :::::::::::::::::::::::::::::::::::::::::::::::::::
2164 histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2165 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2166 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2167 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2168 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2169 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2170 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2171 histograms->AddHistogram("Resolution_E_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2172 histograms->AddHistogram("Resolution_E_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
9c1cb6f7 2173 histograms->AddHistogram("Resolution_E_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2174 histograms->AddHistogram("Resolution_E_nTRDtracklets_MCPt","" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2175 histograms->AddHistogram("Resolution_E_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
2176 histograms->AddHistogram("Resolution_E_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
ca6d4600 2177 // histograms->AddHistogram("Resolution_E_TRDsignal_ESDPt","", fV0Reader->GetNegativeTrackPt(), fV0Reader->GetNegativeESDTrack()->GetTRDsignal());
2178
2179 // :::::::::::::::::::::::::::::::::::::::: histograms for positrons :::::::::::::::::::::::::::::::::::::::::::::::::::
2180 histograms->AddHistogram("Resolution_P_dPt_Pt" ,"" , kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2181 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS0" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2182 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS1" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2183 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS2" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2184 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS3" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2185 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS4" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2186 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS5" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2187 histograms->AddHistogram("Resolution_P_dPt_Pt_ITS6" ,"" ,kGCnYBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
2188 histograms->AddHistogram("Resolution_P_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");
9c1cb6f7 2189 histograms->AddHistogram("Resolution_P_nTRDtracklets_ESDPt" ,"" ,kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2190 histograms->AddHistogram("Resolution_P_nTRDtracklets_MCPt","", kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 8, -0.5, 7.5,"", "");
2191 histograms->AddHistogram("Resolution_P_nTRDclusters_ESDPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201, -0.5, 200.5,"", "");
2192 histograms->AddHistogram("Resolution_P_nTRDclusters_MCPt","",kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, 201,-0.5, 200.5,"", "");
ca6d4600 2193 // histograms->AddHistogram("Resolution_P_TRDsignal_ESDPt", "",fV0Reader->GetPositiveTrackPt(), fV0Reader->GetPositiveESDTrack()->GetTRDsignal());
2194 } //end of specific trigger study resolution plots
2195 } //end if(kGCrunRES=true)
2196
2197 // ___________________________________________________________________________________________________________________________________________________
48682642 2198
45bc8986 2199 if(kGCplotEventQuality == kTRUE){histograms->AddHistogram("ESD_EventQuality","ESD_EventQuality",kGCnXBinsEvtQ,kGCfirstXBinEvtQ,kGClastXBinEvtQ,"","");}
f5a9fa20 2200 if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",kGCnXBinsNV0,kGCfirstXBinNV0 ,kGClastXBinNV0 ,"","");}
2201 if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",kGCnXBinsNV0, kGCfirstXBinNV0 , kGClastXBinNV0,"","");}
2202 if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
2203 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracks","Number of Good ESD tracks",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
2204 if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracksVtx","Number of Good ESD tracks",kGCnXBinsESDtrk, kGCfirstXBinESDtrk, kGClastXBinESDtrk,"","");}
e40fd7e2 2205
d7d7e825 2206 // debug histograms
6c84d371 2207 if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2208 if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2209 if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2210 if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2211 if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2212 if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9640a3d1 2213
2214 if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2215 if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9c1cb6f7 2216 if(kGCplotESDCutPionRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutPionRejectionLowP_InvMass" ,"dedx PionRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2217 if(kGCplotESDCutKaonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutKaonRejectionLowP_InvMass" ,"dedx KaonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
70ef88b5 2218 if(kGCplotESDCutQtGammaSelection==kTRUE){histograms->AddHistogram("ESD_CutQt_InvMass","ESD_CutQt_InvMass",kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2219
9c1cb6f7 2220 if(kGCplotESDCutProtonRejectionLowP==kTRUE){histograms->AddHistogram("ESD_CutProtonRejectionLowP_InvMass" ,"dedx ProtonRejection LowP" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
6c84d371 2221 if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
4f07ce38 2222 if(kGCplotESDCutMinR == kTRUE){histograms->AddHistogram("ESD_CutMinR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
6c84d371 2223 if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2224 if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2225 if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
9c1cb6f7 2226 if(kGCplotESDCutSinglePt == kTRUE){histograms->AddHistogram("ESD_CutSinglePt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
6c84d371 2227 if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2228 if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
ebcfaa7e 2229 if(kGCplotESDCutZ == kTRUE){histograms->AddHistogram("ESD_CutZ_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
48682642 2230 if(kGCplotESDCutMinClsTPC == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPC_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
4f07ce38 2231 if(kGCplotESDCutMinClsTPCToF == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPCToF_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
48682642 2232
9640a3d1 2233 if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
037dc2db 2234 if(kGCplotESDAllV0s == kTRUE){histograms->AddHistogram("ESD_AllV0s_InvMass" ,"All V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
48682642 2235 if(kGCplotESDAllV0sCurrentFinder == kTRUE){histograms->AddHistogram("ESD_AllV0sCurrentFinder_InvMass" ,"All V0s Current Finder" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");}
2236
9c1cb6f7 2237 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
c1237864 2238 if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_goodtracks_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlphaG, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");}
9640a3d1 2239
6c84d371 2240 if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");}
2241 if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");}
a0b94e5c 2242
48682642 2243 if(kGCplotOmegaSpectra == kTRUE){
2244 histograms->AddHistogram("ESD_Omega_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2245 histograms->AddHistogram("ESD_Omega_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2246
2247 histograms->AddHistogram("ESD_Omega_Bck_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2248 histograms->AddHistogram("ESD_Omega_Bck_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2249 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2250 histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2251
2252 }
63e16c52 2253
6c84d371 2254 if(kGCplotPi0Spectra == kTRUE){
9c1cb6f7 2255 histograms->AddHistogram("ESD_Mother_alfa","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
4650969e 2256 histograms->AddHistogram("ESD_Mother_alfa_Pi0","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
dcdc851f 2257 histograms->AddHistogram("ESD_Mother_alfa_Eta","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
2258 histograms->AddHistogram("ESD_Background_alfa_Pi0","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
2259 histograms->AddHistogram("ESD_Background_alfa_Eta","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alpha","Counts");
5ce758b0 2260 // histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
6c84d371 2261 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
45bc8986 2262 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2263 histograms->AddHistogram("ESD_Mother_InvMass_vs_E_alpha" ,"Invariant Mass vs E" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","E [GeV]");
6c84d371 2264 histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
ebcfaa7e 2265 histograms->AddHistogram("ESD_Mother_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2266 histograms->AddHistogram("ESD_Mother_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2267 histograms->AddHistogram("ESD_Mother_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2268 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2269 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2270 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2271
2e2da371 2272 if(kGCLowMemoryConsumption == kFALSE){
2273 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2274 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvPHOS" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2275 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2276 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
f5f99b3d 2277
2e2da371 2278 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2279 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_Bck","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2280
2281 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2282 histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL_Bck" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2283
2284 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2285 histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2286 }
63e16c52 2287
ebcfaa7e 2288 // if(kGCdoNeutralMesonV0MCCheck == kTRUE){
86e91247 2289 histograms->AddHistogram("ESD_TrueBckGG_InvMass_vs_Pt","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
2290 histograms->AddHistogram("ESD_TrueBckCont_InvMass_vs_Pt","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
8de8695b 2291 histograms->AddHistogram("ESD_TruePi0Sec_InvMass_vs_Pt","Invariant mass vs Pt",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
2292 histograms->AddHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt","Invariant mass vs Pt",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Counts");
ebcfaa7e 2293 histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
037dc2db 2294 histograms->AddHistogram("ESD_TruePi0_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2295 histograms->AddHistogram("ESD_TruePi0_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2296 histograms->AddHistogram("ESD_TruePi0_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2297 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_1212" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2298 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0912" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
2299 histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0909" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");
ebcfaa7e 2300 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
d707e3cf 2301histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt_alpha" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2e2da371 2302
2303 if(kGCLowMemoryConsumption == kFALSE){
2304 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2305 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2306 histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2307
ebcfaa7e 2308 //}
037dc2db 2309
2e2da371 2310 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]");
2311 }
9640a3d1 2312 histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2313
2314
d7d7e825 2315 }
48682642 2316
6c84d371 2317 if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){
10e3319b 2318 for(Int_t m=0;m<6;m++){
9c1cb6f7 2319 histograms->AddHistogram(Form("%dESD_Mother_InvMass_vs_Pt",m) ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2320 }
037dc2db 2321 for(Int_t z=0;z<8;z++){
10e3319b 2322 for(Int_t m=0;m<6;m++){
5ce758b0 2323 histograms->AddHistogram(Form("%d%dESD_Mother_InvMass_vs_Pt",z,m) ,"ESD Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2324
037dc2db 2325 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 2326
037dc2db 2327
48682642 2328 histograms->AddHistogram(Form("%d%dESD_Background_InvMass",z,m),"Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
10e3319b 2329 histograms->AddHistogram(Form("%d%dESD_Mother_InvMass",z,m),"Invariant mass in z and m bins",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
48682642 2330
d5f99c2b 2331
48682642 2332 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]");
2333
2334
037dc2db 2335 histograms->AddHistogram(Form("%d%dESD_Background_InvMass_Fiducial",z,m),"Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
2336 }
2337 }
48682642 2338
6c84d371 2339 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
9c1cb6f7 2340 histograms->AddHistogram("ESD_Background_InvMass_vs_Pt_alpha" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2341
45bc8986 2342 histograms->AddHistogram("ESD_Background_InvMass_vs_E_alpha" ,"Background Invariant Mass vs E" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","E [GeV]");
2343
9c1cb6f7 2344 histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
9640a3d1 2345
2346 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]");
2347 histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts");
48682642 2348
d7d7e825 2349 }
037dc2db 2350
7bea833a 2351 if(kGCdoMCTruth){
2352 if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");}
2353 if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");}
2354 if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");}
2355 if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");}
2356 if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2357 if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");}
2358
2359
2360 if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2361 if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2362 if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2363 if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2364 if(kGCplotMCENTPCClusters == kTRUE){ histograms->AddHistogram("MC_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2365 if(kGCplotMCENITSClusters == kTRUE){ histograms->AddHistogram("MC_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2366
2367 if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2368 if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2369 if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2370 if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2371 if(kGCplotMCPNTPCClusters == kTRUE){ histograms->AddHistogram("MC_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");}
2372 if(kGCplotMCPNITSClusters == kTRUE){ histograms->AddHistogram("MC_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");}
2373
2374 if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2375 if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2376 if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2377 if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2378 if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2379
2380 if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2381 if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2382 if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2383 if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2384 if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2385 if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");}
2386
2387 if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2388 if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2389 if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2390 if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2391 if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2392
2393 if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2394 if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2395 if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2396 if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2397 if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2398
2399 if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2400 if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2401 if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2402 if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2403 if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2404 if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");}
2405 if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2406 if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2407 if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2408 if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2409 if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2410 if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2411 if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2412 if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2413
2414 if(kGCplotMCMotherSpectra == kTRUE){
2415 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2416 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2417 histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", "");
2418 }
2419
4f07ce38 2420 if(kGCplotMCPhysicalPrimaryChargedPt == kTRUE){ histograms->AddHistogram("MC_PhysicalPrimaryCharged_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
7bea833a 2421 if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2422 if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
c1237864 2423 if(kGCplotMCPi0PtvsRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_vs_Rapid" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
b8faf1bc 2424 if(kGCplotMCPi0PtvsRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_vs_Rapid_allDaughters" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} // OWN primary Pi0 debug
7bea833a 2425 if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2426 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
45bc8986 2427
2428 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2429 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2430 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
62ae0124 2431 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ4_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2432 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_SD_EvtQ5_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
45bc8986 2433
2434 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2435 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2436 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
62ae0124 2437 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ4_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2438 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_DD_EvtQ5_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2439
45bc8986 2440
2441 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ1_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2442 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ2_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2443 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ3_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
62ae0124 2444 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ4_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2445 if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_ND_EvtQ5_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
45bc8986 2446
7bea833a 2447 if(kGCplotMCPi0PtFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Fiducial" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2448 if(kGCplotMCPi0PtWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_withinAcceptance_Fiducial" ,"" , kGCnXBinsPt,kGCfirstXBinPt, kGClastXBinPt, "", "");}
2449 if(kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_ConvGamma_withinAcceptance_Fiducial","" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
10e3319b 2450 if(kGCplotMCPi0OpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2451 if(kGCplotMCPi0PtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
7bea833a 2452 if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2453 if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2454 if(kGCplotMCPi0Alpha == kTRUE){ histograms->AddHistogram("MC_Pi0_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");}
dcdc851f 2455 if(kGCplotMCEtaAlpha == kTRUE){ histograms->AddHistogram("MC_Eta_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");}
10e3319b 2456 if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
7bea833a 2457 if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2458 if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2459 if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2460 if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2461 if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2462 if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2463 if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2464 if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2465
2466
2467 if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2468 if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2469 if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2470 if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2471 if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2472 if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");}
2473 if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2474 if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2475 if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2476 if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2477 if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2478 if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2479 if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2480 if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2481
2482
2483
2484 if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2485 if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
c1237864 2486 if(kGCplotMCEtaPtvsRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_vs_Rapid" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
7bea833a 2487 if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");}
2488 if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
2489 if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");}
2490 if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");}
2491 if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2492 if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");}
2493 if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2494 if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");}
2495 if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2496 if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2497 if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");}
2498 if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");}
2499 if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");}
2500 }
10e3319b 2501 if(kGCplotMCEtaOpeningPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_OpeningAngle_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");}
2502 if(kGCplotMCEtaPtGammaPtConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ConvGamma_PtGamma_Pt","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");}
6c84d371 2503 }// end kGCrunNeutralMeson
037dc2db 2504
2505
2506 //--------------------------------------------------- 2 gamma Background -------------------------------------------------------
2507
2508 if(kGCcalculateBackground==kTRUE){
ada7a878 2509 histograms->AddHistogram("ESD_GlobalPrimaryVtxZ","Z primary vertex Global",300, -15., 15.,"Z[cm]","counts");
2510 histograms->AddHistogram("ESD_SPDPrimaryVtxZ","Z primary vertex SPD",300, -15., 15.,"Z[cm]","counts");
037dc2db 2511 histograms->AddHistogram("ESD_Z_distribution" ,"Z primary vertex" , 2000, -30, 30,"Z[cm]","counts");
45795c36 2512 histograms->AddHistogram("ESD_multiplicity_distribution" ,"multiplicity distribution" , 200, 0, 200,"counts","Multiplicity");
2513 histograms->AddHistogram("ESD_ZvsMultiplicity" ,"Z vs Multiplicity" , 1000, -10, 10,200,0,200,"Z[cm]","Multiplicity");
037dc2db 2514 }
9c1cb6f7 2515
2516 if(kGCRecalculateV0ForGamma==kTRUE){
2517 histograms->AddHistogram("ESD_RecalculateV0_InvMass","", kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");
2518 histograms->AddHistogram("ESD_RecalculateV0_Pt","",kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");
2519 histograms->AddHistogram("ESD_RecalculateV0_E_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2520 histograms->AddHistogram("ESD_RecalculateV0_P_dEdxP","",kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "",0);
2521 histograms->AddHistogram("ESD_RecalculateV0_cpa","",1000,-1.,1.,"","");
2522 histograms->AddHistogram("ESD_RecalculateV0_dca","",100,0.,10.,"","");
2523 histograms->AddHistogram("ESD_RecalculateV0_Rr","",250,0.,250.,"","");
2524 histograms->AddHistogram("ESD_RecalculateV0_normdistP","",250,0.,250.,"","");
2525 histograms->AddHistogram("ESD_RecalculateV0_normdistN","",250,0.,250.,"","");
2526
2527 histograms->AddHistogram("ESD_RecalculateGG_InvMass","",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts");
2528 histograms->AddHistogram("ESD_RecalculateGG_InvMass_vs_Pt","", kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]");
2529
2530 }
2531
2532
d7d7e825 2533}
48682642 2534
2535
2536
2537Int_t SetAnalysisCutSelection(TString analysisCutSelection){
2538 Int_t iResult=0;
2539
2540 // set the cuts depending on the Cut Selection Id
2541 // first number is dummy always set to 9
1ebf7aa6 2542 // const char* cutSelection = analysisCutSelection.Data();
67381a40 2543 if(analysisCutSelection.Length()!=c_array_size){
48682642 2544 cout<<"Cut selection has the wrong length!"<<endl;
2545 return 0;
2546 }
1ebf7aa6 2547
2548 char cutSelection[] = analysisCutSelection.Data();
2549 int array[c_array_size];
2550 const int N = sizeof(array) / sizeof(int);
2551 string2array( cutSelection, array );
2552
2553
2554
2555 Int_t goodId=array[0];
2556 Int_t v0FinderType=array[1];
2557 Int_t eProbCut=array[2];
2558 Int_t ededxSigmaCut=array[3];
2559 Int_t pidedxSigmaCut=array[4];
2560 Int_t piMomdedxSigmaCut=array[5];
2561 Int_t chi2GammaCut=array[6];
2562 Int_t singlePtCut=array[7];
2563 Int_t clsTPCCut=array[8];
2564 Int_t etaCut=array[9];
9c1cb6f7 2565 Int_t chi2MesonCut=array[10];
2566 Int_t LowPRejectionSigmaCut=array[11];
70ef88b5 2567 Int_t QtMaxCut=array[12];
10e3319b 2568 Int_t piMaxMomdedxSigmaCut=array[13];
67381a40 2569 Int_t alphaMesonCut=array[14];
111d75df 2570 Int_t minRCut=array[15];
c1237864 2571 Int_t RapidityMesonCut=array[16];
77ac6f3e 2572 Int_t BackgroundScheme=array[17];
2573 Int_t DegreesForRotationMethod=array[18];
2574 Int_t NumberOfRotations=array[19];
2f426a53 2575 Int_t removePileUp=array[20];
18a1e325 2576 Int_t selectV0AND=array[21];
6746e1e1 2577 Int_t multiplicityBin=array[22];
64f4118c 2578 Int_t isHeavyIon=array[23];
2579 Int_t useCentrality=array[24];
2580 Int_t centralityBin=array[25];
48682642 2581
64f4118c 2582 cout<<"CentralityBin::"<< centralityBin <<endl;
2583 cout<<"Use Centrality::"<< useCentrality <<endl;
2584 cout<<"Heavy Ion::"<< isHeavyIon<<endl;
6746e1e1 2585 cout<<"Multiplicity Bin::"<< multiplicityBin<<endl;
2586 cout<<"Select V0AND::"<< selectV0AND<<endl;
2587 cout<<"Remove PileUp::"<< removePileUp<<endl;
77ac6f3e 2588 cout<<"NumberOfRotations::"<<NumberOfRotations<<endl;
2589 cout<<"DegreesForRotationMethod::"<<DegreesForRotationMethod<<endl;
2590 cout<<"BackgroundScheme::"<<BackgroundScheme<<endl;
c1237864 2591 cout<<"RapidityMesonCut::"<<RapidityMesonCut<<endl;
45bc8986 2592 cout<<"minRCut::"<<minRCut<<endl;
2593 cout<<"alphaMesonCut::"<<alphaMesonCut<<endl;
10e3319b 2594 cout<<"piMaxMomdedxSigmaCut::"<<piMaxMomdedxSigmaCut<<endl;
70ef88b5 2595 cout<<"QtMaxCut:"<<QtMaxCut<<endl;
2596 cout<<"LowPRejectionSigmaCut:"<<LowPRejectionSigmaCut<<endl;
9c1cb6f7 2597 cout<<"chi2MesonCut: "<< chi2MesonCut<<endl;
48682642 2598 cout<<"etaCut: "<<etaCut<<endl;
2599 cout<<"clsTPCCut: "<<clsTPCCut<<endl;
2600 cout<<"singlePtCut: "<<singlePtCut<<endl;
2601 cout<<"chi2GammaCut: "<<chi2GammaCut<<endl;
2602 cout<<"piMomdedxSigmaCut: "<<piMomdedxSigmaCut<<endl;
2603 cout<<"pidedxSigmaCut: "<<pidedxSigmaCut <<endl;
2604 cout<<"ededxSigmaCut: "<<ededxSigmaCut <<endl;
2605 cout<<"eProbCut: "<< eProbCut<<endl;
2606 cout<<"v0FinderType: "<<v0FinderType <<endl;
2607 cout<<"goodId: "<<goodId <<endl;
2608
2609 if(goodId !=9){
2610 cout<<"Analysis Cut Selection too short or does not start with 9"<<endl;
2611 return iResult;
2612 }
2613
2614 switch (v0FinderType){
2615 case 0: // on fly V0 finder
2616 kGCUseOnFlyV0Finder=kTRUE;
2617 break;
2618 case 1: // offline V0 finder
2619 kGCUseOnFlyV0Finder=kFALSE;
2620 break;
2621 default:
2622 return iResult;
2623 }
9c1cb6f7 2624
48682642 2625 switch(eProbCut){
9c1cb6f7 2626 case 0:
2627 kGCprobElectron=0;
2628 break;
2629 case 1: