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