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