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(Float_t energy, Float_t time) ;
51 void FillSelectedClusterHistograms(AliVCluster* cluster,
54 const Float_t asy = 0);
56 void FillWeightHistograms(AliVCluster *clus);
58 void HasPairSameMCMother(AliAODPWG4Particle * photon1,
59 AliAODPWG4Particle * photon2,
60 Int_t & label, Int_t & tag);
62 void MakeInvMassInCalorimeter() ;
64 void MakeInvMassInCalorimeterAndCTS() ;
66 void MakeShowerShapeIdentification() ;
71 enum anaTypes {kIMCalo, kSSCalo, kIMCaloTracks};
72 anaTypes GetAnalysisType() const { return fAnaType ; }
73 void SetAnalysisType(anaTypes ana) { fAnaType = ana ; }
75 TString GetInputAODGammaConvName() const { return fInputAODGammaConvName ; }
76 void SetInputAODGammaConvName(TString name) { fInputAODGammaConvName = name ; }
78 //Only for pi0 SS identification case
79 void SetCalorimeter(TString & det) { fCalorimeter = det ; }
81 void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
82 fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3 ; }
84 void SetNLMCut(Double_t min, Double_t max) { fNLMCutMin = min;
86 Double_t GetNLMCutMin() const { return fNLMCutMin ; }
87 Double_t GetNLMCutMax() const { return fNLMCutMax ; }
89 void SetTimeCut(Double_t min, Double_t max) { fTimeCutMin = min;
91 Double_t GetTimeCutMin() const { return fTimeCutMin ; }
92 Double_t GetTimeCutMax() const { return fTimeCutMax ; }
94 void SwitchOnFillPileUpHistograms() { fFillPileUpHistograms = kTRUE ; }
95 void SwitchOffFillPileUpHistograms() { fFillPileUpHistograms = kFALSE ; }
97 void SwitchOnFillWeightHistograms() { fFillWeightHistograms = kTRUE ; }
98 void SwitchOffFillWeightHistograms() { fFillWeightHistograms = kFALSE ; }
100 void SwitchOnTMHistoFill() { fFillTMHisto = kTRUE ; }
101 void SwitchOffTMHistoFill() { fFillTMHisto = kFALSE ; }
103 void SwitchOnSelectedClusterHistoFill() { fFillSelectClHisto = kTRUE ; }
104 void SwitchOffSelectedClusterHistoFill() { fFillSelectClHisto = kFALSE ; }
106 void SwitchOnOnlySimpleSSHistoFill() { fFillOnlySimpleSSHisto = kTRUE ; }
107 void SwitchOffOnlySimpleHistoFill() { fFillOnlySimpleSSHisto = kFALSE ; }
111 enum mcTypes { kmcPhoton = 0, kmcConversion = 1, kmcPi0 = 2,
112 kmcEta = 3, kmcElectron = 4, kmcHadron = 5 };
116 anaTypes fAnaType; // Select analysis type
118 //Only for pi0 SS identification case, kSSCalo
119 TString fCalorimeter ; // Calorimeter where the gamma is searched;
120 Float_t fMinDist ; // Minimal distance to bad channel to accept cluster
121 Float_t fMinDist2; // Cuts on Minimal distance to study acceptance evaluation
122 Float_t fMinDist3; // One more cut on distance used for acceptance-efficiency study
123 Double_t fNLMCutMin ; // Remove clusters/cells with number of local maxima smaller than this value
124 Double_t fNLMCutMax ; // Remove clusters/cells with number of local maxima larger than this value
125 Double_t fTimeCutMin ; // Remove clusters/cells with time smaller than this value, in ns
126 Double_t fTimeCutMax ; // Remove clusters/cells with time larger than this value, in ns
128 Bool_t fFillPileUpHistograms; // Fill pile-up related histograms
129 Bool_t fFillWeightHistograms ; // Fill weigth histograms
130 Bool_t fFillTMHisto; // Fill track matching plots
131 Bool_t fFillSelectClHisto; // Fill selected cluster histograms
132 Bool_t fFillOnlySimpleSSHisto; // Fill selected cluster histograms, selected SS histograms
134 //Only for combination of calorimeter and conversion photons, kIMCaloTracks
135 TString fInputAODGammaConvName; // Name of AOD branch with conversion photons
139 TH1F * fhPt ; //! Number of identified pi0/eta vs pT
140 TH1F * fhE ; //! Number of identified pi0/eta vs E
141 TH2F * fhEEta ; //! E vs eta of identified pi0/eta
142 TH2F * fhEPhi ; //! E vs phi of identified pi0/eta
143 TH2F * fhEtaPhi ; //! eta vs phi of identified pi0/eta
145 TH2F * fhMass ; //! pair mass vs E, for all pairs
146 TH2F * fhSelectedMass ; //! pair mass vs E, for selected pairs
148 TH1F * fhPtDecay ; //! Number of identified pi0/eta decay photons vs pT
149 TH1F * fhEDecay ; //! Number of identified pi0/eta decay photons vs E
151 TH2F * fhEDispersion ; //! E vs disp of selected cluster
152 TH2F * fhELambda0 ; //! E vs lambda0 of selected cluster
153 TH2F * fhELambda1 ; //! E vs lambda1 of selected cluster
154 TH2F * fhELambda0NoTRD ; //! E vs lambda0 of selected cluster, not behind TRD
155 TH2F * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut
156 TH2F * fhEFracMaxCell ; //! E vs frac max cell of selected cluster
157 TH2F * fhEFracMaxCellNoTRD ; //! E vs frac max cell of selected cluster, not behind TRD
158 TH2F * fhENCells; //! E vs N cells in selected cluster
159 TH2F * fhETime; //! E vs Time of selected cluster
160 TH2F * fhEPairDiffTime; //! E vs Pair of clusters time difference vs E
162 TH2F * fhDispEtaE ; //! shower dispersion in eta direction
163 TH2F * fhDispPhiE ; //! shower dispersion in phi direction
164 TH2F * fhLambda0DispEta[7] ; //! shower shape correlation l0 vs disp eta
165 TH2F * fhLambda0DispPhi[7] ; //! shower shape correlation l0 vs disp phi
166 TH2F * fhSumEtaE ; //! shower dispersion in eta direction
167 TH2F * fhSumPhiE ; //! shower dispersion in phi direction
168 TH2F * fhSumEtaPhiE ; //! shower dispersion in eta and phi direction
169 TH2F * fhDispEtaPhiDiffE ; //! shower dispersion eta - phi
170 TH2F * fhSphericityE ; //! shower sphericity in eta vs phi
171 TH2F * fhDispEtaDispPhi[7] ; //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
172 TH2F * fhAsymmetryE ; //! E asymmetry of 2 splitted clusters vs cluster E
173 TH2F * fhAsymmetryLambda0[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
174 TH2F * fhAsymmetryDispEta[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
175 TH2F * fhAsymmetryDispPhi[7] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
179 TH2F * fhEMCLambda0[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle
180 TH2F * fhEMCLambda1[6] ; //! E vs lambda1 of pi0 pairs but really from MC particle
181 TH2F * fhEMCDispersion[6] ; //! E vs dispersion of pi0 pairs but really from MC particle
182 TH2F * fhEMCLambda0NoTRD[6] ; //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
183 TH2F * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
184 TH2F * fhEMCFracMaxCell[6] ; //! E vs fraction of max cell
186 TH2F * fhMCEDispEta[6] ; //! shower dispersion in eta direction
187 TH2F * fhMCEDispPhi[6] ; //! shower dispersion in phi direction
188 TH2F * fhMCLambda0DispEta[7][6] ; //! shower shape correlation l0 vs disp eta
189 TH2F * fhMCLambda0DispPhi[7][6] ; //! shower shape correlation l0 vs disp phi
190 TH2F * fhMCESumEtaPhi[6] ; //! shower dispersion in eta vs phi direction
191 TH2F * fhMCEDispEtaPhiDiff[6] ; //! shower dispersion in eta -phi direction
192 TH2F * fhMCESphericity[6] ; //! shower sphericity, eta vs phi
193 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]
194 TH2F * fhMCEAsymmetry[6] ; //! E asymmetry of 2 splitted clusters vs cluster E
195 TH2F * fhMCAsymmetryLambda0[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
196 TH2F * fhMCAsymmetryDispEta[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
197 TH2F * fhMCAsymmetryDispPhi[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
199 TH1F * fhMCPt[6]; //! Number of identified as pi0, coming from X
200 TH2F * fhMCPhi[6]; //! Phi of identified as pi0, coming from X
201 TH2F * fhMCEta[6]; //! eta of identified as pi0, coming from X
203 TH2F * fhMCPi0PtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, pi0 primary, pt vs E prim pi0 / E reco
204 TH2F * fhMCEtaPtGenRecoFraction; //! SS id, clusters id as pi0 (eta), coming from 2 photon, eta primary, pt vs E prim eta / E reco
205 TH1F * fhMCPi0DecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt
206 TH2F * fhMCPi0DecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, pi0 decay primary, pt vs pt decay / pt mother
207 TH1F * fhMCEtaDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt
208 TH2F * fhMCEtaDecayPtFraction; //! SS id, clusters id as pi0 (eta), coming from 1 photon, eta decay primary, pt vs pt decay / pt mother
209 TH1F * fhMCOtherDecayPt; //! SS id, clusters id as pi0 (eta), coming from 1 photon, other decay primary, pt
211 TH2F * fhMassPairMCPi0; //! pair mass, origin is same pi0
212 TH2F * fhMassPairMCEta; //! pair mass, origin is same eta
213 TH2F * fhAnglePairMCPi0; //! pair opening angle, origin is same pi0
214 TH2F * fhAnglePairMCEta; //! pair opening angle, origin is same eta
218 TH2F * fhECellClusterRatio; //! e cell / e cluster vs e cluster for selected photons
219 TH2F * fhECellClusterLogRatio; //! log (e cell / e cluster) vs e cluster for selected photons
220 TH2F * fhEMaxCellClusterRatio; //! e max cell / e cluster vs e cluster for selected photons
221 TH2F * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
222 TH2F * fhLambda0ForW0[14]; //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
223 //TH2F * fhLambda1ForW0[7]; //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons
226 TH2F * fhTrackMatchedDEta ; //! Eta distance between track and cluster vs cluster E
227 TH2F * fhTrackMatchedDPhi ; //! Phi distance between track and cluster vs cluster E
228 TH2F * fhTrackMatchedDEtaDPhi ; //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
229 TH2F * fhTrackMatchedMCParticle; //! Trace origin of matched particle
230 TH2F * fhdEdx ; //! matched track dEdx vs cluster E
231 TH2F * fhEOverP; //! matched track E cluster over P track vs cluster E
232 TH2F * fhEOverPNoTRD; //! matched track E cluster over P track vs cluster E, not behind TRD
235 TH2F * fhNLocMax; //! number of maxima in selected clusters
236 TH2F * fhELambda0LocMax[3] ; //! E vs lambda0 of selected cluster, 1,2,>2 local maxima in cluster
237 TH2F * fhELambda1LocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
238 TH2F * fhEDispersionLocMax[3] ; //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster
239 TH2F * fhEDispEtaLocMax[3] ; //! E vs eta dispersion of selected cluster, 1,2,>2 local maxima in cluster
240 TH2F * fhEDispPhiLocMax[3] ; //! E vs phi dispersion of selected cluster, 1,2,>2 local maxima in cluster
241 TH2F * fhESumEtaPhiLocMax[3] ; //! E vs dispersion in eta and phi direction
242 TH2F * fhEDispEtaPhiDiffLocMax[3] ; //! E vs dispersion eta - phi
243 TH2F * fhESphericityLocMax[3] ; //! E vs sphericity in eta vs phi
244 TH2F * fhEAsymmetryLocMax[3] ; //! E asymmetry of 2 splitted clusters vs cluster E for different NLM
246 TH2F * fhMassPairLocMax[8]; //! pair mass, origin is same pi0, combine clusters depending on number of maxima
249 TH2F * fhTimeENoCut; //! time of cluster vs E, no cut
250 TH2F * fhTimeESPD; //! time of cluster vs E, IsSPDPileUp
251 TH2F * fhTimeESPDMulti; //! time of cluster vs E, IsSPDPileUpMulti
252 TH2F * fhTimeNPileUpVertSPD; //! time of cluster vs n pile-up vertices from SPD
253 TH2F * fhTimeNPileUpVertTrack; //! time of cluster vs n pile-up vertices from Tracks
254 TH2F * fhTimeNPileUpVertContributors; //! time of cluster vs n pile-up vertex from SPD contributors
255 TH2F * fhTimePileUpMainVertexZDistance; //! time of cluster vs difference of z main vertex and pile-up vertex
256 TH2F * fhTimePileUpMainVertexZDiamond; //! time of cluster vs difference of z diamond and pile-up vertex
258 AliAnaPi0EbE( const AliAnaPi0EbE & pi0ebe) ; // cpy ctor
259 AliAnaPi0EbE & operator = (const AliAnaPi0EbE & pi0ebe) ; // cpy assignment
261 ClassDef(AliAnaPi0EbE,22)
265 #endif //ALIANAPI0EBE_H