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