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