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