3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
8 // Class for the analysis of high pT pi0 event by event
9 // Pi0/Eta identified by one of the following:
10 // -Invariant mass of 2 cluster in calorimeter
11 // -Shower shape analysis in calorimeter
12 // -Invariant mass of one cluster in calorimeter and one photon reconstructed in TPC (in near future)
14 //-- Author: Gustavo Conesa (INFN-LNF) & Raphaelle Ichou (SUBATECH)
15 //_________________________________________________________________________
18 // --- ROOT system ---
22 // --- ANALYSIS system ---
23 #include "AliAnaCaloTrackCorrBaseClass.h"
25 class AliAnaPi0EbE : public AliAnaCaloTrackCorrBaseClass {
28 AliAnaPi0EbE() ; // default ctor
29 virtual ~AliAnaPi0EbE() { ; } //virtual dtor
31 TObjString * GetAnalysisCuts();
33 TList * GetCreateOutputObjects();
35 Int_t GetMCIndex(const Int_t aodTag);
39 void InitParameters();
41 void MakeAnalysisFillAOD() ;
43 void MakeAnalysisFillHistograms() ;
45 void Print(const Option_t * opt) const;
49 void FillPileUpHistograms(const Float_t pt, const Float_t time, AliVCluster * c) ;
51 void FillRejectedClusterHistograms(const TLorentzVector mom, const Int_t mctag);
53 void FillSelectedClusterHistograms(AliVCluster* cluster,
56 const Float_t asy = 0);
58 void FillWeightHistograms(AliVCluster *clus);
60 void HasPairSameMCMother(AliAODPWG4Particle * photon1,
61 AliAODPWG4Particle * photon2,
62 Int_t & label, Int_t & tag);
64 void MakeInvMassInCalorimeter() ;
66 void MakeInvMassInCalorimeterAndCTS() ;
68 void MakeShowerShapeIdentification() ;
73 enum anaTypes {kIMCalo, kSSCalo, kIMCaloTracks};
74 anaTypes GetAnalysisType() const { return fAnaType ; }
75 void SetAnalysisType(anaTypes ana) { fAnaType = ana ; }
77 TString GetInputAODGammaConvName() const { return fInputAODGammaConvName ; }
78 void SetInputAODGammaConvName(TString name) { fInputAODGammaConvName = name ; }
80 //Only for pi0 SS identification case
81 void SetCalorimeter(TString & det) { fCalorimeter = det ; }
83 void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
84 fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3 ; }
86 void SetNLMCut(Int_t min, Int_t max) { fNLMCutMin = min;
88 Int_t GetNLMCutMin() const { return fNLMCutMin ; }
89 Int_t GetNLMCutMax() const { return fNLMCutMax ; }
91 void SetNLMMinEnergy(Int_t i, Float_t min) { if (i < 3 && i >=0 ) fNLMECutMin[i] = min ; }
92 Float_t GetNLMMinEnergy(Int_t i) const { if( i < 3 && i >=0 ) return fNLMECutMin[i] ; else return 0 ; }
94 void SetTimeCut(Double_t min, Double_t max) { fTimeCutMin = min;
96 Double_t GetTimeCutMin() const { return fTimeCutMin ; }
97 Double_t GetTimeCutMax() const { return fTimeCutMax ; }
99 Bool_t IsTrackMatchRejectionOn() const { return fRejectTrackMatch ; }
100 void SwitchOnTrackMatchRejection() { fRejectTrackMatch = kTRUE ; }
101 void SwitchOffTrackMatchRejection() { fRejectTrackMatch = kFALSE ; }
103 void SwitchOnFillPileUpHistograms() { fFillPileUpHistograms = kTRUE ; }
104 void SwitchOffFillPileUpHistograms() { fFillPileUpHistograms = kFALSE ; }
106 void SwitchOnFillWeightHistograms() { fFillWeightHistograms = kTRUE ; }
107 void SwitchOffFillWeightHistograms() { fFillWeightHistograms = kFALSE ; }
109 void SwitchOnTMHistoFill() { fFillTMHisto = kTRUE ; }
110 void SwitchOffTMHistoFill() { fFillTMHisto = kFALSE ; }
112 void SwitchOnSelectedClusterHistoFill() { fFillSelectClHisto = kTRUE ; }
113 void SwitchOffSelectedClusterHistoFill() { fFillSelectClHisto = kFALSE ; }
115 void SwitchOnOnlySimpleSSHistoFill() { fFillOnlySimpleSSHisto = kTRUE ; }
116 void SwitchOffOnlySimpleHistoFill() { fFillOnlySimpleSSHisto = kFALSE ; }
118 void SwitchOnFillEMCALBCHistograms() { fFillEMCALBCHistograms = kTRUE ; }
119 void SwitchOffFillEMCALBCHistograms() { fFillEMCALBCHistograms = kFALSE ; }
122 enum mcTypes { kmcPhoton = 0, kmcConversion = 1, kmcPi0 = 2,
123 kmcEta = 3, kmcElectron = 4, kmcHadron = 5 };
127 anaTypes fAnaType; // Select analysis type
129 //Only for pi0 SS identification case, kSSCalo
130 TString fCalorimeter ; // Calorimeter where the gamma is searched;
131 Float_t fMinDist ; // Minimal distance to bad channel to accept cluster
132 Float_t fMinDist2; // Cuts on Minimal distance to study acceptance evaluation
133 Float_t fMinDist3; // One more cut on distance used for acceptance-efficiency study
134 Int_t fNLMCutMin ; // Remove clusters/cells with number of local maxima smaller than this value
135 Int_t fNLMCutMax ; // Remove clusters/cells with number of local maxima larger than this value
136 Float_t fNLMECutMin[3] ; // Minimum energy of the cluster, depending on nlm.
137 Double_t fTimeCutMin ; // Remove clusters/cells with time smaller than this value, in ns
138 Double_t fTimeCutMax ; // Remove clusters/cells with time larger than this value, in ns
139 Bool_t fRejectTrackMatch ; // Remove clusters which have an associated TPC track
141 Bool_t fFillPileUpHistograms; // Fill pile-up related histograms
142 Bool_t fFillWeightHistograms ; // Fill weigth histograms
143 Bool_t fFillTMHisto; // Fill track matching plots
144 Bool_t fFillSelectClHisto; // Fill selected cluster histograms
145 Bool_t fFillOnlySimpleSSHisto; // Fill selected cluster histograms, selected SS histograms
146 Bool_t fFillEMCALBCHistograms; // Fill eta-phi BC dependent histograms
149 //Only for combination of calorimeter and conversion photons, kIMCaloTracks
150 TString fInputAODGammaConvName; // Name of AOD branch with conversion photons
154 TH1F * fhPt ; //! Number of identified pi0/eta vs pT
155 TH1F * fhE ; //! Number of identified pi0/eta vs E
156 TH2F * fhEEta ; //! E vs eta of identified pi0/eta
157 TH2F * fhEPhi ; //! E vs phi of identified pi0/eta
158 TH2F * fhPtEta ; //! Pt vs eta of identified pi0/eta
159 TH2F * fhPtPhi ; //! Pt vs phi of identified pi0/eta
160 TH2F * fhEtaPhi ; //! eta vs phi of identified pi0/eta
161 TH2F * fhEtaPhiEMCALBC0 ; //! Pseudorapidity vs Phi of clusters
162 TH2F * fhEtaPhiEMCALBC1 ; //! Pseudorapidity vs Phi of clusters
163 TH2F * fhEtaPhiEMCALBCN ; //! Pseudorapidity vs Phi of clusters
165 TH2F * fhEtaPhiTriggerEMCALBC[11] ; //! Pseudorapidity vs Phi of pi0 for E > 2
166 TH2F * fhTimeTriggerEMCALBC [11] ; //! Time distribution of pi0, when trigger is in a given BC
167 TH2F * fhTimeTriggerEMCALBCPileUpSPD[11] ; //! Time distribution of pi0, when trigger is in a given BC, tagged as pile-up SPD
168 TH2F * fhEtaPhiTriggerEMCALBCUM[11] ; //! Pseudorapidity vs Phi of pi0 for E > 2, not matched to trigger
169 TH2F * fhTimeTriggerEMCALBCUM[11] ; //! Time distribution of pi0, when trigger is in a given BC, not matched to trigger
171 TH2F * fhTimeTriggerEMCALBC0UMReMatchOpenTime ; //! Time distribution of pi0s in event, when trigger is not found, rematched open time trigger
172 TH2F * fhTimeTriggerEMCALBC0UMReMatchCheckNeigh ; //! Time distribution of pi0s in event, when trigger is not found, rematched with neigbour patchs
173 TH2F * fhTimeTriggerEMCALBC0UMReMatchBoth ; //! Time distribution of pi0s in event, when trigger is not found, rematched open both
175 TH2F * fhPtCentrality ; //! centrality vs pi0/eta pT
176 TH2F * fhPtEventPlane ; //! event plane vs pi0/eta pT
178 TH1F * fhPtReject ; //! Number of rejected as pi0/eta vs pT
179 TH1F * fhEReject ; //! Number of rejected as pi0/eta vs E
180 TH2F * fhEEtaReject ; //! E vs eta of rejected as pi0/eta
181 TH2F * fhEPhiReject ; //! E vs phi of rejected as pi0/eta
182 TH2F * fhEtaPhiReject ; //! eta vs phi of rejected as pi0/eta
184 TH2F * fhMass ; //! pair mass vs E, for all pairs
185 TH2F * fhMassPt ; //! pair mass vs pT, for all pairs
186 TH2F * fhMassSplitPt ; //! pair mass vs pT (split), for all pairs
187 TH2F * fhSelectedMass ; //! pair mass vs E, for selected pairs
188 TH2F * fhSelectedMassPt ; //! pair mass vs pT, for selected pairs
189 TH2F * fhSelectedMassSplitPt ; //! pair mass vs pT (split), for selected pairs
190 TH2F * fhAsymmetry ; //! cluster E vs asymmetry of 2 splitted clusters
191 TH2F * fhSelectedAsymmetry ; //! cluster E vs asymmetry of 2 splitted clusters, for selected pairs
192 TH1F * fhSplitE ; //! split sub-cluster pair energy sum
193 TH1F * fhSplitPt ; //! split sub-cluster pair pT sum
194 TH2F * fhSplitPtEta ; //! split sub-cluster pair pT sum vs eta
195 TH2F * fhSplitPtPhi ; //! split sub-cluster pair pT sum vs phi
196 TH2F * fhNLocMaxSplitPt ; //! split sub-cluster pair pT sum, as a function of n maxima
198 TH1F * fhPtDecay ; //! Number of identified pi0/eta decay photons vs pT
199 TH1F * fhEDecay ; //! Number of identified pi0/eta decay photons vs E
201 TH2F * fhEDispersion ; //! E vs disp of selected cluster
202 TH2F * fhELambda0 ; //! E vs lambda0 of selected cluster
203 TH2F * fhELambda1 ; //! E vs lambda1 of selected cluster
204 TH2F * fhELambda0NoTRD ; //! E vs lambda0 of selected cluster, not behind TRD
205 TH2F * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut
206 TH2F * fhEFracMaxCell ; //! E vs frac max cell of selected cluster
207 TH2F * fhEFracMaxCellNoTRD ; //! E vs frac max cell of selected cluster, not behind TRD
208 TH2F * fhENCells; //! E vs N cells in selected cluster
209 TH2F * fhETime; //! E vs Time of selected cluster
210 TH2F * fhEPairDiffTime; //! E vs Pair of clusters time difference vs E
212 TH2F * fhDispEtaE ; //! shower dispersion in eta direction
213 TH2F * fhDispPhiE ; //! shower dispersion in phi direction
214 TH2F * fhLambda0DispEta[7] ; //! shower shape correlation l0 vs disp eta
215 TH2F * fhLambda0DispPhi[7] ; //! shower shape correlation l0 vs disp phi
216 TH2F * fhSumEtaE ; //! shower dispersion in eta direction
217 TH2F * fhSumPhiE ; //! shower dispersion in phi direction
218 TH2F * fhSumEtaPhiE ; //! shower dispersion in eta and phi direction
219 TH2F * fhDispEtaPhiDiffE ; //! shower dispersion eta - phi
220 TH2F * fhSphericityE ; //! shower sphericity in eta vs phi
221 TH2F * fhDispEtaDispPhi[7] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
222 TH2F * fhAsymmetryLambda0[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
223 TH2F * fhAsymmetryDispEta[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
224 TH2F * fhAsymmetryDispPhi[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
228 TH2F * fhEMCLambda0[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle
229 TH2F * fhEMCLambda1[6] ; //! E vs lambda1 of pi0 pairs but really from MC particle
230 TH2F * fhEMCDispersion[6] ; //! E vs dispersion of pi0 pairs but really from MC particle
231 TH2F * fhEMCLambda0NoTRD[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
232 TH2F * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
233 TH2F * fhEMCFracMaxCell[6] ; //! E vs fraction of max cell
235 TH2F * fhMCEDispEta[6] ; //! shower dispersion in eta direction
236 TH2F * fhMCEDispPhi[6] ; //! shower dispersion in phi direction
237 TH2F * fhMCLambda0DispEta[7][6] ; //! shower shape correlation l0 vs disp eta
238 TH2F * fhMCLambda0DispPhi[7][6] ; //! shower shape correlation l0 vs disp phi
239 TH2F * fhMCESumEtaPhi[6] ; //! shower dispersion in eta vs phi direction
240 TH2F * fhMCEDispEtaPhiDiff[6] ; //! shower dispersion in eta -phi direction
241 TH2F * fhMCESphericity[6] ; //! shower sphericity, eta vs phi
242 TH2F * fhMCDispEtaDispPhi[7][6] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
243 TH2F * fhMCEAsymmetry[6] ; //! E asymmetry of 2 splitted clusters vs cluster E
244 TH2F * fhMCAsymmetryLambda0[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
245 TH2F * fhMCAsymmetryDispEta[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
246 TH2F * fhMCAsymmetryDispPhi[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
248 TH1F * fhMCE[6]; //! Number of identified as pi0 vs E coming from X
249 TH1F * fhMCPt[6]; //! Number of identified as pi0 vs Pt coming from X
250 TH2F * fhMCPhi[6]; //! pt vs phi of identified as pi0, coming from X
251 TH2F * fhMCEta[6]; //! pt vs eta of identified as pi0, coming from X
252 TH1F * fhMCEReject[6]; //! Number of rejected as pi0 vs E coming from X
253 TH1F * fhMCPtReject[6]; //! Number of rejected as pi0 vs Pt coming from X
255 TH1F * fhMCSplitE[6]; //! Number of identified as pi0 vs sum E split coming from X
256 TH1F * fhMCSplitPt[6]; //! Number of identified as pi0 vs sum Pt split coming from X
257 TH2F * fhMCSplitPtPhi[6]; //! pt vs phi of identified as pi0, coming from X
258 TH2F * fhMCSplitPtEta[6]; //! pt vs eta of identified as pi0, coming from X
259 TH2F * fhMCNLocMaxSplitPt[6]; //! Number of identified as pi0 vs sum Pt split coming from X, for different NLM
261 TH2F * fhMCMassPt[6]; //! pair pT vs Mass coming from X
262 TH2F * fhMCMassSplitPt[6]; //! pair pT (split) vs Mass coming from X
263 TH2F * fhMCSelectedMassPt[6]; //! selected pair pT vs Mass coming from X
264 TH2F * fhMCSelectedMassSplitPt[6]; //! selected pair pT (split) vs Mass coming from X
266 TH2F * fhMCPtCentrality[6] ; //! centrality vs pi0/eta pT coming from X
268 TH2F * fhMCPi0PtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, pi0 primary, pt vs E prim pi0 / E reco
269 TH2F * fhMCEtaPtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, eta primary, pt vs E prim eta / E reco
270 TH1F * fhMCPi0DecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt
271 TH2F * fhMCPi0DecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt vs pt decay / pt mother
272 TH1F * fhMCEtaDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt
273 TH2F * fhMCEtaDecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt vs pt decay / pt mother
274 TH1F * fhMCOtherDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, other decay primary, pt
276 TH2F * fhMassPairMCPi0; //! pair mass, origin is same pi0
277 TH2F * fhMassPairMCEta; //! pair mass, origin is same eta
278 TH2F * fhAnglePairMCPi0; //! pair opening angle, origin is same pi0
279 TH2F * fhAnglePairMCEta; //! pair opening angle, origin is same eta
283 TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected photons
284 TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected photons
285 TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected photons
286 TH2F * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
287 TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
288 //TH2F * fhLambda1ForW0[7]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons
291 TH2F * fhTrackMatchedDEta ; //! Eta distance between track and cluster vs cluster E
292 TH2F * fhTrackMatchedDPhi ; //! Phi distance between track and cluster vs cluster E
293 TH2F * fhTrackMatchedDEtaDPhi ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
294 TH2F * fhTrackMatchedDEtaPos ; //! Eta distance between track and cluster vs cluster E
295 TH2F * fhTrackMatchedDPhiPos ; //! Phi distance between track and cluster vs cluster E
296 TH2F * fhTrackMatchedDEtaDPhiPos ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
297 TH2F * fhTrackMatchedDEtaNeg ; //! Eta distance between track and cluster vs cluster E
298 TH2F * fhTrackMatchedDPhiNeg ; //! Phi distance between track and cluster vs cluster E
299 TH2F * fhTrackMatchedDEtaDPhiNeg ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
301 TH2F * fhTrackMatchedMCParticleE; //! Trace origin of matched particle, energy
302 TH2F * fhTrackMatchedMCParticleDEta; //! Trace origin of matched particle, eta residual
303 TH2F * fhTrackMatchedMCParticleDPhi; //! Trace origin of matched particle, phi residual
304 TH2F * fhdEdx ; //! matched track dEdx vs cluster E
305 TH2F * fhEOverP; //! matched track E cluster over P track vs cluster E
306 TH2F * fhEOverPNoTRD; //! matched track E cluster over P track vs cluster E, not behind TRD
309 TH2F * fhNLocMaxE; //! number of maxima in selected clusters
310 TH2F * fhNLocMaxPt; //! number of maxima in selected clusters
311 TH2F * fhMCNLocMaxPt[6]; //! number of maxima in selected clusters
312 TH2F * fhELambda0LocMax[3] ; //! E vs lambda0 of selected cluster, 1,2,>2 local maxima in cluster
313 TH2F * fhELambda1LocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
314 TH2F * fhEDispersionLocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
315 TH2F * fhEDispEtaLocMax[3] ; //! E vs eta dispersion of selected cluster, 1,2,>2 local maxima in cluster
316 TH2F * fhEDispPhiLocMax[3] ; //! E vs phi dispersion of selected cluster, 1,2,>2 local maxima in cluster
317 TH2F * fhESumEtaPhiLocMax[3] ; //! E vs dispersion in eta and phi direction
318 TH2F * fhEDispEtaPhiDiffLocMax[3] ; //! E vs dispersion eta - phi
319 TH2F * fhESphericityLocMax[3] ; //! E vs sphericity in eta vs phi
320 TH2F * fhEAsymmetryLocMax[3] ; //! E asymmetry of 2 splitted clusters vs cluster E for different NLM
322 TH2F * fhMassPairLocMax[8]; //! pair mass, origin is same pi0, combine clusters depending on number of maxima
325 TH1F * fhPtPileUp[7]; //! pT distribution of selected pi0/eta
326 TH2F * fhPtCellTimePileUp[7]; //! pT vs Time inside cluster, before any selection, not max cell
327 TH2F * fhPtTimeDiffPileUp[7]; //! pT vs Time difference inside cluster, before any selection
328 TH2F * fhTimePtNoCut; //! time of cluster vs pT, no cut
329 TH2F * fhTimePtSPD; //! time of cluster vs pT, IsSPDPileUp
330 TH2F * fhTimePtSPDMulti; //! time of cluster vs pT, IsSPDPileUpMulti
331 TH2F * fhTimeNPileUpVertSPD; //! time of cluster vs n pile-up vertices from SPD
332 TH2F * fhTimeNPileUpVertTrack; //! time of cluster vs n pile-up vertices from Tracks
333 TH2F * fhTimeNPileUpVertContributors; //! time of cluster vs n pile-up vertex from SPD contributors
334 TH2F * fhTimePileUpMainVertexZDistance; //! time of cluster vs difference of z main vertex and pile-up vertex
335 TH2F * fhTimePileUpMainVertexZDiamond; //! time of cluster vs difference of z diamond and pile-up vertex
337 TH2F * fhPtNPileUpSPDVtx; //! cluster pt vs number of spd pile-up vertices
338 TH2F * fhPtNPileUpTrkVtx; //! cluster pt vs number of track pile-up vertices
339 TH2F * fhPtNPileUpSPDVtxTimeCut; //! cluster pt vs number of spd pile-up vertices, time cut +-25 ns
340 TH2F * fhPtNPileUpTrkVtxTimeCut; //! cluster pt vs number of track pile-up vertices, time cut +- 25 ns
341 TH2F * fhPtNPileUpSPDVtxTimeCut2; //! cluster pt vs number of spd pile-up vertices, time cut +-75 ns
342 TH2F * fhPtNPileUpTrkVtxTimeCut2; //! cluster pt vs number of track pile-up vertices, time cut +- 75 ns
344 AliAnaPi0EbE( const AliAnaPi0EbE & pi0ebe) ; // cpy ctor
345 AliAnaPi0EbE & operator = (const AliAnaPi0EbE & pi0ebe) ; // cpy assignment
347 ClassDef(AliAnaPi0EbE,31)
351 #endif //ALIANAPI0EBE_H