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