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