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 energy, const Float_t pt, const Float_t time) ;
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 * fhPtCentrality ; //! centrality vs pi0/eta pT
172 TH2F * fhPtEventPlane ; //! event plane vs pi0/eta pT
174 TH1F * fhPtReject ; //! Number of rejected as pi0/eta vs pT
175 TH1F * fhEReject ; //! Number of rejected as pi0/eta vs E
176 TH2F * fhEEtaReject ; //! E vs eta of rejected as pi0/eta
177 TH2F * fhEPhiReject ; //! E vs phi of rejected as pi0/eta
178 TH2F * fhEtaPhiReject ; //! eta vs phi of rejected as pi0/eta
180 TH2F * fhMass ; //! pair mass vs E, for all pairs
181 TH2F * fhMassPt ; //! pair mass vs pT, for all pairs
182 TH2F * fhMassSplitPt ; //! pair mass vs pT (split), for all pairs
183 TH2F * fhSelectedMass ; //! pair mass vs E, for selected pairs
184 TH2F * fhSelectedMassPt ; //! pair mass vs pT, for selected pairs
185 TH2F * fhSelectedMassSplitPt ; //! pair mass vs pT (split), for selected pairs
186 TH2F * fhAsymmetry ; //! cluster E vs asymmetry of 2 splitted clusters
187 TH2F * fhSelectedAsymmetry ; //! cluster E vs asymmetry of 2 splitted clusters, for selected pairs
188 TH1F * fhSplitE ; //! split sub-cluster pair energy sum
189 TH1F * fhSplitPt ; //! split sub-cluster pair pT sum
190 TH2F * fhSplitPtEta ; //! split sub-cluster pair pT sum vs eta
191 TH2F * fhSplitPtPhi ; //! split sub-cluster pair pT sum vs phi
192 TH2F * fhNLocMaxSplitPt ; //! split sub-cluster pair pT sum, as a function of n maxima
194 TH1F * fhPtDecay ; //! Number of identified pi0/eta decay photons vs pT
195 TH1F * fhEDecay ; //! Number of identified pi0/eta decay photons vs E
197 TH2F * fhEDispersion ; //! E vs disp of selected cluster
198 TH2F * fhELambda0 ; //! E vs lambda0 of selected cluster
199 TH2F * fhELambda1 ; //! E vs lambda1 of selected cluster
200 TH2F * fhELambda0NoTRD ; //! E vs lambda0 of selected cluster, not behind TRD
201 TH2F * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut
202 TH2F * fhEFracMaxCell ; //! E vs frac max cell of selected cluster
203 TH2F * fhEFracMaxCellNoTRD ; //! E vs frac max cell of selected cluster, not behind TRD
204 TH2F * fhENCells; //! E vs N cells in selected cluster
205 TH2F * fhETime; //! E vs Time of selected cluster
206 TH2F * fhEPairDiffTime; //! E vs Pair of clusters time difference vs E
208 TH2F * fhDispEtaE ; //! shower dispersion in eta direction
209 TH2F * fhDispPhiE ; //! shower dispersion in phi direction
210 TH2F * fhLambda0DispEta[7] ; //! shower shape correlation l0 vs disp eta
211 TH2F * fhLambda0DispPhi[7] ; //! shower shape correlation l0 vs disp phi
212 TH2F * fhSumEtaE ; //! shower dispersion in eta direction
213 TH2F * fhSumPhiE ; //! shower dispersion in phi direction
214 TH2F * fhSumEtaPhiE ; //! shower dispersion in eta and phi direction
215 TH2F * fhDispEtaPhiDiffE ; //! shower dispersion eta - phi
216 TH2F * fhSphericityE ; //! shower sphericity in eta vs phi
217 TH2F * fhDispEtaDispPhi[7] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
218 TH2F * fhAsymmetryLambda0[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
219 TH2F * fhAsymmetryDispEta[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
220 TH2F * fhAsymmetryDispPhi[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
224 TH2F * fhEMCLambda0[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle
225 TH2F * fhEMCLambda1[6] ; //! E vs lambda1 of pi0 pairs but really from MC particle
226 TH2F * fhEMCDispersion[6] ; //! E vs dispersion of pi0 pairs but really from MC particle
227 TH2F * fhEMCLambda0NoTRD[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
228 TH2F * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
229 TH2F * fhEMCFracMaxCell[6] ; //! E vs fraction of max cell
231 TH2F * fhMCEDispEta[6] ; //! shower dispersion in eta direction
232 TH2F * fhMCEDispPhi[6] ; //! shower dispersion in phi direction
233 TH2F * fhMCLambda0DispEta[7][6] ; //! shower shape correlation l0 vs disp eta
234 TH2F * fhMCLambda0DispPhi[7][6] ; //! shower shape correlation l0 vs disp phi
235 TH2F * fhMCESumEtaPhi[6] ; //! shower dispersion in eta vs phi direction
236 TH2F * fhMCEDispEtaPhiDiff[6] ; //! shower dispersion in eta -phi direction
237 TH2F * fhMCESphericity[6] ; //! shower sphericity, eta vs phi
238 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]
239 TH2F * fhMCEAsymmetry[6] ; //! E asymmetry of 2 splitted clusters vs cluster E
240 TH2F * fhMCAsymmetryLambda0[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
241 TH2F * fhMCAsymmetryDispEta[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
242 TH2F * fhMCAsymmetryDispPhi[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
244 TH1F * fhMCE[6]; //! Number of identified as pi0 vs E coming from X
245 TH1F * fhMCPt[6]; //! Number of identified as pi0 vs Pt coming from X
246 TH2F * fhMCPhi[6]; //! pt vs phi of identified as pi0, coming from X
247 TH2F * fhMCEta[6]; //! pt vs eta of identified as pi0, coming from X
248 TH1F * fhMCEReject[6]; //! Number of rejected as pi0 vs E coming from X
249 TH1F * fhMCPtReject[6]; //! Number of rejected as pi0 vs Pt coming from X
251 TH1F * fhMCSplitE[6]; //! Number of identified as pi0 vs sum E split coming from X
252 TH1F * fhMCSplitPt[6]; //! Number of identified as pi0 vs sum Pt split coming from X
253 TH2F * fhMCSplitPtPhi[6]; //! pt vs phi of identified as pi0, coming from X
254 TH2F * fhMCSplitPtEta[6]; //! pt vs eta of identified as pi0, coming from X
255 TH2F * fhMCNLocMaxSplitPt[6]; //! Number of identified as pi0 vs sum Pt split coming from X, for different NLM
257 TH2F * fhMCMassPt[6]; //! pair pT vs Mass coming from X
258 TH2F * fhMCMassSplitPt[6]; //! pair pT (split) vs Mass coming from X
259 TH2F * fhMCSelectedMassPt[6]; //! selected pair pT vs Mass coming from X
260 TH2F * fhMCSelectedMassSplitPt[6]; //! selected pair pT (split) vs Mass coming from X
262 TH2F * fhMCPtCentrality[6] ; //! centrality vs pi0/eta pT coming from X
264 TH2F * fhMCPi0PtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, pi0 primary, pt vs E prim pi0 / E reco
265 TH2F * fhMCEtaPtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, eta primary, pt vs E prim eta / E reco
266 TH1F * fhMCPi0DecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt
267 TH2F * fhMCPi0DecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt vs pt decay / pt mother
268 TH1F * fhMCEtaDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt
269 TH2F * fhMCEtaDecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt vs pt decay / pt mother
270 TH1F * fhMCOtherDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, other decay primary, pt
272 TH2F * fhMassPairMCPi0; //! pair mass, origin is same pi0
273 TH2F * fhMassPairMCEta; //! pair mass, origin is same eta
274 TH2F * fhAnglePairMCPi0; //! pair opening angle, origin is same pi0
275 TH2F * fhAnglePairMCEta; //! pair opening angle, origin is same eta
279 TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected photons
280 TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected photons
281 TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected photons
282 TH2F * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
283 TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
284 //TH2F * fhLambda1ForW0[7]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons
287 TH2F * fhTrackMatchedDEta ; //! Eta distance between track and cluster vs cluster E
288 TH2F * fhTrackMatchedDPhi ; //! Phi distance between track and cluster vs cluster E
289 TH2F * fhTrackMatchedDEtaDPhi ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
290 TH2F * fhTrackMatchedMCParticleE; //! Trace origin of matched particle, energy
291 TH2F * fhTrackMatchedMCParticleDEta; //! Trace origin of matched particle, eta residual
292 TH2F * fhTrackMatchedMCParticleDPhi; //! Trace origin of matched particle, phi residual
293 TH2F * fhdEdx ; //! matched track dEdx vs cluster E
294 TH2F * fhEOverP; //! matched track E cluster over P track vs cluster E
295 TH2F * fhEOverPNoTRD; //! matched track E cluster over P track vs cluster E, not behind TRD
298 TH2F * fhNLocMaxE; //! number of maxima in selected clusters
299 TH2F * fhNLocMaxPt; //! number of maxima in selected clusters
300 TH2F * fhMCNLocMaxPt[6]; //! number of maxima in selected clusters
301 TH2F * fhELambda0LocMax[3] ; //! E vs lambda0 of selected cluster, 1,2,>2 local maxima in cluster
302 TH2F * fhELambda1LocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
303 TH2F * fhEDispersionLocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
304 TH2F * fhEDispEtaLocMax[3] ; //! E vs eta dispersion of selected cluster, 1,2,>2 local maxima in cluster
305 TH2F * fhEDispPhiLocMax[3] ; //! E vs phi dispersion of selected cluster, 1,2,>2 local maxima in cluster
306 TH2F * fhESumEtaPhiLocMax[3] ; //! E vs dispersion in eta and phi direction
307 TH2F * fhEDispEtaPhiDiffLocMax[3] ; //! E vs dispersion eta - phi
308 TH2F * fhESphericityLocMax[3] ; //! E vs sphericity in eta vs phi
309 TH2F * fhEAsymmetryLocMax[3] ; //! E asymmetry of 2 splitted clusters vs cluster E for different NLM
311 TH2F * fhMassPairLocMax[8]; //! pair mass, origin is same pi0, combine clusters depending on number of maxima
314 TH1F * fhPtPi0PileUp[7]; //! pT distribution of selected pi0/eta
315 TH2F * fhTimeENoCut; //! time of cluster vs E, no cut
316 TH2F * fhTimeESPD; //! time of cluster vs E, IsSPDPileUp
317 TH2F * fhTimeESPDMulti; //! time of cluster vs E, IsSPDPileUpMulti
318 TH2F * fhTimeNPileUpVertSPD; //! time of cluster vs n pile-up vertices from SPD
319 TH2F * fhTimeNPileUpVertTrack; //! time of cluster vs n pile-up vertices from Tracks
320 TH2F * fhTimeNPileUpVertContributors; //! time of cluster vs n pile-up vertex from SPD contributors
321 TH2F * fhTimePileUpMainVertexZDistance; //! time of cluster vs difference of z main vertex and pile-up vertex
322 TH2F * fhTimePileUpMainVertexZDiamond; //! time of cluster vs difference of z diamond and pile-up vertex
324 TH2F * fhPtNPileUpSPDVtx; //! cluster pt vs number of spd pile-up vertices
325 TH2F * fhPtNPileUpTrkVtx; //! cluster pt vs number of track pile-up vertices
326 TH2F * fhPtNPileUpSPDVtxTimeCut; //! cluster pt vs number of spd pile-up vertices, time cut +-25 ns
327 TH2F * fhPtNPileUpTrkVtxTimeCut; //! cluster pt vs number of track pile-up vertices, time cut +- 25 ns
329 AliAnaPi0EbE( const AliAnaPi0EbE & pi0ebe) ; // cpy ctor
330 AliAnaPi0EbE & operator = (const AliAnaPi0EbE & pi0ebe) ; // cpy assignment
332 ClassDef(AliAnaPi0EbE,28)
336 #endif //ALIANAPI0EBE_H