]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/CaloTrackCorrelations/AliAnaPi0EbE.h
cleanup
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / AliAnaPi0EbE.h
1 #ifndef ALIANAPI0EBE_H
2 #define ALIANAPI0EBE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 //_________________________________________________________________________
7 //
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)
13 //
14 //-- Author: Gustavo Conesa (INFN-LNF)  &  Raphaelle Ichou (SUBATECH)
15 //_________________________________________________________________________
16
17
18 // --- ROOT system ---
19 class TList ;
20 class TObjString;
21
22 // --- ANALYSIS system ---
23 #include "AliAnaCaloTrackCorrBaseClass.h"
24
25 class AliAnaPi0EbE : public AliAnaCaloTrackCorrBaseClass {
26
27  public: 
28   AliAnaPi0EbE() ; // default ctor
29   virtual ~AliAnaPi0EbE() { ; } //virtual dtor
30           
31   TObjString *   GetAnalysisCuts();
32   
33   TList      *   GetCreateOutputObjects();
34   
35   void           Init();
36   
37   void           InitParameters();
38
39   void           MakeAnalysisFillAOD()  ;
40    
41   void           MakeAnalysisFillHistograms() ; 
42   
43   void           Print(const Option_t * opt) const;
44   
45   // Main
46   
47   void           FillSelectedClusterHistograms(AliVCluster* cluster, 
48                                                const Int_t nLocMax,
49                                                const Int_t tag,
50                                                const Float_t asy = 0);
51     
52   void           FillWeightHistograms(AliVCluster *clus);
53     
54   void           HasPairSameMCMother(AliAODPWG4Particle * photon1, 
55                                      AliAODPWG4Particle * photon2, 
56                                      Int_t & label, Int_t & tag);
57   
58   void           MakeInvMassInCalorimeter() ;
59   
60   void           MakeInvMassInCalorimeterAndCTS() ;
61   
62   void           MakeShowerShapeIdentification() ;
63           
64   //Setters Getters
65   
66   //Analysis types
67   enum anaTypes  {kIMCalo, kSSCalo, kIMCaloTracks};  
68   anaTypes       GetAnalysisType()                     const { return fAnaType                ; }
69   void           SetAnalysisType(anaTypes ana)               { fAnaType = ana                 ; }
70   
71   TString        GetInputAODGammaConvName()            const { return fInputAODGammaConvName  ; }
72   void           SetInputAODGammaConvName(TString name)      { fInputAODGammaConvName = name  ; }       
73   
74   //Only for pi0 SS identification case
75   void           SetCalorimeter(TString & det)               { fCalorimeter = det             ; }
76   
77   void           SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
78                   fMinDist = m1; fMinDist2 = m2; fMinDist3 = m3                               ; }
79   
80   void           SetTimeCut(Double_t min, Double_t max)      { fTimeCutMin = min; 
81                                                                fTimeCutMax = max              ; }
82   Double_t       GetTimeCutMin()                       const { return fTimeCutMin             ; }
83   Double_t       GetTimeCutMax()                       const { return fTimeCutMax             ; }       
84
85   void           SwitchOnFillWeightHistograms()              { fFillWeightHistograms = kTRUE  ; }
86   void           SwitchOffFillWeightHistograms()             { fFillWeightHistograms = kFALSE ; }  
87   
88   void           SwitchOnTMHistoFill()                       { fFillTMHisto          = kTRUE  ; }
89   void           SwitchOffTMHistoFill()                      { fFillTMHisto          = kFALSE ; }
90
91   void           SwitchOnSelectedClusterHistoFill()          { fFillSelectClHisto    = kTRUE  ; }
92   void           SwitchOffSelectedClusterHistoFill()         { fFillSelectClHisto    = kFALSE ; }
93   
94   //For histograms
95   enum mcTypes   { kmcPhoton = 0, kmcConversion = 1, kmcPi0    = 2,  
96                    kmcEta    = 3, kmcElectron   = 4, kmcHadron = 5 };
97
98  private:
99   
100   anaTypes       fAnaType;                 // Select analysis type
101   
102   //Only for pi0 SS identification case, kSSCalo
103   TString        fCalorimeter ;            // Calorimeter where the gamma is searched;
104   Float_t        fMinDist ;                // Minimal distance to bad channel to accept cluster
105   Float_t        fMinDist2;                // Cuts on Minimal distance to study acceptance evaluation
106   Float_t        fMinDist3;                // One more cut on distance used for acceptance-efficiency study
107   Double_t       fTimeCutMin  ;            // Remove clusters/cells with time smaller than this value, in ns
108   Double_t       fTimeCutMax  ;            // Remove clusters/cells with time larger than this value, in ns
109   
110   Bool_t         fFillWeightHistograms ;   // Fill weigth histograms
111   Bool_t         fFillTMHisto;             // Fill track matching plots
112   Bool_t         fFillSelectClHisto;       // Fill selected cluster histograms
113
114   //Only for combination of calorimeter and conversion photons, kIMCaloTracks
115   TString        fInputAODGammaConvName;   //  Name of AOD branch with conversion photons
116   
117   //Histograms
118   
119   TH1F         * fhPt  ;                   //! Number of identified  pi0/eta vs pT
120   TH1F         * fhE   ;                   //! Number of identified  pi0/eta vs E
121   TH2F         * fhEEta  ;                 //! E vs eta of identified  pi0/eta 
122   TH2F         * fhEPhi  ;                 //! E vs phi of identified  pi0/eta 
123   TH2F         * fhEtaPhi  ;               //! eta vs phi of identified  pi0/eta 
124
125   TH1F         * fhPtDecay  ;              //! Number of identified  pi0/eta decay photons vs pT
126   TH1F         * fhEDecay   ;              //! Number of identified  pi0/eta decay photons vs E
127   
128   TH2F         * fhEDispersion ;           //! E vs disp of selected cluster
129   TH2F         * fhELambda0 ;              //! E vs lambda0 of selected cluster 
130   TH2F         * fhELambda1 ;              //! E vs lambda1 of selected cluster 
131   TH2F         * fhELambda0NoTRD ;         //! E vs lambda0 of selected cluster, not behind TRD 
132   TH2F         * fhELambda0FracMaxCellCut ;//! E vs lambda0 of selected cluster, fraction of cluster energy in max cell cut 
133   TH2F         * fhEFracMaxCell ;          //! E vs frac max cell of selected cluster 
134   TH2F         * fhEFracMaxCellNoTRD ;     //! E vs frac max cell of selected cluster, not behind TRD  
135   TH2F         * fhENCells;                //! E vs N cells in selected cluster
136   TH2F         * fhETime;                  //! E vs Time of selected cluster 
137   TH2F         * fhEPairDiffTime;          //! E vs Pair of clusters time difference vs E
138   
139   TH2F         * fhDispEtaE ;              //! shower dispersion in eta direction
140   TH2F         * fhDispPhiE ;              //! shower dispersion in phi direction
141   TH2F         * fhLambda0DispEta[7] ;     //! shower shape correlation l0 vs disp eta
142   TH2F         * fhLambda0DispPhi[7] ;     //! shower shape correlation l0 vs disp phi
143   TH2F         * fhSumEtaE ;               //! shower dispersion in eta direction
144   TH2F         * fhSumPhiE ;               //! shower dispersion in phi direction
145   TH2F         * fhSumEtaPhiE ;            //! shower dispersion in eta and phi direction
146   TH2F         * fhDispEtaPhiDiffE ;       //! shower dispersion eta - phi
147   TH2F         * fhSphericityE ;           //! shower sphericity in eta vs phi
148   TH2F         * fhDispEtaDispPhi[7] ;     //! shower dispersion in eta direction vs phi direction for 5 E bins [0-2],[2-4],[4-6],[6-10],[> 10]
149   TH2F         * fhAsymmetryE ;            //! E asymmetry of 2 splitted clusters vs cluster E
150   TH2F         * fhAsymmetryLambda0[7] ;   //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
151   TH2F         * fhAsymmetryDispEta[7] ;   //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
152   TH2F         * fhAsymmetryDispPhi[7] ;   //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
153
154   //MC histograms
155   
156   TH2F         * fhEMCLambda0[6] ;         //! E vs lambda0 of pi0 pairs but really from MC particle
157   TH2F         * fhEMCLambda1[6] ;         //! E vs lambda1 of pi0 pairs but really from MC particle
158   TH2F         * fhEMCDispersion[6] ;      //! E vs dispersion of pi0 pairs but really from MC particle
159   TH2F         * fhEMCLambda0NoTRD[6] ;         //! E vs lambda0 of pi0 pairs but really from MC particle, not behind TRD
160   TH2F         * fhEMCLambda0FracMaxCellCut[6] ;//! E vs lambda0 of pi0 pairs but really from MC particle, fraction of cluster energy in max cell cut
161   TH2F         * fhEMCFracMaxCell[6] ;     //! E vs fraction of max cell 
162   
163   TH2F         * fhMCEDispEta[6] ;         //! shower dispersion in eta direction
164   TH2F         * fhMCEDispPhi[6] ;         //! shower dispersion in phi direction
165   TH2F         * fhMCLambda0DispEta[7][6] ;//! shower shape correlation l0 vs disp eta
166   TH2F         * fhMCLambda0DispPhi[7][6] ;//! shower shape correlation l0 vs disp phi
167   TH2F         * fhMCESumEtaPhi[6] ;       //! shower dispersion in eta vs phi direction
168   TH2F         * fhMCEDispEtaPhiDiff[6] ;  //! shower dispersion in eta -phi direction
169   TH2F         * fhMCESphericity[6] ;      //! shower sphericity, eta vs phi
170   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]
171   TH2F         * fhMCEAsymmetry[6] ;          //! E asymmetry of 2 splitted clusters vs cluster E
172   TH2F         * fhMCAsymmetryLambda0[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
173   TH2F         * fhMCAsymmetryDispEta[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
174   TH2F         * fhMCAsymmetryDispPhi[7][6] ; //! E asymmetry of 2 splitted clusters vs lam0 for 5 E bins
175   
176   TH1F         * fhPtMCNo;                 //! Number of identified pi0, not coming from pi0/eta
177   TH2F         * fhPhiMCNo;                //! Phi of identified pi0, not coming from pi0/eta
178   TH2F         * fhEtaMCNo;                //! eta of identified  pi0, not coming from pi0/eta
179   TH1F         * fhPtMC;                   //! Number of identified pi0, coming from pi0/eta
180   TH2F         * fhPhiMC;                  //! Phi of identified pi0, coming from pi0/eta
181   TH2F         * fhEtaMC;                  //! eta of identified pi0, coming from pi0/eta
182
183   TH2F         * fhMassPairMCPi0;          //! pair mass, origin is same pi0
184   TH2F         * fhMassPairMCEta;          //! pair mass, origin is same eta
185   TH2F         * fhAnglePairMCPi0;         //! pair opening angle, origin is same pi0
186   TH2F         * fhAnglePairMCEta;         //! pair opening angle, origin is same eta
187   
188   // Weight studies
189   
190   TH2F         * fhECellClusterRatio;      //! e cell / e cluster vs e cluster for selected photons
191   TH2F         * fhECellClusterLogRatio;   //! log (e cell / e cluster)  vs e cluster for selected photons
192   TH2F         * fhEMaxCellClusterRatio;   //! e max cell / e cluster vs e cluster for selected photons
193   TH2F         * fhEMaxCellClusterLogRatio;//! log (e max cell / e cluster) vs e cluster for selected photons
194   TH2F         * fhLambda0ForW0[14];       //! L0 for 7 defined w0= 3, 3.5 ... 6 for selected photons
195   //TH2F         * fhLambda1ForW0[7];        //! L1 for 7 defined w0= 3, 3.5 ... 6 for selected photons  
196   
197   // Track Matching
198   TH2F         * fhTrackMatchedDEta     ;  //! Eta distance between track and cluster vs cluster E
199   TH2F         * fhTrackMatchedDPhi     ;  //! Phi distance between track and cluster vs cluster E
200   TH2F         * fhTrackMatchedDEtaDPhi ;  //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
201   TH2F         * fhTrackMatchedMCParticle; //! Trace origin of matched particle
202   TH2F         * fhdEdx  ;                 //! matched track dEdx vs cluster E 
203   TH2F         * fhEOverP;                 //! matched track E cluster over P track vs cluster E
204   TH2F         * fhEOverPNoTRD;                 //! matched track E cluster over P track vs cluster E, not behind TRD 
205
206   // Local maxima
207   TH2F         * fhNLocMax;                //! number of maxima in selected clusters
208   TH2F         * fhELambda0LocMax[3] ;     //! E vs lambda0 of selected cluster, 1,2,>2 local maxima in cluster 
209   TH2F         * fhELambda1LocMax[3] ;     //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster 
210   TH2F         * fhEDispersionLocMax[3] ;  //! E vs lambda1 of selected cluster, 1,2,>2 local maxima in cluster 
211   TH2F         * fhEDispEtaLocMax[3] ;     //! E vs eta dispersion of selected cluster, 1,2,>2 local maxima in cluster 
212   TH2F         * fhEDispPhiLocMax[3] ;     //! E vs phi dispersion of selected cluster, 1,2,>2 local maxima in cluster 
213   TH2F         * fhESumEtaPhiLocMax[3] ;   //! E vs dispersion in eta and phi direction
214   TH2F         * fhEDispEtaPhiDiffLocMax[3] ; //! E vs dispersion eta - phi
215   TH2F         * fhESphericityLocMax[3] ;  //! E vs sphericity in eta vs phi  
216   TH2F         * fhEAsymmetryLocMax[3] ;   //! E asymmetry of 2 splitted clusters vs cluster E for different NLM
217
218   TH2F         * fhMassPairLocMax[8];      //! pair mass, origin is same pi0, combine clusters depending on number of maxima
219
220   AliAnaPi0EbE(              const AliAnaPi0EbE & pi0ebe) ; // cpy ctor
221   AliAnaPi0EbE & operator = (const AliAnaPi0EbE & pi0ebe) ; // cpy assignment
222   
223   ClassDef(AliAnaPi0EbE,17)
224 } ;
225
226
227 #endif //ALIANAPI0EBE_H
228
229
230