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