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