d7d7e825 |
1 | /** VERSION NUMBER 1.1 */ |
a19c3402 |
2 | |
bf008563 |
3 | /************************************************************************** |
4 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * * |
6 | * Author: Ana Marin, Kathrin Koch, Kenneth Aamodt |
7 | * Contact: kenneth.aamodt@cern.ch |
8 | * Version 1.1 * |
9 | * * |
10 | * Permission to use, copy, modify and distribute this software and its * |
11 | * documentation strictly for non-commercial purposes is hereby granted * |
12 | * without fee, provided that the above copyright notice appears in all * |
13 | * copies and that both the copyright notice and this permission notice * |
14 | * appear in the supporting documentation. The authors make no claims * |
15 | * about the suitability of this software for any purpose. It is * |
16 | * provided "as is" without express or implied warranty. * |
17 | **************************************************************************/ |
18 | |
d7d7e825 |
19 | class AliAnalysisDataContainer; |
20 | class AliGammaConversionHistograms; |
6c84d371 |
21 | class AliAnalysisTaskGammaConversion; |
a19c3402 |
22 | |
d7d7e825 |
23 | // set this to a number if you want to analyze a set number of files |
24 | // if it is 0 it will analyze the files listed in the data list |
6c84d371 |
25 | Int_t kGCnumberOfFilesToAnalyze=0; |
a19c3402 |
26 | |
6c84d371 |
27 | Bool_t kGCrunNeutralMeson = kTRUE; |
28 | Bool_t kGCrunJet = kFALSE; |
29 | Bool_t kGCrunChic = kFALSE; |
1e7846f4 |
30 | Bool_t kGCrunCF = kFALSE; |
d7d7e825 |
31 | |
a19c3402 |
32 | /** ---------------------------------- define cuts here ------------------------------------*/ |
33 | |
6c84d371 |
34 | Int_t kGCpidOfNegativeTrack=11; |
35 | Int_t kGCpidOfPositiveTrack=-11; |
a19c3402 |
36 | |
6c84d371 |
37 | Double_t kGCmaxRCut = 180.; |
38 | Double_t kGCetaCut = 1.2; |
39 | Double_t kGCptCut = 0.02; |
a0b94e5c |
40 | Double_t kGCmaxZCut = 240.; |
9640a3d1 |
41 | Double_t kGCchi2CutConversion = 30.; |
42 | Double_t kGCchi2CutMeson = 50.; |
a19c3402 |
43 | |
52a15f71 |
44 | Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut))); |
45 | Double_t kGCLineCutZValue = 7.; |
46 | |
47 | |
6c84d371 |
48 | Double_t kGCxVertexCut = 0.; |
49 | Double_t kGCyVertexCut = 0.; |
50 | Double_t kGCzVertexCut = 0.; |
a19c3402 |
51 | |
6c84d371 |
52 | Double_t kGCsigmaCutGammaMass=0.0001; |
a19c3402 |
53 | |
6c84d371 |
54 | Bool_t kGCuseImprovedVertex = kTRUE; |
a19c3402 |
55 | |
77880bd8 |
56 | Bool_t kGCUseOnFlyV0Finder = kTRUE; |
57 | |
a19c3402 |
58 | // define masses of different particles, this will be used by the KF particle |
59 | // together with the width to set mass constraints. Units in GeV. |
6c84d371 |
60 | Double_t kGCelectronMass = 0.00051099892; |
61 | Double_t kGCgammaMass = 0.; |
62 | Double_t kGCpi0Mass = 0.1349766; |
63 | Double_t kGCetaMass = 0.54751; |
a19c3402 |
64 | |
65 | // define the width constraint used by KF particle. |
6c84d371 |
66 | Double_t kGCgammaWidth = 0.01; |
67 | Double_t kGCpi0Width = 0.01; |
68 | Double_t kGCetaWidth = 0.01; |
a19c3402 |
69 | |
70 | // define the probability of track being an electron |
6c84d371 |
71 | Double_t kGCprobElectron = 0.002; |
32a6d407 |
72 | |
6c84d371 |
73 | Double_t kGCminOpeningAngleGhostCut = 0.01; |
a19c3402 |
74 | |
75 | /** ----------------------------------end define cuts here----------------------------------*/ |
76 | |
77 | /** -------------------------------- Phi/R Mapping ---------------------------------------*/ |
a0b94e5c |
78 | Int_t kGCnPhiIndex = 8; |
9640a3d1 |
79 | Int_t kGCnRIndex = 7; |
a19c3402 |
80 | |
6c84d371 |
81 | Double_t kGCminRadius = 0.; |
82 | Double_t kGCmaxRadius = 200.; |
83 | Double_t kGCminPhi = -TMath::Pi(); |
84 | Double_t kGCmaxPhi = TMath::Pi(); |
a19c3402 |
85 | /** ------------------------------- end Phi/R Mapping ------------------------------------*/ |
86 | |
a0b94e5c |
87 | Bool_t kGCdoOwnXYZCalculation = kFALSE; |
88 | |
07b54fba |
89 | Bool_t fWriteStandardAOD =kTRUE; // need to be true for train running? CKB |
a0b94e5c |
90 | |
a19c3402 |
91 | /** ------------------- define which histograms to plot here --------------------------------*/ |
92 | /** NB: to change the bin numbers, see below the histogram flags */ |
d7d7e825 |
93 | |
94 | // NEUTRAL MESON PLOTS |
6c84d371 |
95 | Bool_t kGCplotMCConversionR = kTRUE; |
96 | Bool_t kGCplotMCConversionZR = kTRUE; |
97 | Bool_t kGCplotMCConversionXY = kTRUE; |
98 | Bool_t kGCplotMCConversionOpeningAngle = kTRUE; |
9640a3d1 |
99 | Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE; |
100 | Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE; |
101 | |
6c84d371 |
102 | |
103 | Bool_t kGCplotMCEEnergy = kTRUE; |
104 | Bool_t kGCplotMCEPt = kTRUE; |
105 | Bool_t kGCplotMCEEta = kTRUE; |
106 | Bool_t kGCplotMCEPhi = kTRUE; |
107 | |
108 | Bool_t kGCplotMCPEnergy = kTRUE; |
109 | Bool_t kGCplotMCPPt = kTRUE; |
110 | Bool_t kGCplotMCPEta = kTRUE; |
111 | Bool_t kGCplotMCPPhi = kTRUE; |
112 | |
113 | Bool_t kGCplotMCallGammaEnergy = kTRUE; |
114 | Bool_t kGCplotMCallGammaPt = kTRUE; |
115 | Bool_t kGCplotMCallGammaEta = kTRUE; |
116 | Bool_t kGCplotMCallGammaPhi = kTRUE; |
117 | Bool_t kGCplotMCallGammaRapid = kTRUE; |
118 | |
119 | |
120 | Bool_t kGCplotMCConvGammaEnergy = kTRUE; |
121 | Bool_t kGCplotMCConvGammaPt = kTRUE; |
122 | Bool_t kGCplotMCConvGammaEta = kTRUE; |
123 | Bool_t kGCplotMCConvGammaPhi = kTRUE; |
124 | Bool_t kGCplotMCConvGammaRapid = kTRUE; |
125 | Bool_t kGCplotMCConvGammaPtvsEta = kTRUE; |
126 | |
127 | Bool_t kGCplotMCallDirectGammaEnergy = kTRUE; |
128 | Bool_t kGCplotMCallDirectGammaPt = kTRUE; |
129 | Bool_t kGCplotMCallDirectGammaEta = kTRUE; |
130 | Bool_t kGCplotMCallDirectGammaPhi = kTRUE; |
131 | Bool_t kGCplotMCallDirectGammaRapid = kTRUE; |
132 | |
133 | Bool_t kGCplotMCConvDirectGammaEnergy = kTRUE; |
134 | Bool_t kGCplotMCConvDirectGammaPt = kTRUE; |
135 | Bool_t kGCplotMCConvDirectGammaEta = kTRUE; |
136 | Bool_t kGCplotMCConvDirectGammaPhi = kTRUE; |
137 | Bool_t kGCplotMCConvDirectGammaRapid = kTRUE; |
138 | |
139 | Bool_t kGCplotMCMotherEta = kTRUE; |
140 | Bool_t kGCplotMCMotherRapid = kTRUE; |
141 | Bool_t kGCplotMCMotherPhi = kTRUE; |
142 | Bool_t kGCplotMCMotherPt = kTRUE; |
143 | Bool_t kGCplotMCMotherEnergy = kTRUE; |
144 | Bool_t kGCplotMCMotherMass = kTRUE; |
145 | Bool_t kGCplotMCMotherOpeningAngle = kTRUE; |
146 | Bool_t kGCplotMCMotherR = kTRUE; |
147 | Bool_t kGCplotMCMotherZR = kTRUE; |
148 | Bool_t kGCplotMCMotherXY = kTRUE; |
149 | Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE; |
150 | Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE; |
151 | Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE; |
152 | Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE; |
153 | Bool_t kGCplotMCMotherSpectra = kTRUE; |
154 | |
155 | Bool_t kGCplotMCPi0Eta = kTRUE; |
156 | Bool_t kGCplotMCPi0Rapid = kTRUE; |
157 | Bool_t kGCplotMCPi0Phi = kTRUE; |
158 | Bool_t kGCplotMCPi0Pt = kTRUE; |
159 | Bool_t kGCplotMCPi0Energy = kTRUE; |
160 | Bool_t kGCplotMCPi0Mass = kTRUE; |
161 | Bool_t kGCplotMCPi0OpeningAngle = kTRUE; |
162 | Bool_t kGCplotMCPi0R = kTRUE; |
163 | Bool_t kGCplotMCPi0ZR = kTRUE; |
164 | Bool_t kGCplotMCPi0XY = kTRUE; |
165 | Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE; |
166 | Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE; |
167 | Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE; |
168 | Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE; |
169 | Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE; |
170 | |
171 | Bool_t kGCplotMCPi0SecondaryEta = kTRUE; |
172 | Bool_t kGCplotMCPi0SecondaryRapid = kTRUE; |
173 | Bool_t kGCplotMCPi0SecondaryPhi = kTRUE; |
174 | Bool_t kGCplotMCPi0SecondaryPt = kTRUE; |
175 | Bool_t kGCplotMCPi0SecondaryEnergy = kTRUE; |
176 | Bool_t kGCplotMCPi0SecondaryMass = kTRUE; |
177 | Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE; |
178 | Bool_t kGCplotMCPi0SecondaryR = kTRUE; |
179 | Bool_t kGCplotMCPi0SecondaryZR = kTRUE; |
180 | Bool_t kGCplotMCPi0SecondaryXY = kTRUE; |
181 | Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE; |
182 | Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE; |
183 | Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE; |
184 | Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE; |
185 | |
186 | Bool_t kGCplotMCEtaEta = kTRUE; |
187 | Bool_t kGCplotMCEtaRapid = kTRUE; |
188 | Bool_t kGCplotMCEtaPhi = kTRUE; |
189 | Bool_t kGCplotMCEtaPt = kTRUE; |
190 | Bool_t kGCplotMCEtaEnergy = kTRUE; |
191 | Bool_t kGCplotMCEtaMass = kTRUE; |
192 | Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE; |
193 | Bool_t kGCplotMCEtaR = kTRUE; |
194 | Bool_t kGCplotMCEtaZR = kTRUE; |
195 | Bool_t kGCplotMCEtaXY = kTRUE; |
196 | Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE; |
197 | Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE; |
198 | Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE; |
199 | Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE; |
200 | Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE; |
32a6d407 |
201 | |
a19c3402 |
202 | // Histograms from esd tracks |
9640a3d1 |
203 | Bool_t kGCplotESDConversionR = kTRUE; |
204 | Bool_t kGCplotESDConversionZR = kTRUE; |
205 | Bool_t kGCplotESDConversionXY = kTRUE; |
206 | Bool_t kGCplotESDConversionOpeningAngle = kTRUE; |
207 | Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE; |
208 | Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE; |
209 | Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE; |
210 | Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE; |
211 | Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE; |
212 | Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE; |
213 | Bool_t kGCplotESDConvGammaEdEdxP = kTRUE; |
214 | Bool_t kGCplotESDConvGammaPdEdxP = kTRUE; |
215 | |
6c84d371 |
216 | |
217 | Bool_t kGCplotESDEEnergy = kTRUE; |
218 | Bool_t kGCplotESDEPt = kTRUE; |
219 | Bool_t kGCplotESDEEta = kTRUE; |
220 | Bool_t kGCplotESDEPhi = kTRUE; |
221 | |
222 | Bool_t kGCplotESDPEnergy = kTRUE; |
223 | Bool_t kGCplotESDPPt = kTRUE; |
224 | Bool_t kGCplotESDPEta = kTRUE; |
225 | Bool_t kGCplotESDPPhi = kTRUE; |
226 | |
227 | Bool_t kGCplotESDConvGammaEnergy = kTRUE; |
228 | Bool_t kGCplotESDConvGammaPt = kTRUE; |
229 | Bool_t kGCplotESDConvGammaEta = kTRUE; |
230 | Bool_t kGCplotESDConvGammaPhi = kTRUE; |
231 | Bool_t kGCplotESDConvGammaMass = kTRUE; |
232 | Bool_t kGCplotESDConvGammaWidth = kTRUE; |
233 | Bool_t kGCplotESDConvGammaChi2 = kTRUE; |
234 | Bool_t kGCplotESDConvGammaNDF = kTRUE; |
235 | Bool_t kGCplotESDConvGammaRapid = kTRUE; |
236 | Bool_t kGCplotESDConvGammaPtvsEta = kTRUE; |
237 | Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE; |
238 | Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE; |
239 | |
9640a3d1 |
240 | |
241 | |
6c84d371 |
242 | Bool_t kGCplotESDTrueConvGammaEnergy = kTRUE; |
243 | Bool_t kGCplotESDTrueConvGammaPt = kTRUE; |
244 | Bool_t kGCplotESDTrueConvGammaEta = kTRUE; |
245 | Bool_t kGCplotESDTrueConvGammaPhi = kTRUE; |
246 | Bool_t kGCplotESDTrueConvGammaMass = kTRUE; |
247 | Bool_t kGCplotESDTrueConvGammaWidth = kTRUE; |
248 | Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE; |
249 | Bool_t kGCplotESDTrueConvGammaNDF = kTRUE; |
250 | Bool_t kGCplotESDTrueConvGammaRapid = kTRUE; |
251 | Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE; |
252 | Bool_t kGCplotESDTrueConversionR = kTRUE; |
253 | Bool_t kGCplotESDTrueConversionZR = kTRUE; |
254 | Bool_t kGCplotESDTrueConversionXY = kTRUE; |
255 | Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE; |
9640a3d1 |
256 | Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE; |
257 | Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE; |
258 | Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE; |
259 | Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE; |
260 | Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE; |
261 | Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE; |
262 | Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE; |
263 | Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE; |
264 | |
265 | |
6c84d371 |
266 | Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE; |
267 | Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE; |
268 | Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE; |
269 | Bool_t kGCplotESDTrueConversionMCZR = kTRUE; |
270 | Bool_t kGCplotESDTrueConversionMCXY = kTRUE; |
271 | |
272 | Bool_t kGCplotESDNoCutConvGammaEnergy = kTRUE; |
273 | Bool_t kGCplotESDNoCutConvGammaPt = kTRUE; |
274 | Bool_t kGCplotESDNoCutConvGammaEta = kTRUE; |
275 | Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE; |
276 | Bool_t kGCplotESDNoCutConvGammaMass = kTRUE; |
277 | Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE; |
278 | Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE; |
279 | Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE; |
280 | Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE; |
281 | Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE; |
282 | Bool_t kGCplotESDNoCutConversionR = kTRUE; |
283 | Bool_t kGCplotESDNoCutConversionZR = kTRUE; |
284 | Bool_t kGCplotESDNoCutConversionXY = kTRUE; |
285 | Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE; |
9640a3d1 |
286 | Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE; |
287 | Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE; |
288 | Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE; |
289 | Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE; |
290 | |
291 | Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE; |
292 | Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE; |
293 | Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE; |
294 | Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE; |
6c84d371 |
295 | Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE; |
296 | Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE; |
297 | Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE; |
298 | Bool_t kGCplotESDNoCutConversionMCZR = kTRUE; |
299 | Bool_t kGCplotESDNoCutConversionMCXY = kTRUE; |
300 | |
301 | Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE; |
302 | Bool_t kGCplotESDMotherEnergy = kTRUE; |
303 | Bool_t kGCplotESDMotherPt = kTRUE; |
304 | Bool_t kGCplotESDMotherEta = kTRUE; |
305 | Bool_t kGCplotESDMotherPhi = kTRUE; |
306 | Bool_t kGCplotESDMotherMass = kTRUE; |
307 | Bool_t kGCplotESDMotherR = kTRUE; |
308 | Bool_t kGCplotESDMotherZR = kTRUE; |
309 | Bool_t kGCplotESDMotherXY = kTRUE; |
310 | Bool_t kGCplotESDMotherRapid = kTRUE; |
311 | |
312 | Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE; |
313 | Bool_t kGCplotESDBackgroundEnergy = kTRUE; |
314 | Bool_t kGCplotESDBackgroundPt = kTRUE; |
315 | Bool_t kGCplotESDBackgroundEta = kTRUE; |
316 | Bool_t kGCplotESDBackgroundPhi = kTRUE; |
317 | Bool_t kGCplotESDBackgroundMass = kTRUE; |
318 | Bool_t kGCplotESDBackgroundR = kTRUE; |
319 | Bool_t kGCplotESDBackgroundZR = kTRUE; |
320 | Bool_t kGCplotESDBackgroundXY = kTRUE; |
321 | Bool_t kGCplotESDBackgroundRapid = kTRUE; |
322 | |
a0b94e5c |
323 | Bool_t kGCplotMapping = kTRUE; |
6c84d371 |
324 | |
325 | Bool_t kGCplotResolutiondPt = kTRUE; |
326 | Bool_t kGCplotResolutiondR = kTRUE; |
327 | Bool_t kGCplotResolutiondZ = kTRUE; |
328 | |
329 | Bool_t kGCplotResolutiondRdPt = kTRUE; |
330 | |
331 | Bool_t kGCplotResolutionMCPt = kTRUE; |
332 | Bool_t kGCplotResolutionMCR = kTRUE; |
333 | Bool_t kGCplotResolutionMCZ = kTRUE; |
334 | |
335 | Bool_t kGCplotResolutionESDPt = kTRUE; |
336 | Bool_t kGCplotResolutionESDR = kTRUE; |
337 | Bool_t kGCplotResolutionESDZ = kTRUE; |
338 | |
339 | Bool_t kGCplotESDNumberOfV0s = kTRUE; |
340 | Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE; |
b5832f95 |
341 | Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE; |
a19c3402 |
342 | |
6c3a327c |
343 | // debug histograms |
6c84d371 |
344 | Bool_t kGCplotESDCutGetOnFly = kTRUE; |
345 | Bool_t kGCplotESDCutNContributors = kTRUE; |
346 | Bool_t kGCplotESDCutLikeSign = kTRUE; |
347 | Bool_t kGCplotESDCutRefit = kTRUE; |
348 | Bool_t kGCplotESDCutKink = kTRUE; |
349 | Bool_t kGCplotESDCutPIDProb = kTRUE; |
9640a3d1 |
350 | Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE; |
351 | Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE; |
6c84d371 |
352 | Bool_t kGCplotESDCutR = kTRUE; |
353 | Bool_t kGCplotESDCutLine = kTRUE; |
9640a3d1 |
354 | Bool_t kGCplotESDGoodV0s = kTRUE; |
6c84d371 |
355 | Bool_t kGCplotESDCutNDF = kTRUE; |
356 | Bool_t kGCplotESDCutChi2 = kTRUE; |
357 | Bool_t kGCplotESDCutEta = kTRUE; |
358 | Bool_t kGCplotESDCutPt = kTRUE; |
359 | Bool_t kGCplotESDTrueConvGammaTrackLength =kTRUE; |
360 | Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kTRUE; |
361 | |
362 | Bool_t kGCplotPi0Spectra = kTRUE; |
363 | Bool_t kGCplotEtaSpectra = kTRUE; |
a19c3402 |
364 | |
00a6a31a |
365 | /////////////Chi_c Analysis////////////////////////// |
6c84d371 |
366 | Bool_t kGCplotStatsElectrons = kTRUE; |
367 | Bool_t kGCplotRecENegJPsiPtDiff = kTRUE; |
368 | Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE; |
369 | Bool_t kGCplotRecEPosENegR = kTRUE; |
370 | Bool_t kGCplotRecEPosENegEta = kTRUE; |
371 | Bool_t kGCplotESDInvMassePluseMinus = kTRUE; |
372 | Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE; |
373 | Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE; |
374 | Bool_t kGCplotESDElectronPosNegPt = kTRUE; |
375 | Bool_t kGCplotESDElectronPosNegEta = kTRUE; |
376 | Bool_t kGCplotESDElectronPosNegAngle = kTRUE; |
377 | Bool_t kGCplotMCElectronPosNegPt = kTRUE; |
378 | Bool_t kGCplotMCElectronPosNegEta = kTRUE; |
379 | Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE; |
380 | Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE; |
381 | Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE; |
382 | Bool_t kGCplotTableElectrons = kTRUE; |
383 | Bool_t kGCplotESDEPosBackground = kTRUE; |
384 | Bool_t kGCplotESDENegBackground = kTRUE; |
385 | Bool_t kGCplotESDEPosENegBackground = kTRUE; |
386 | Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE; |
387 | Bool_t kGCplotESDePoseNegAngle = kTRUE; |
388 | Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE; |
389 | Bool_t kGCplotMCLabels = kTRUE; |
00a6a31a |
390 | /////////////////////////////////////////////////////////////////// |
a19c3402 |
391 | |
d7d7e825 |
392 | //---------------- Gamma Jet analysis ---------------------------- |
6c84d371 |
393 | Bool_t kGCplotdPhiHdrGam = kTRUE; |
394 | Bool_t kGCplotdPhiHdrGamIsolated = kTRUE; |
395 | Bool_t kGCplotMinimumIsoDistance = kTRUE; |
396 | Bool_t kGCplotFFzHdrGam = kTRUE; |
397 | Bool_t kGCplotImbalanceHdrGam = kTRUE; |
d7d7e825 |
398 | //---------------------------------------------------------------- |
399 | |
400 | |
a19c3402 |
401 | /** ----------------- end define which histograms to plot here -------------------------------*/ |
402 | |
403 | |
404 | |
405 | /** ----------- Define the binning for the different plot types here -------------------------*/ |
406 | //R-plots |
6c84d371 |
407 | Int_t kGCnXBinsR = 500; |
408 | Double_t kGCfirstXBinR = 0.; |
409 | Double_t kGClastXBinR = 250.; |
a19c3402 |
410 | |
411 | //ZR-plots |
6c84d371 |
412 | Int_t kGCnXBinsZR = 1200; |
413 | Double_t kGCfirstXBinZR = -300.; |
414 | Double_t kGClastXBinZR = 300.; |
415 | Int_t kGCnYBinsZR = 500; |
416 | Double_t kGCfirstYBinZR = 0.; |
417 | Double_t kGClastYBinZR = 250.; |
a19c3402 |
418 | |
419 | //XY-plots |
6c84d371 |
420 | Int_t kGCnXBinsXY = 1000; |
421 | Double_t kGCfirstXBinXY = -250.; |
422 | Double_t kGClastXBinXY = 250.; |
423 | Int_t kGCnYBinsXY = 1000; |
424 | Double_t kGCfirstYBinXY = -250.; |
425 | Double_t kGClastYBinXY = 250.; |
a19c3402 |
426 | |
427 | //OpenAngle-plots |
6c84d371 |
428 | Int_t kGCnXBinsOpeningAngle = 400; |
429 | Double_t kGCfirstXBinOpeningAngle = 0.; |
430 | Double_t kGClastXBinOpeningAngle = TMath::Pi(); |
a19c3402 |
431 | |
9640a3d1 |
432 | //CosPointingAngle-plots |
433 | Int_t kGCnXBinsCosPointingAngle = 400; |
434 | Double_t kGCfirstXBinCosPointingAngle = 0.99; |
435 | Double_t kGClastXBinCosPointingAngle = 1.01; |
436 | |
437 | //DCA Daugthers-plots |
438 | Int_t kGCnXBinsDcaDaughters = 400; |
439 | Double_t kGCfirstXBinDcaDaughters= 0.; |
440 | Double_t kGClastXBinDcaDaughters = 5.; |
441 | |
442 | //Norm DCA dist Daugthers-plots |
443 | Int_t kGCnXBinsNormDcaDistDaughters = 400; |
444 | Double_t kGCfirstXBinNormDcaDistDaughters= 0.; |
445 | Double_t kGClastXBinNormDcaDistDaughters = 10.; |
446 | |
447 | //LikelihoodAP Plots |
448 | Int_t kGCnXBinsLikelihoodAP = 400; |
449 | Double_t kGCfirstXBinLikelihoodAP= 0.; |
450 | Double_t kGClastXBinLikelihoodAP = 2.; |
451 | |
452 | |
a19c3402 |
453 | //Energy-plots |
6c84d371 |
454 | Int_t kGCnXBinsEnergy = 200; |
455 | Double_t kGCfirstXBinEnergy = 0.; |
456 | Double_t kGClastXBinEnergy = 50.; |
a19c3402 |
457 | |
9640a3d1 |
458 | //P-plots |
459 | Int_t kGCnXBinsP = 200; |
460 | Double_t kGCfirstXBinP = 0.; |
461 | Double_t kGClastXBinP = 50.; |
462 | |
463 | //dEdx-plots |
464 | Int_t kGCnYBinsdEdx = 400; |
465 | Double_t kGCfirstYBindEdx = 0.; |
466 | Double_t kGClastYBindEdx = 400.; |
467 | |
468 | //Asymmetry-plots |
469 | Int_t kGCnYBinsAsymmetry = 200; |
470 | Double_t kGCfirstYBinAsymmetry = 0.; |
471 | Double_t kGClastYBinAsymmetry = 1.; |
472 | |
473 | |
a19c3402 |
474 | //Pt-plots |
6c84d371 |
475 | Int_t kGCnXBinsPt = 200; |
476 | Double_t kGCfirstXBinPt = 0.; |
477 | Double_t kGClastXBinPt = 50.; |
a19c3402 |
478 | |
479 | //Eta-plots |
6c84d371 |
480 | Int_t kGCnXBinsEta = 40; |
481 | Double_t kGCfirstXBinEta = -2.; |
482 | Double_t kGClastXBinEta = 2.; |
a19c3402 |
483 | |
32a6d407 |
484 | //Rapidity |
6c84d371 |
485 | Int_t kGCnXBinsRapid = 200; |
486 | Double_t kGCfirstXBinRapid = -10.; |
487 | Double_t kGClastXBinRapid = 10.; |
32a6d407 |
488 | |
a19c3402 |
489 | //Phi-plots |
6c84d371 |
490 | Int_t kGCnXBinsPhi = 72; |
491 | Double_t kGCfirstXBinPhi = -TMath::Pi(); |
492 | Double_t kGClastXBinPhi = TMath::Pi(); |
a19c3402 |
493 | |
494 | //Mapping-plots |
6c84d371 |
495 | Int_t kGCnXBinsMapping = 400; |
496 | Double_t kGCfirstXBinMapping = -100.; |
497 | Double_t kGClastXBinMapping = 100.; |
498 | Int_t kGCnYBinsMapping = 40; |
499 | Double_t kGCfirstYBinMapping = -2; |
500 | Double_t kGClastYBinMapping = 2; |
a19c3402 |
501 | |
502 | //ResolutionPlots |
503 | //RESdPt |
6c84d371 |
504 | Int_t kGCnXBinsResdPt=500; |
505 | Int_t kGCfirstXBinResdPt= 0; |
506 | Int_t kGClastXBinResdPt=5; |
507 | Int_t kGCnYBinsResdPt=1000; |
508 | Int_t kGCfirstYBinResdPt= -5; |
509 | Int_t kGClastYBinResdPt=5; |
a19c3402 |
510 | |
511 | //RESdR |
6c84d371 |
512 | Int_t kGCnXBinsResdR=500; |
513 | Int_t kGCfirstXBinResdR= 0; |
514 | Int_t kGClastXBinResdR=250; |
515 | Int_t kGCnYBinsResdR=100; |
516 | Int_t kGCfirstYBinResdR= -25; |
517 | Int_t kGClastYBinResdR=25; |
a19c3402 |
518 | |
519 | //RESdZ |
6c84d371 |
520 | Int_t kGCnXBinsResdZ=80; |
521 | Int_t kGCfirstXBinResdZ= -20; |
522 | Int_t kGClastXBinResdZ=20; |
523 | Int_t kGCnYBinsResdZ=80; |
524 | Int_t kGCfirstYBinResdZ= -20; |
525 | Int_t kGClastYBinResdZ=20; |
a19c3402 |
526 | |
527 | //RESdRdPt |
6c84d371 |
528 | Int_t kGCnXBinsResdRdPt=440; |
529 | Int_t kGCfirstXBinResdRdPt= -22; |
530 | Int_t kGClastXBinResdRdPt=22; |
531 | Int_t kGCnYBinsResdRdPt=100; |
532 | Int_t kGCfirstYBinResdRdPt= -5; |
533 | Int_t kGClastYBinResdRdPt=5; |
a19c3402 |
534 | |
a19c3402 |
535 | //RESMCPt |
6c84d371 |
536 | Int_t kGCnXBinsResPt=100; |
537 | Int_t kGCfirstXBinResPt= 0; |
538 | Int_t kGClastXBinResPt=5; |
a19c3402 |
539 | |
540 | //RESMCR |
6c84d371 |
541 | Int_t kGCnXBinsResR=500; |
542 | Int_t kGCfirstXBinResR= 0; |
543 | Int_t kGClastXBinResR=250; |
a19c3402 |
544 | |
545 | //RESMCZ |
6c84d371 |
546 | Int_t kGCnXBinsResZ=500; |
547 | Int_t kGCfirstXBinResZ= 0; |
548 | Int_t kGClastXBinResZ=250; |
a19c3402 |
549 | |
550 | //GammaMass-plots |
6c84d371 |
551 | Int_t kGCnXBinsGammaMass = 4000; |
552 | Double_t kGCfirstXBinGammaMass = 0.; |
553 | Double_t kGClastXBinGammaMass = 1.; |
a19c3402 |
554 | |
555 | //Pi0Mass-plots |
6c84d371 |
556 | Int_t kGCnXBinsPi0Mass = 100; |
557 | Double_t kGCfirstXBinPi0Mass = 0.; |
558 | Double_t kGClastXBinPi0Mass = 1.; |
a19c3402 |
559 | |
560 | //EtaMass-plots |
6c84d371 |
561 | Int_t kGCnXBinsEtaMass = 100; |
562 | Double_t kGCfirstXBinEtaMass = 0.; |
563 | Double_t kGClastXBinEtaMass = 1.; |
a19c3402 |
564 | |
565 | //GammaWidth-plots |
6c84d371 |
566 | Int_t kGCnXBinsGammaWidth = 100; |
567 | Double_t kGCfirstXBinGammaWidth = 0.; |
568 | Double_t kGClastXBinGammaWidth = 1.; |
a19c3402 |
569 | |
570 | //GammaChi2-plots |
6c84d371 |
571 | Int_t kGCnXBinsGammaChi2 = 100; |
572 | Double_t kGCfirstXBinGammaChi2 = 0; |
573 | Double_t kGClastXBinGammaChi2 = 100.; |
a19c3402 |
574 | |
575 | //GammaNDF-plots |
6c84d371 |
576 | Int_t kGCnXBinsGammaNDF = 10; |
577 | Double_t kGCfirstXBinGammaNDF = 0.; |
578 | Double_t kGClastXBinGammaNDF = 10.; |
a19c3402 |
579 | |
580 | //Spectra-plots |
6c84d371 |
581 | Int_t kGCnXBinsSpectra = 500; |
582 | Double_t kGCfirstXBinSpectra = 0.; |
583 | Double_t kGClastXBinSpectra = 1.; |
584 | Int_t kGCnYBinsSpectra = 100; |
585 | Double_t kGCfirstYBinSpectra = 0.; |
586 | Double_t kGClastYBinSpectra = 50.; |
32a6d407 |
587 | |
588 | //track length plots |
6c84d371 |
589 | Int_t kGCnXBinsTrackLength = 1000; |
590 | Double_t kGCfirstXBinTrackLength = 0; |
591 | Double_t kGClastXBinTrackLength = 500; |
a19c3402 |
592 | |
00a6a31a |
593 | /////////Chic_Analysis/////////////////////////////////// |
6c84d371 |
594 | Int_t kGCnXBinsEPt = 1000; |
595 | Double_t kGCfirstXBinEPt = 0.; |
596 | Double_t kGClastXBinJPsiPt = 10; |
00a6a31a |
597 | |
6c84d371 |
598 | Int_t kGCnXBinsJPsiMass = 1000; |
599 | Double_t kGCfirstXBinJPsiMass = 0.; |
600 | Double_t kGClastXBinJPsiMass = 10.; |
00a6a31a |
601 | |
6c84d371 |
602 | Int_t kGCnXBinsChicMass = 1000; |
603 | Double_t kGCfirstXBinChicMass = 0.; |
604 | Double_t kGClastXBinChicMass = 10.; |
00a6a31a |
605 | |
6c84d371 |
606 | Int_t kGCnXBinsPi0Mass = 1000; |
607 | Double_t kGCfirstXBinPi0Mass = 0.; |
608 | Double_t kGClastXBinPi0Mass = 1.; |
00a6a31a |
609 | |
6c84d371 |
610 | Int_t kGCnXBinsEPosNegPt = 1000; |
611 | Double_t kGCfirstXBinEPosNegPt = 0.; |
612 | Double_t kGClastXBinEPosNegPt = 10.; |
00a6a31a |
613 | |
6c84d371 |
614 | Int_t kGCnXBinsEPosNegEta = 200; |
615 | Double_t kGCfirstXBinEPosNegEta = -1.2; |
616 | Double_t kGClastXBinEPosNegEta = 1.2; |
00a6a31a |
617 | |
6c84d371 |
618 | Int_t kGCnXBinsEPosNegAngle = 200; |
619 | Double_t kGCfirstXBinEPosNegAngle = 0.; |
620 | Double_t kGClastXBinEPosNegAngle = TMath::Pi(); |
00a6a31a |
621 | |
6c84d371 |
622 | Int_t kGCnXBinsEBackground = 1000; |
623 | Double_t kGCfirstXBinEBackground = 0.; |
624 | Double_t kGClastXBinEBackground = 10.; |
00a6a31a |
625 | |
6c84d371 |
626 | Int_t kGCnXBinsEBackgroundCut = 100; |
627 | Double_t kGCfirstXBinEBackgroundCut = 0.; |
628 | Double_t kGClastXBinEBackgroundCut = 0.015.; |
00a6a31a |
629 | |
6c84d371 |
630 | Int_t kGCnXBinsMCLabels = 10; |
631 | Double_t kGCfirstXBinMCLabels = 0.; |
632 | Double_t kGClastXBinMCLabels = 10.; |
00a6a31a |
633 | |
6c84d371 |
634 | Int_t kGCnElementsElectronTable = 19; |
00a6a31a |
635 | |
636 | //18 elements |
6c84d371 |
637 | const char * kGCelectronTable[] = { |
00a6a31a |
638 | "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", |
639 | "ESDtracks", "Kink Cut", |
640 | "Vertex Cut","TRDOut","TRDrefit","TPCrefit", |
641 | "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi", |
642 | "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2" |
00a6a31a |
643 | }; |
644 | |
d7d7e825 |
645 | |
646 | // for Gamma Jet analysis |
6c84d371 |
647 | Int_t kGCnXBinsdphiHdrGam = 100; |
648 | Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2(); |
649 | Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2(); |
d7d7e825 |
650 | |
6c84d371 |
651 | Int_t kGCnXBinsMinimumIsoDistance = 100; |
652 | Double_t kGCfirstXBinMinimumIsoDistance = 0.; |
653 | Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2(); |
d7d7e825 |
654 | |
6c84d371 |
655 | Int_t kGCnXBinsFFzHdrGam = 100; |
656 | Double_t kGCfirstXBinFFzHdrGam = 0.; |
657 | Double_t kGClastXBinFFzHdrGam = 5; |
d7d7e825 |
658 | |
6c84d371 |
659 | Int_t kGCnXBinsImbalanceHdrGam = 100; |
660 | Double_t kGCfirstXBinImbalanceHdrGam = -5.; |
661 | Double_t kGClastXBinImbalanceHdrGam = 5.; |
00a6a31a |
662 | //////////////////////////////////////////////////////// |
663 | |
664 | |
a19c3402 |
665 | /** ---------- end Define the binning for the different plot types here ----------------------*/ |
666 | |
667 | |
a19c3402 |
668 | /************************************************************************************************ |
669 | * * |
670 | * * |
671 | * EVERYTHING BELOW IS FOR DEVELOPERS ONLY * |
672 | * * |
673 | * * |
674 | ************************************************************************************************/ |
6c84d371 |
675 | TString kGCoutputFileName = "histogramsGammaConversion"; |
676 | TString kGCoutputFileAppendix = ""; |
677 | TString kGCdataList = ""; |
678 | Bool_t kGCwriteNtuple = kFALSE; |
679 | // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW |
680 | Bool_t kGCusePWG4PartCorr = kTRUE; |
d7d7e825 |
681 | |
682 | /** Flag to enable running on train */ |
6c84d371 |
683 | Bool_t kGCrunOnTrain = kFALSE; |
d7d7e825 |
684 | |
685 | /** ------------------------------ Monte Carlo flag -----------------------------------------*/ |
6c84d371 |
686 | Bool_t kGCdoMCTruth = kTRUE; |
d7d7e825 |
687 | /** ---------------------------- end Monte Carlo flag ---------------------------------------*/ |
688 | |
b5832f95 |
689 | /** ------------------------------ Selecting trigger CINT1B -----------------------------------*/ |
690 | Bool_t kGCtriggerCINT1B = kFALSE; |
691 | /** ---------------------------- end Monte Carlo flag ---------------------------------------*/ |
692 | |
d7d7e825 |
693 | /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/ |
6c84d371 |
694 | Bool_t kGCuseKFParticle = kTRUE; |
695 | Bool_t kGCuseESDTrack = kFALSE; |
d7d7e825 |
696 | /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/ |
697 | |
9640a3d1 |
698 | /**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/ |
699 | Bool_t kGCdodEdxSigmaCut= kTRUE; |
700 | /**------------------------------end Flag to apply NsigmadEdx cut ----------*/ |
77880bd8 |
701 | Double_t kGCPIDnSigmaAboveElectronLine=10; |
9640a3d1 |
702 | Double_t kGCPIDnSigmaBelowElectronLine=-4; |
703 | Double_t kGCPIDnSigmaAbovePionLine=0; |
704 | Double_t kGCPIDMinPnSigmaAbovePionLine=5; |
705 | |
706 | |
d7d7e825 |
707 | |
07b54fba |
708 | Bool_t kGCcalculateBackground = kTRUE; |
6c3a327c |
709 | |
710 | Bool_t scanArguments(TString arguments){ |
711 | Bool_t iResult = kTRUE; |
32a6d407 |
712 | |
6c3a327c |
713 | TString allArgs=arguments; |
714 | TString argument; |
715 | int bMissingParam=0; |
32a6d407 |
716 | |
6c3a327c |
717 | TObjArray* pTokens=allArgs.Tokenize(" "); |
718 | if (pTokens) { |
32a6d407 |
719 | |
6c3a327c |
720 | for(int i=0; i<pTokens->GetEntries() && iResult==kTRUE; i++) { |
721 | argument=((TObjString*)pTokens->At(i))->GetString(); |
32a6d407 |
722 | |
6c3a327c |
723 | if(argument.IsNull()) continue; |
724 | // -- deconvolute-time option |
725 | if(argument.CompareTo("-data-list") == 0){ |
726 | if((bMissingParam=(++i>=pTokens->GetEntries()))) break; |
6c84d371 |
727 | kGCdataList = ((TObjString*)pTokens->At(i))->GetString(); |
728 | if(kGCdataList.IsNull()){ |
6c3a327c |
729 | cout<<"-data-list is NULL"<<endl; |
730 | iResult=kFALSE; |
731 | } |
732 | else{ |
6c84d371 |
733 | cout<<"Data list is set to: "<<kGCdataList<<endl; |
6c3a327c |
734 | } |
735 | } |
736 | else if(argument.CompareTo("-output-file-name") == 0){ |
737 | if((bMissingParam=(++i>=pTokens->GetEntries()))) break; |
6c84d371 |
738 | kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString(); |
739 | if(kGCoutputFileName.IsNull()){ |
6c3a327c |
740 | cout<<"-output-file-name is NULL"<<endl; |
741 | iResult=kFALSE; |
742 | } |
743 | else{ |
6c84d371 |
744 | cout<<"Setting output file name to: "<<kGCoutputFileName<<endl; |
6c3a327c |
745 | } |
746 | } |
5e55d806 |
747 | else if (argument.CompareTo("-bg-off") == 0){ |
748 | kGCcalculateBackground =kFALSE; |
749 | } |
77880bd8 |
750 | else if (argument.CompareTo("-use-offline-finder") == 0){ |
751 | kGCUseOnFlyV0Finder = kFALSE; |
752 | } |
6c3a327c |
753 | else if (argument.CompareTo("-write-ntuple") == 0){ |
754 | cout<<"Writing ntuple to file."<<endl; |
6c84d371 |
755 | kGCwriteNtuple = kTRUE; |
6c3a327c |
756 | } |
d7d7e825 |
757 | else if (argument.CompareTo("-run-on-train") == 0){ |
758 | cout<<"Running on train"<<endl; |
6c84d371 |
759 | kGCrunOnTrain = kTRUE; |
d7d7e825 |
760 | } |
761 | else if (argument.CompareTo("-run-jet") == 0){ |
762 | cout<<"Running jet analysis"<<endl; |
6c84d371 |
763 | kGCrunJet = kTRUE; |
d7d7e825 |
764 | } |
765 | else if (argument.CompareTo("-run-neutralmeson") == 0){ |
766 | cout<<"Running neutral meson analysis"<<endl; |
6c84d371 |
767 | kGCrunNeutralMeson = kTRUE; |
d7d7e825 |
768 | } |
769 | else if (argument.CompareTo("-run-neutral-meson") == 0){ |
770 | cout<<"Running neutral meson analysis"<<endl; |
6c84d371 |
771 | kGCrunNeutralMeson = kTRUE; |
d7d7e825 |
772 | } |
773 | else if (argument.CompareTo("-run-chic") == 0){ |
774 | cout<<"Running Chi_c analysis"<<endl; |
6c84d371 |
775 | kGCrunChic = kTRUE; |
d7d7e825 |
776 | } |
1e7846f4 |
777 | else if (argument.CompareTo("-run-cf") == 0){ |
778 | cout<<"Running CF"<<endl; |
779 | kGCrunCF = kTRUE; |
780 | } |
781 | |
d7d7e825 |
782 | else if (argument.CompareTo("-jet-off") == 0){ |
783 | cout<<"Skipping jet analysis"<<endl; |
6c84d371 |
784 | kGCrunJet = kFALSE; |
d7d7e825 |
785 | } |
786 | else if (argument.CompareTo("-neutralmeson-off") == 0){ |
787 | cout<<"Skipping neutral meson analysis"<<endl; |
6c84d371 |
788 | kGCrunNeutralMeson = kFALSE; |
d7d7e825 |
789 | } |
790 | else if (argument.CompareTo("-neutral-meson-off") == 0){ |
791 | cout<<"Skipping neutral meson analysis"<<endl; |
6c84d371 |
792 | kGCrunNeutralMeson = kFALSE; |
d7d7e825 |
793 | } |
794 | else if (argument.CompareTo("-chic-off") == 0){ |
795 | cout<<"Skipping Chi_c analysis"<<endl; |
6c84d371 |
796 | kGCrunChic = kFALSE; |
d7d7e825 |
797 | } |
798 | else if (argument.CompareTo("-mc-off") == 0){ |
6c84d371 |
799 | cout<<"Switching off kGCdoMCTruth"<<endl; |
800 | kGCdoMCTruth = kFALSE; |
d7d7e825 |
801 | } |
b5832f95 |
802 | else if (argument.CompareTo("-trigger-CINT1B") == 0){ |
803 | cout<<"Selecting ONLY kGCtriggerCINT1B"<<endl; |
804 | kGCtriggerCINT1B = kTRUE; |
805 | } |
a0b94e5c |
806 | else if (argument.CompareTo("-use-own-xyz") == 0){ |
807 | cout<<"Switching on use own xyz calculation"<<endl; |
808 | kGCdoOwnXYZCalculation = kTRUE; |
809 | } |
6c3a327c |
810 | else if(argument.CompareTo("-append-to-output-file") == 0){ |
811 | if((bMissingParam=(++i>=pTokens->GetEntries()))) break; |
a0b94e5c |
812 | kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString(); |
6c84d371 |
813 | if(kGCoutputFileAppendix.IsNull()){ |
6c3a327c |
814 | cout<<"-appending-to-output-file is NULL"<<endl; |
815 | iResult=kFALSE; |
816 | } |
817 | else{ |
6c84d371 |
818 | cout<<"Appending to the output file: "<<kGCoutputFileAppendix<<endl; |
6c3a327c |
819 | } |
820 | } |
821 | } |
6c3a327c |
822 | delete pTokens; |
823 | } |
824 | if (bMissingParam) { |
825 | cout<<"Missing parameter for argument "<< argument.Data()<<endl; |
826 | iResult=kFALSE; |
827 | } |
828 | return iResult; |
829 | } |
830 | |
d7d7e825 |
831 | void SetVersionLibrary(){ |
832 | // Check if the file $ALICE_ROOT/PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx exists. |
6c84d371 |
833 | // If yes, we set kGCusePWG4PartCorr to false since we have a newer version |
834 | // If no, kGCusePWG4PartCorr is true. |
a0b94e5c |
835 | |
d7d7e825 |
836 | TString file = gSystem->Getenv("ALICE_ROOT"); |
837 | file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx"; |
a0b94e5c |
838 | |
d7d7e825 |
839 | ifstream stream; |
840 | stream.open(file.Data()); |
a0b94e5c |
841 | |
d7d7e825 |
842 | if(!stream){ |
6c84d371 |
843 | kGCusePWG4PartCorr=kFALSE; |
d7d7e825 |
844 | } |
845 | else{ |
6c84d371 |
846 | kGCusePWG4PartCorr=kTRUE; |
d7d7e825 |
847 | } |
848 | stream.close(); |
849 | } |
850 | |
851 | |
852 | |
6c84d371 |
853 | AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments,AliAnalysisDataContainer *cin_esd=NULL){ |
32a6d407 |
854 | |
6c3a327c |
855 | if(!scanArguments(arguments)){ |
856 | break; |
857 | } |
a0b94e5c |
858 | |
d7d7e825 |
859 | SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used |
a0b94e5c |
860 | |
6c84d371 |
861 | if(cin_esd == NULL && kGCrunOnTrain == kTRUE){ |
862 | cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<<endl; |
d7d7e825 |
863 | cout<<" you must also supply the AliAnalysisDataContainer as an argument"<<endl; |
864 | return; |
865 | } |
a0b94e5c |
866 | |
6c84d371 |
867 | if(cin_esd != NULL && kGCrunOnTrain == kFALSE){ |
868 | cout<<"Error: kGCrunOnTrain flag is set to false but the input AliAnalysisDataContainer is not null"<<endl; |
869 | cout<<" add -run-on-train to the arguments to turn switch kGCrunOnTrain to kTRUE"<<endl; |
d7d7e825 |
870 | return; |
871 | } |
6c84d371 |
872 | if(kGCrunOnTrain == kFALSE){ |
873 | if(kGCnumberOfFilesToAnalyze==0){ |
874 | ifstream dataInStream; |
875 | dataInStream.open(kGCdataList.Data()); |
876 | if ( !dataInStream ){ |
877 | cout<<"Data list file does not exist: "<<kGCdataList.Data()<<endl; |
878 | return 0; |
6c3a327c |
879 | } |
6c84d371 |
880 | string line; |
881 | while ( !dataInStream.eof() ) |
882 | { |
883 | getline(dataInStream, line); |
884 | if(line.compare("") != 0){//checks if there is an empty line in the data list |
885 | kGCnumberOfFilesToAnalyze++; |
886 | } |
887 | } |
888 | } |
889 | cout<<"Number Of files to analyze: "<<kGCnumberOfFilesToAnalyze<<endl; |
a0b94e5c |
890 | |
d7d7e825 |
891 | build();//build (if necessary) and load the libraries needed |
a0b94e5c |
892 | |
6c84d371 |
893 | gROOT->LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro |
9640a3d1 |
894 | } |
a0b94e5c |
895 | |
07b54fba |
896 | if(!kGCrunOnTrain){ |
897 | // for the train leave this to the steering macro |
9640a3d1 |
898 | AliLog::SetGlobalDebugLevel(0); |
06688fb6 |
899 | AliLog::SetGlobalLogLevel(AliLog::kFatal); |
07b54fba |
900 | } |
901 | // ------------------------------------------------------------------------ |
a0b94e5c |
902 | |
903 | // for CF |
904 | |
905 | //Container def. |
906 | const Double_t ptmin = kGCfirstXBinPt; |
907 | const Double_t ptmax = kGClastXBinPt; |
908 | const Double_t etamin = kGCfirstXBinEta; |
909 | const Double_t etamax = kGClastXBinEta; |
910 | const Double_t massmin = kGCfirstXBinPi0Mass; |
911 | const Double_t massmax = kGClastXBinPi0Mass; |
912 | |
913 | |
914 | // sensitive variables |
915 | UInt_t ipt = 0; |
916 | UInt_t ieta = 1; |
917 | UInt_t imass = 2; |
918 | |
919 | //how many selection steps |
920 | UInt_t nstep = 15; |
921 | const Int_t nvar = 3; |
922 | const Int_t nbin0 = kGCnXBinsPt; |
923 | const Int_t nbin1 = kGCnXBinsEta; |
924 | const Int_t nbin2 = kGCnXBinsPi0Mass; |
925 | |
926 | //arrays for the number of bins in each dimension |
927 | Int_t iBin[nvar]; |
928 | iBin[0] = nbin0; |
929 | iBin[1] = nbin1; |
930 | iBin[2] = nbin2; |
931 | |
932 | //arrays for lower bounds |
933 | Double_t *binLim0 = new Double_t[nbin0+1]; |
934 | Double_t *binLim1 = new Double_t[nbin1+1]; |
935 | Double_t *binLim2 = new Double_t[nbin2+1]; |
936 | |
937 | // values for lower bounds |
938 | for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i; |
939 | for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i; |
940 | for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i; |
941 | |
942 | // create container |
943 | AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin); |
944 | container->SetBinLimits(ipt,binLim0); |
945 | container->SetBinLimits(ieta,binLim1); |
946 | container->SetBinLimits(imass,binLim2); |
947 | |
948 | AliCFManager *man = new AliCFManager(); |
949 | man->SetParticleContainer(container); |
950 | |
951 | // end --------------------------------------------------------------------------- |
952 | |
953 | |
9640a3d1 |
954 | |
a0b94e5c |
955 | |
d7d7e825 |
956 | AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms(); |
957 | AddHistograms(histograms); |
958 | |
959 | // Create the Analysis manager |
960 | AliAnalysisManager *mgr =NULL; |
6c84d371 |
961 | if(kGCrunOnTrain == kFALSE){ |
a0b94e5c |
962 | mgr = new AliAnalysisManager("My Manager", "My Analysis"); |
00a6a31a |
963 | } |
d7d7e825 |
964 | else{ |
965 | mgr = AliAnalysisManager::GetAnalysisManager(); |
00a6a31a |
966 | } |
a0b94e5c |
967 | |
d7d7e825 |
968 | if (!mgr) { |
969 | ::Error("ConfigGammaConversion", "No analysis manager to connect to."); |
970 | return NULL; |
971 | } |
6c84d371 |
972 | if(kGCrunOnTrain == kTRUE){ |
973 | if (!mgr->GetInputEventHandler()) { |
974 | ::Error("ConfigGammaConversion", "This task requires an input event handler"); |
975 | return NULL; |
976 | } |
977 | } |
978 | AliESDInputHandler* inpHandler = NULL; |
a0b94e5c |
979 | |
6c84d371 |
980 | if(kGCrunOnTrain == kFALSE){ |
981 | // Define Input Event Handler |
982 | inpHandler = new AliESDInputHandler(); |
983 | } |
a19c3402 |
984 | // Define MC Truth Event Handler |
6c84d371 |
985 | AliMCEventHandler* mcHandler = NULL; |
986 | if(kGCdoMCTruth){ |
987 | if(kGCrunOnTrain == kFALSE){ |
988 | mcHandler = new AliMCEventHandler(); |
989 | } |
990 | else{ |
991 | mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler(); |
992 | } |
993 | if (!mcHandler) { |
994 | ::Error("", "No MC handler connected"); |
995 | return NULL; |
996 | } |
997 | } |
a0b94e5c |
998 | |
d7d7e825 |
999 | // Define Output Event Handler and ad |
07b54fba |
1000 | if(kGCrunOnTrain == kFALSE){ |
a0b94e5c |
1001 | if(fWriteStandardAOD == kTRUE){ |
07b54fba |
1002 | AliAODHandler* aodHandler = new AliAODHandler(); |
1003 | TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root"; |
1004 | aodHandler->SetOutputFileName(fileOutAOD); |
1005 | mgr->SetOutputEventHandler (aodHandler); |
1006 | } |
d7d7e825 |
1007 | } |
a0b94e5c |
1008 | |
6c84d371 |
1009 | if(kGCrunOnTrain == kFALSE){ |
d7d7e825 |
1010 | mgr->SetInputEventHandler (inpHandler); |
1011 | mgr->SetMCtruthEventHandler(mcHandler); |
1012 | } |
a19c3402 |
1013 | // Be sure you are told what you are doing |
b5bd091d |
1014 | // mgr->SetDebugLevel(10); |
32a6d407 |
1015 | |
a19c3402 |
1016 | // Declare Common Input Tchain |
32a6d407 |
1017 | AliAnalysisDataContainer *cinput1 = NULL; |
6c84d371 |
1018 | if(kGCusePWG4PartCorr){ |
1019 | if(kGCrunOnTrain == kFALSE){ |
8a685cf3 |
1020 | cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer); |
d7d7e825 |
1021 | } |
1022 | else{ |
1023 | cinput1 = cin_esd; |
1024 | } |
32a6d407 |
1025 | } |
1026 | else{ |
d7d7e825 |
1027 | cinput1 = mgr->GetCommonInputContainer(); |
32a6d407 |
1028 | } |
1029 | |
a19c3402 |
1030 | // Common Output Tree in common â\80\98defaultâ\80\99 output file |
07b54fba |
1031 | // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive? |
32a6d407 |
1032 | AliAnalysisDataContainer *coutput1 = NULL; |
6c84d371 |
1033 | if(kGCusePWG4PartCorr){ |
07b54fba |
1034 | // coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default"); |
8a685cf3 |
1035 | coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default"); |
32a6d407 |
1036 | } |
1037 | else{ |
a0b94e5c |
1038 | if(fWriteStandardAOD){ |
1039 | coutput1 = mgr->GetCommonOutputContainer(); |
1040 | } |
32a6d407 |
1041 | } |
1042 | |
a19c3402 |
1043 | // Private output objects |
6c84d371 |
1044 | if(kGCoutputFileName.Contains(".root")){ |
1045 | kGCoutputFileName.ReplaceAll(".root",""); |
32a6d407 |
1046 | } |
6c84d371 |
1047 | if(kGCoutputFileAppendix.Contains(".root")){ |
1048 | kGCoutputFileAppendix.ReplaceAll(".root",""); |
32a6d407 |
1049 | } |
61374d97 |
1050 | //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root"; |
1051 | |
1052 | TString outputfile = AliAnalysisManager::GetCommonFileName(); |
07b54fba |
1053 | outputfile += ":PWG4_GammaConversion"; |
a0b94e5c |
1054 | |
61374d97 |
1055 | AliAnalysisDataContainer *coutput2 = mgr->CreateContainer("histogramsAliGammaConversion", TList::Class(),AliAnalysisManager::kOutputContainer, outputfile); |
a0b94e5c |
1056 | // for CF |
8a685cf3 |
1057 | AliAnalysisDataContainer *coutput3 = mgr->CreateContainer("GammaConvccontainer0",AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile); |
a0b94e5c |
1058 | |
a19c3402 |
1059 | //------------------------ END: Define input/output handlers --------------------------------------------------- |
32a6d407 |
1060 | |
a19c3402 |
1061 | //check for errors in the specified data |
6c84d371 |
1062 | if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){ |
a19c3402 |
1063 | //Print warning, cannot use both |
6c84d371 |
1064 | ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time") |
a0b94e5c |
1065 | } |
6c84d371 |
1066 | if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){ |
a19c3402 |
1067 | //Print warning, one have to be specified |
6c84d371 |
1068 | ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time") |
a0b94e5c |
1069 | } |
1070 | |
1071 | |
a19c3402 |
1072 | //Create the V0Reader |
1073 | AliV0Reader * v0Reader = new AliV0Reader(); |
6c84d371 |
1074 | if(kGCuseKFParticle){ |
a19c3402 |
1075 | v0Reader->UseKFParticle(); |
1076 | } |
6c84d371 |
1077 | else if(kGCuseESDTrack){ |
a19c3402 |
1078 | v0Reader->UseESDTrack(); |
1079 | } |
6c84d371 |
1080 | v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack); |
1081 | v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack); |
1082 | v0Reader->SetMaxRCut(kGCmaxRCut); |
1083 | v0Reader->SetEtaCut(kGCetaCut); |
1084 | v0Reader->SetPtCut(kGCptCut); |
1085 | v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope); |
1086 | v0Reader->SetLineCutZValue(kGCLineCutZValue); |
a0b94e5c |
1087 | v0Reader->SetMaxZCut(kGCmaxZCut); |
6c84d371 |
1088 | v0Reader->SetChi2CutConversion(kGCchi2CutConversion); |
1089 | v0Reader->SetChi2CutMeson(kGCchi2CutMeson); |
1090 | v0Reader->SetPIDProbability(kGCprobElectron); |
1091 | v0Reader->SetXVertexCut(kGCxVertexCut); |
1092 | v0Reader->SetYVertexCut(kGCyVertexCut); |
1093 | v0Reader->SetZVertexCut(kGCzVertexCut); |
1094 | v0Reader->SetSigmaMass(kGCsigmaCutGammaMass); |
1095 | v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex); |
1096 | v0Reader->SetDoMCTruth(kGCdoMCTruth); |
a0b94e5c |
1097 | v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation); |
1098 | // for CF |
1099 | v0Reader->SetCFManager(man); |
1100 | |
9640a3d1 |
1101 | // for dEdx N sigma Cut |
1102 | v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut); |
1103 | v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine); |
1104 | v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine); |
1105 | v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine); |
1106 | v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine); |
77880bd8 |
1107 | v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder); |
32a6d407 |
1108 | |
a19c3402 |
1109 | // Create the GammaConversionTask |
1110 | AliAnalysisTaskGammaConversion *gammaconversion = new AliAnalysisTaskGammaConversion("GammaConversionTask"); |
52a15f71 |
1111 | gammaconversion->SetDebugLevel(0); |
32a6d407 |
1112 | |
6c84d371 |
1113 | gammaconversion->SetWriteNtuple(kGCwriteNtuple); |
32a6d407 |
1114 | |
a19c3402 |
1115 | gammaconversion->SetV0Reader(v0Reader); |
6c84d371 |
1116 | gammaconversion->SetCalculateBackground(kGCcalculateBackground); |
a19c3402 |
1117 | gammaconversion->Init(); |
32a6d407 |
1118 | |
6c84d371 |
1119 | gammaconversion->SetElectronMass(kGCelectronMass); |
1120 | gammaconversion->SetGammaMass(kGCgammaMass); |
1121 | gammaconversion->SetPi0Mass(kGCpi0Mass); |
1122 | gammaconversion->SetEtaMass(kGCetaMass); |
32a6d407 |
1123 | |
6c84d371 |
1124 | gammaconversion->SetGammaWidth(kGCgammaWidth); |
1125 | gammaconversion->SetPi0Width(kGCpi0Width); |
1126 | gammaconversion->SetEtaWidth(kGCetaWidth); |
a0b94e5c |
1127 | |
6c84d371 |
1128 | gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut); |
32a6d407 |
1129 | |
a19c3402 |
1130 | // define the width constraint used by KF particle. |
1131 | Double_t gammaWidth = 0.01; |
1132 | Double_t pi0Width = 0.01; |
1133 | Double_t etaWidth = 0.01; |
32a6d407 |
1134 | |
a19c3402 |
1135 | gammaconversion->SetHistograms(histograms); |
1136 | v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts |
b5832f95 |
1137 | |
1138 | gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B); |
6c84d371 |
1139 | gammaconversion->SetDoMCTruth(kGCdoMCTruth); |
a0b94e5c |
1140 | |
6c84d371 |
1141 | gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson); |
1142 | gammaconversion->SetDoJet(kGCrunJet); |
1143 | gammaconversion->SetDoChic(kGCrunChic); |
1e7846f4 |
1144 | |
a0b94e5c |
1145 | // for CF |
1146 | gammaconversion->SetCFManager(man); |
1e7846f4 |
1147 | gammaconversion->SetDoCF(kGCrunCF); |
1148 | v0Reader->SetDoCF(kGCrunCF); |
32a6d407 |
1149 | |
a19c3402 |
1150 | // Add task to the manager |
1151 | mgr->AddTask(gammaconversion); |
32a6d407 |
1152 | |
a19c3402 |
1153 | // Connect I/O to the task |
1154 | mgr->ConnectInput (gammaconversion, 0, cinput1); |
07b54fba |
1155 | |
1156 | |
1157 | // CKB Output slot 0 is NOT connected if WriteStandardAOD is false? |
a0b94e5c |
1158 | if(fWriteStandardAOD){ |
d7d7e825 |
1159 | mgr->ConnectOutput(gammaconversion, 0, coutput1); |
d7d7e825 |
1160 | } |
a0b94e5c |
1161 | mgr->ConnectOutput(gammaconversion, 1, coutput2); |
1162 | mgr->ConnectOutput(gammaconversion, 2, coutput3); |
1163 | |
6c84d371 |
1164 | if(kGCrunOnTrain == kFALSE){ |
1165 | if(kGCdataList.IsNull()){ |
1166 | cout<<"Data list is not set, aborting."<<endl; |
1167 | return; |
1168 | } |
a0b94e5c |
1169 | |
6c84d371 |
1170 | if(kGCrunOnTrain == kFALSE){ |
1171 | TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze); |
a0b94e5c |
1172 | |
6c84d371 |
1173 | mgr->InitAnalysis(); |
a0b94e5c |
1174 | |
6c84d371 |
1175 | mgr->PrintStatus(); |
a0b94e5c |
1176 | |
6c84d371 |
1177 | mgr->StartAnalysis("local",chain); |
1178 | } |
d7d7e825 |
1179 | } |
6c84d371 |
1180 | return gammaconversion; |
a19c3402 |
1181 | } |
1182 | |
a19c3402 |
1183 | void build() { |
a0b94e5c |
1184 | |
a19c3402 |
1185 | TStopwatch timer; |
1186 | timer.Start(); |
1187 | gSystem->Load("libTree.so"); |
1188 | gSystem->Load("libGeom"); |
32a6d407 |
1189 | |
a19c3402 |
1190 | //// |
1191 | //Setting up ESD.par// |
1192 | //// |
1193 | cout<<"compiling ESD"<<endl; |
1194 | setupPar("ESD"); |
1195 | gSystem->Load("libVMC.so"); |
1196 | gSystem->Load("libESD.so"); |
32a6d407 |
1197 | |
a19c3402 |
1198 | //// |
1199 | //// |
1200 | //Setting up STEERBase.par// |
1201 | //// |
1202 | cout<<"compiling STEERBase"<<endl; |
1203 | setupPar("STEERBase"); |
1204 | gSystem->Load("libSTEERBase.so"); |
32a6d407 |
1205 | |
a19c3402 |
1206 | //// |
1207 | //Setting up AOD.par// |
1208 | //// |
1209 | cout<<"compiling AOD"<<endl; |
1210 | setupPar("AOD"); |
1211 | gSystem->Load("libAOD.so"); |
32a6d407 |
1212 | |
a19c3402 |
1213 | //// |
1214 | //Setting up ANALYSIS.par// |
1215 | //// |
1216 | cout<<"compiling ANALYSIS"<<endl; |
1217 | setupPar("ANALYSIS"); |
1218 | gSystem->Load("libANALYSIS.so"); |
32a6d407 |
1219 | |
a19c3402 |
1220 | //// |
1221 | //Setting up ANALYSISalice.par// |
1222 | //// |
a0b94e5c |
1223 | cout<<"compiling ANALYSISalice"<<endl; |
a19c3402 |
1224 | setupPar("ANALYSISalice"); |
1225 | gSystem->Load("libANALYSISalice.so"); |
32a6d407 |
1226 | |
a0b94e5c |
1227 | //// |
1228 | //Setting up CORRFW.par// |
1229 | //// |
1230 | cout<<"compiling CORRFW"<<endl; |
1231 | setupPar("CORRFW"); |
1232 | gSystem->Load("CORRFW.so"); |
1233 | |
a19c3402 |
1234 | //// |
d7d7e825 |
1235 | //Setting up PWG4GammaConv.par// |
a19c3402 |
1236 | //// |
d7d7e825 |
1237 | cout<<"compiling PWG4GammaConv"<<endl; |
1238 | setupPar("PWG4GammaConv"); |
1239 | gSystem->Load("libPWG4GammaConv.so"); |
a19c3402 |
1240 | } |
1241 | |
1242 | Int_t setupPar(const char* pararchivename) { |
1243 | /////////////////// |
1244 | // Setup PAR File// |
1245 | /////////////////// |
1246 | if (pararchivename) { |
1247 | char processline[1024]; |
1248 | sprintf(processline,".! tar xvzf %s.par",pararchivename); |
1249 | gROOT->ProcessLine(processline); |
1250 | const char* ocwd = gSystem->WorkingDirectory(); |
1251 | gSystem->ChangeDirectory(pararchivename); |
32a6d407 |
1252 | |
a19c3402 |
1253 | // check for BUILD.sh and execute |
1254 | if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) { |
1255 | printf("*******************************\n"); |
1256 | printf("*** Building PAR archive ***\n"); |
1257 | printf("*******************************\n"); |
32a6d407 |
1258 | |
a19c3402 |
1259 | if (gSystem->Exec("PROOF-INF/BUILD.sh")) { |
32a6d407 |
1260 | Error("runAnalysis","Cannot Build the PAR Archive! - Abort!"); |
1261 | return -1; |
a19c3402 |
1262 | } |
1263 | } |
1264 | // check for SETUP.C and execute |
1265 | if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) { |
1266 | printf("*******************************\n"); |
1267 | printf("*** Setup PAR archive ***\n"); |
1268 | printf("*******************************\n"); |
1269 | gROOT->Macro("PROOF-INF/SETUP.C"); |
1270 | } |
32a6d407 |
1271 | |
a19c3402 |
1272 | gSystem->ChangeDirectory("../"); |
1273 | } |
1274 | return 1; |
1275 | } |
d7d7e825 |
1276 | |
1277 | |
1278 | |
1279 | void AddHistograms(AliGammaConversionHistograms *histograms){ |
1280 | //---------------------------------------------- Jets --------------------------------------------------------- |
6c84d371 |
1281 | if(kGCrunJet == kTRUE){ |
1282 | if (kGCplotdPhiHdrGam == kTRUE){ |
1283 | histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts"); |
d7d7e825 |
1284 | } |
a0b94e5c |
1285 | |
6c84d371 |
1286 | if (kGCplotdPhiHdrGamIsolated == kTRUE){ |
1287 | histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts"); |
d7d7e825 |
1288 | } |
a0b94e5c |
1289 | |
6c84d371 |
1290 | if (kGCplotMinimumIsoDistance == kTRUE){ |
1291 | histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts"); |
d7d7e825 |
1292 | } |
a0b94e5c |
1293 | |
6c84d371 |
1294 | if (kGCplotFFzHdrGam == kTRUE){ |
1295 | histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts"); |
d7d7e825 |
1296 | } |
a0b94e5c |
1297 | |
6c84d371 |
1298 | if (kGCplotImbalanceHdrGam == kTRUE){ |
1299 | histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts"); |
d7d7e825 |
1300 | } |
6c84d371 |
1301 | }//end if(kGCrunJet) |
a0b94e5c |
1302 | |
d7d7e825 |
1303 | //---------------------------------------------- Chi_c --------------------------------------------------------- |
6c84d371 |
1304 | if(kGCrunChic){ |
a0b94e5c |
1305 | |
6c84d371 |
1306 | if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "", |
a0b94e5c |
1307 | "");} |
6c84d371 |
1308 | if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, |
a0b94e5c |
1309 | "","");} |
6c84d371 |
1310 | if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "", |
a0b94e5c |
1311 | "");} |
6c84d371 |
1312 | if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} |
1313 | if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,""," |
a0b94e5c |
1314 | ");} |
1315 | |
6c84d371 |
1316 | if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} |
1317 | if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} |
a0b94e5c |
1318 | |
6c84d371 |
1319 | if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPo |
a0b94e5c |
1320 | sNegAngle,"","");} |
6c84d371 |
1321 | if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} |
1322 | if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","") |
d7d7e825 |
1323 | ;} |
6c84d371 |
1324 | if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinE |
a0b94e5c |
1325 | PosNegAngle,"","");} |
6c84d371 |
1326 | if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} |
1327 | if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} |
1328 | if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");} |
1329 | if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");} |
1330 | if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");} |
1331 | if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} |
1332 | if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} |
a0b94e5c |
1333 | |
6c84d371 |
1334 | if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
a0b94e5c |
1335 | |
6c84d371 |
1336 | if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
a0b94e5c |
1337 | |
1338 | |
6c84d371 |
1339 | if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
1340 | if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
1341 | if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");} |
a0b94e5c |
1342 | |
6c84d371 |
1343 | if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
1344 | if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} |
a0b94e5c |
1345 | |
6c84d371 |
1346 | if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);} |
1347 | }// end kGCrunChic |
a0b94e5c |
1348 | |
d7d7e825 |
1349 | //---------------------------------------------- Neutral Meson --------------------------------------------------------- |
6c84d371 |
1350 | if(kGCrunNeutralMeson){ |
1351 | if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");} |
1352 | if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");} |
1353 | if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");} |
1354 | if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");} |
9640a3d1 |
1355 | if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1356 | if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
a0b94e5c |
1357 | |
9640a3d1 |
1358 | |
6c84d371 |
1359 | if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1360 | if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1361 | if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1362 | if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
a0b94e5c |
1363 | |
6c84d371 |
1364 | if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1365 | if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1366 | if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1367 | if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
a0b94e5c |
1368 | |
6c84d371 |
1369 | if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1370 | if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1371 | if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1372 | if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1373 | if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1374 | |
6c84d371 |
1375 | if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1376 | if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1377 | if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1378 | if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1379 | if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1380 | if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");} |
a0b94e5c |
1381 | |
6c84d371 |
1382 | if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1383 | if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1384 | if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1385 | if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1386 | if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1387 | |
6c84d371 |
1388 | if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1389 | if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1390 | if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1391 | if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1392 | if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1393 | |
6c84d371 |
1394 | if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1395 | if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1396 | if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1397 | if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1398 | if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1399 | if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} |
1400 | if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1401 | if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1402 | if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1403 | if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1404 | if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1405 | if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1406 | if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1407 | if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1408 | |
6c84d371 |
1409 | if(kGCplotMCMotherSpectra == kTRUE){ |
1410 | histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); |
1411 | histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); |
1412 | histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); |
d7d7e825 |
1413 | } |
a0b94e5c |
1414 | |
1415 | |
6c84d371 |
1416 | if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1417 | if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1418 | if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1419 | if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1420 | if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1421 | if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} |
1422 | if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1423 | if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1424 | if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1425 | if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1426 | if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1427 | if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1428 | if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1429 | if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1430 | if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
a0b94e5c |
1431 | |
1432 | |
6c84d371 |
1433 | if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1434 | if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1435 | if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1436 | if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1437 | if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1438 | if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} |
1439 | if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1440 | if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1441 | if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1442 | if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1443 | if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1444 | if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1445 | if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1446 | if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1447 | |
1448 | |
1449 | |
6c84d371 |
1450 | if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1451 | if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1452 | if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1453 | if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1454 | if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1455 | if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");} |
1456 | if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1457 | if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1458 | if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1459 | if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1460 | if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1461 | if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1462 | if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1463 | if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1464 | if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
a0b94e5c |
1465 | |
1466 | |
d7d7e825 |
1467 | // Histograms from esd tracks |
6c84d371 |
1468 | if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1469 | if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1470 | if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1471 | if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
a0b94e5c |
1472 | |
6c84d371 |
1473 | if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1474 | if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1475 | if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1476 | if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
a0b94e5c |
1477 | |
6c84d371 |
1478 | if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1479 | if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1480 | if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1481 | if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1482 | if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} |
1483 | if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} |
1484 | if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1485 | if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} |
1486 | if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1487 | if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );} |
1488 | if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1489 | if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
a0b94e5c |
1490 | |
1491 | |
1492 | |
6c84d371 |
1493 | if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1494 | if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1495 | if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1496 | if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
9640a3d1 |
1497 | |
1498 | if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} |
1499 | if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} |
1500 | if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} |
1501 | if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} |
1502 | if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1503 | if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1504 | if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1505 | if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1506 | |
1507 | |
a0b94e5c |
1508 | |
1509 | |
6c84d371 |
1510 | if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1511 | if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1512 | if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1513 | if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1514 | if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} |
1515 | if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} |
1516 | if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1517 | if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} |
1518 | if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1519 | if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1520 | if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1521 | if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
a0b94e5c |
1522 | |
6c84d371 |
1523 | if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1524 | if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1525 | if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1526 | if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
9640a3d1 |
1527 | |
1528 | if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} |
1529 | if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} |
1530 | if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} |
1531 | if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} |
1532 | if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1533 | if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1534 | if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1535 | if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1536 | |
a0b94e5c |
1537 | |
6c84d371 |
1538 | if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1539 | if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1540 | if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
a0b94e5c |
1541 | |
1542 | |
1543 | |
6c84d371 |
1544 | if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1545 | if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1546 | if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1547 | if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1548 | if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} |
1549 | if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} |
1550 | if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1551 | if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} |
1552 | if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
1553 | if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1554 | if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
1555 | if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} |
a0b94e5c |
1556 | |
6c84d371 |
1557 | if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1558 | if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1559 | if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1560 | if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
9640a3d1 |
1561 | |
1562 | if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} |
1563 | if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} |
1564 | if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} |
1565 | if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} |
1566 | if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1567 | if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} |
1568 | |
1569 | |
1570 | if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1571 | if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} |
1572 | |
6c84d371 |
1573 | if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1574 | if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1575 | if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
a0b94e5c |
1576 | |
1577 | |
1578 | |
6c84d371 |
1579 | if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1580 | if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1581 | if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1582 | if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1583 | if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1584 | if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} |
1585 | if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1586 | if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1587 | if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1588 | if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1589 | |
1590 | |
6c84d371 |
1591 | if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} |
1592 | if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} |
1593 | if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} |
1594 | if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} |
1595 | if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} |
1596 | if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");} |
1597 | if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} |
1598 | if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} |
1599 | if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} |
1600 | if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} |
a0b94e5c |
1601 | |
1602 | |
6c84d371 |
1603 | if(kGCplotMapping == kTRUE){ |
a0b94e5c |
1604 | histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi); |
9640a3d1 |
1605 | histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping); |
1606 | // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi); |
d7d7e825 |
1607 | } |
a0b94e5c |
1608 | |
6c84d371 |
1609 | if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");} |
1610 | if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");} |
1611 | if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");} |
a0b94e5c |
1612 | |
6c84d371 |
1613 | if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");} |
a0b94e5c |
1614 | |
6c84d371 |
1615 | if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");} |
1616 | if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");} |
1617 | if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");} |
a0b94e5c |
1618 | |
6c84d371 |
1619 | if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");} |
1620 | if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");} |
1621 | if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");} |
a0b94e5c |
1622 | |
6c84d371 |
1623 | if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, 0, 100,"","");} |
1624 | if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, 0, 100,"","");} |
b5832f95 |
1625 | if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",100, 0, 100,"","");} |
a0b94e5c |
1626 | |
d7d7e825 |
1627 | // debug histograms |
6c84d371 |
1628 | if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1629 | if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1630 | if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1631 | if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1632 | if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1633 | if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
9640a3d1 |
1634 | |
1635 | if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1636 | if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1637 | |
6c84d371 |
1638 | if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1639 | if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1640 | if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1641 | if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1642 | if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1643 | if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
9640a3d1 |
1644 | if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} |
1645 | |
6c84d371 |
1646 | if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");} |
1647 | if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");} |
a0b94e5c |
1648 | |
1649 | |
6c84d371 |
1650 | if(kGCplotPi0Spectra == kTRUE){ |
1651 | histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); |
1652 | histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); |
9640a3d1 |
1653 | |
1654 | 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]"); |
1655 | histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); |
1656 | |
1657 | |
d7d7e825 |
1658 | } |
6c84d371 |
1659 | if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){ |
1660 | histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); |
1661 | histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); |
9640a3d1 |
1662 | |
1663 | 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]"); |
1664 | histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); |
1665 | |
d7d7e825 |
1666 | } |
6c84d371 |
1667 | }// end kGCrunNeutralMeson |
d7d7e825 |
1668 | } |