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