]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/CaloTrackCorrelations/AliAnaParticleIsolation.h
add a common setter to decide if the EMCAL modules under TRD modules have special...
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / AliAnaParticleIsolation.h
1 #ifndef ALIANAPARTICLEISOLATION_H
2 #define ALIANAPARTICLEISOLATION_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 particle isolation
9 // Input is selected particles put in AOD branch (AliAODPWG4ParticleCorrelation)
10 //
11 //  Class created from old AliPHOSGammaJet
12 //  (see AliRoot versions previous Release 4-09)
13
14 //-- Author: Gustavo Conesa (INFN-LNF)
15
16 // --- ROOT system ---
17 class TH2F;
18 class TList ;
19 class TObjString;
20
21 // --- ANALYSIS system ---
22 #include "AliAnaCaloTrackCorrBaseClass.h"
23 class AliAODPWG4Particle;
24 class AliAODPWG4ParticleCorrelation ;
25
26
27 class AliAnaParticleIsolation : public AliAnaCaloTrackCorrBaseClass {
28
29  public:   
30   AliAnaParticleIsolation() ; // default ctor
31   virtual ~AliAnaParticleIsolation() { ; } //virtual dtor
32
33   // Main general methods
34     
35   void         CalculateCaloUEBand    (AliAODPWG4ParticleCorrelation * pCandidate,
36                                        Float_t & etaBand, Float_t & phiBand) ;
37   void         CalculateCaloCellUEBand(AliAODPWG4ParticleCorrelation * pCandidate,
38                                        Float_t & etaBand, Float_t & phiBand) ;
39   void         CalculateTrackUEBand   (AliAODPWG4ParticleCorrelation * pCandidate,
40                                        Float_t & etaBand, Float_t & phiBand) ;
41   
42   void         CalculateCaloSignalInCone    (AliAODPWG4ParticleCorrelation * aodParticle, Float_t & coneptsumCluster) ;
43   void         CalculateCaloCellSignalInCone(AliAODPWG4ParticleCorrelation * aodParticle, Float_t & coneptsumCell) ;
44   void         CalculateTrackSignalInCone   (AliAODPWG4ParticleCorrelation * aodParticle, Float_t & coneptsumTrack  ) ;
45
46
47   void         CalculateNormalizeUEBandPerUnitArea(AliAODPWG4ParticleCorrelation * pCandidate,
48                                                    Float_t coneptsumCluster,       Float_t coneptsumCell,     Float_t coneptsumTrack,
49                                                    Float_t &etaBandptsumTrackNorm, Float_t &etaBandptsumClusterNorm ) ;
50   
51   TObjString * GetAnalysisCuts() ;
52   
53   TList      * GetCreateOutputObjects() ;
54   
55   void         Init() ;
56
57   void         InitParameters() ;
58   
59   void         MakeAnalysisFillAOD()  ;
60   
61   void         MakeAnalysisFillHistograms() ; 
62   
63   
64   void         Print( const Option_t * opt ) const ;
65  
66   //Analysis specific methods 
67   
68   void         FillPileUpHistograms(Int_t clusterID) ;
69   
70   void         FillAcceptanceHistograms();
71  
72   void         FillTrackMatchingShowerShapeControlHistograms(AliAODPWG4ParticleCorrelation  * pCandidate,
73                                                              Int_t mcIndex) ;
74   
75   void         MakeSeveralICAnalysis( AliAODPWG4ParticleCorrelation * ph, Int_t mcIndex ) ;
76   
77   // Analysis Setters and Getters
78   
79   TString      GetCalorimeter()                const { return fCalorimeter       ; }
80   TString      GetTriggerDetector()            const { return fIsoDetector       ; }
81   Int_t        GetNCones()                     const { return fNCones            ; }
82   Int_t        GetNPtThresFrac()               const { return fNPtThresFrac      ; }
83   Float_t      GetConeSizes(Int_t i)           const { return fConeSizes[i]      ; }
84   Float_t      GetPtThresholds(Int_t i)        const { return fPtThresholds[i]   ; }
85   Float_t      GetSumPtThresholds(Int_t i)     const { return fSumPtThresholds[i]; }
86   Float_t      GetPtFractions(Int_t i)         const { return fPtFractions[i]    ; }
87   
88   Int_t        GetMCIndex(Int_t mcTag);
89   
90   void         SetCalorimeter(TString & det)         { fCalorimeter     = det    ; }
91   void         SetTriggerDetector(TString & det)     { fIsoDetector     = det    ; }
92   void         SetNCones(Int_t ncs)                  { fNCones          = ncs    ; }
93   void         SetNPtThresFrac(Int_t npt)            { fNPtThresFrac    = npt    ; }
94   void         SetConeSizes(Int_t i, Float_t r)      { fConeSizes[i]    = r      ; }
95   void         SetPtThresholds(Int_t i, Float_t pt)  { fPtThresholds[i] = pt     ; }
96   void         SetPtFractions(Int_t i, Float_t pt)   { fPtFractions[i]  = pt     ; } 
97   void         SetSumPtThresholds(Int_t i, Float_t pt){ fSumPtThresholds[i] = pt ; }
98
99   Bool_t       IsReIsolationOn()               const { return fReMakeIC          ; }
100   void         SwitchOnReIsolation()                 { fReMakeIC      = kTRUE    ; }
101   void         SwitchOffReIsolation()                { fReMakeIC      = kFALSE   ; }
102   
103   Bool_t       IsSeveralIsolationOn()          const { return fMakeSeveralIC     ; }
104   void         SwitchOnSeveralIsolation()            { fMakeSeveralIC = kTRUE    ; }
105   void         SwitchOffSeveralIsolation()           { fMakeSeveralIC = kFALSE   ; }
106
107   void         SwitchOnFillPileUpHistograms()        { fFillPileUpHistograms = kTRUE  ; }
108   void         SwitchOffFillPileUpHistograms()       { fFillPileUpHistograms = kFALSE ; }    
109   
110   void         SwitchOnTMHistoFill()                 { fFillTMHisto   = kTRUE    ; }
111   void         SwitchOffTMHistoFill()                { fFillTMHisto   = kFALSE   ; }
112   
113   void         SwitchOnSSHistoFill()                 { fFillSSHisto   = kTRUE    ; }
114   void         SwitchOffSSHistoFill()                { fFillSSHisto   = kFALSE   ; }
115
116   void         SwitchOnUEBandSubtractionHistoFill()  { fFillUEBandSubtractHistograms   = kTRUE    ; }
117   void         SwitchOffUEBandSubtractionHistoFill() { fFillUEBandSubtractHistograms   = kFALSE   ; }
118
119   void         SwitchOnCellHistoFill()               { fFillCellHistograms = kTRUE ; }
120   void         SwitchOffCellHistoFill()              { fFillCellHistograms = kFALSE; }
121
122   void         SwitchOnHighMultiplicityHistoFill()   { fFillHighMultHistograms = kTRUE ; }
123   void         SwitchOffHighMultiplicityHistoFill()  { fFillHighMultHistograms = kFALSE; }
124
125   void         SwitchOnNLMHistoFill()                { fFillNLMHistograms = kTRUE ; }
126   void         SwitchOffNLMHistoFill()               { fFillNLMHistograms = kFALSE; }
127   
128   void         SwitchOnDecayTaggedHistoFill()        { fFillTaggedDecayHistograms = kTRUE ; }
129   void         SwitchOffDecayTaggedHistoFill()       { fFillTaggedDecayHistograms = kFALSE; }
130   
131   //Histogrammes setters and getters
132   
133   void         SetHistoPtSumRangeAndNBins(Float_t min, Float_t max, Int_t n)       {
134     fHistoNPtSumBins = n ;    fHistoPtSumMax = max ;    fHistoPtSumMin = min ;     }
135   
136   Int_t        GetHistoNPtSumBins()            const { return fHistoNPtSumBins   ; }
137   Float_t      GetHistoPtSumMin()              const { return fHistoPtSumMin     ; }
138   Float_t      GetHistoPtSumMax()              const { return fHistoPtSumMax     ; }
139   
140   void         SetHistoPtInConeRangeAndNBins(Float_t min, Float_t max, Int_t n)    {
141     fHistoNPtInConeBins = n ; fHistoPtInConeMax = max ; fHistoPtInConeMin = min  ; }
142   
143   Int_t        GetHistoNPtInConeBins()         const { return fHistoNPtInConeBins; }
144   Float_t      GetHistoPtInConeMin()           const { return fHistoPtInConeMin  ; }
145   Float_t      GetHistoPtInConeMax()           const { return fHistoPtInConeMax  ; }
146   
147  // For primary histograms in arrays, index in the array, corresponding to a photon origin
148   enum mcPrimTypes { kmcPrimPhoton = 0, kmcPrimPi0Decay = 1, kmcPrimOtherDecay  = 2,
149                      kmcPrimPrompt = 3, kmcPrimFrag     = 4, kmcPrimISR         = 5       } ;
150   
151   // For histograms in arrays, index in the array, corresponding to any particle origin
152   enum mcTypes     { kmcPhoton   = 0, kmcPrompt   = 1, kmcFragment   = 2,
153                      kmcPi0      = 3, kmcPi0Decay = 4, kmcEtaDecay = 5, kmcOtherDecay = 6,
154                      kmcElectron = 7, kmcHadron   = 8                                     } ;
155   
156  private:
157   
158   TString  fCalorimeter ;                         // Calorimeter where neutral particles in cone for isolation are;
159   TString  fIsoDetector ;                         // Candidate particle for isolation detector ;
160   Bool_t   fReMakeIC ;                            // Do isolation analysis
161   Bool_t   fMakeSeveralIC ;                       // Do analysis for different IC
162   Bool_t   fFillPileUpHistograms;                 // Fill pile-up related histograms
163   Bool_t   fFillTMHisto;                          // Fill track matching plots
164   Bool_t   fFillSSHisto;                          // Fill Shower shape plots
165   Bool_t   fFillUEBandSubtractHistograms;         // Fill histograms working on the UE subtraction
166   Bool_t   fFillCellHistograms;                   // Fill cell histograms
167   Bool_t   fFillHighMultHistograms;               // Fill high multiplicity histograms
168   Bool_t   fFillTaggedDecayHistograms;            // Fill histograms for clusters tagged as decay
169   Bool_t   fFillNLMHistograms;                    // Fill NLM histograms
170
171   // Analysis data members for multiple cones and pt thresholds 
172   Int_t    fNCones ;                              //! Number of cone sizes to test
173   Int_t    fNPtThresFrac ;                        //! Number of ptThres and ptFrac to test
174   
175   Float_t  fConeSizes[5] ;                        //! Array with cones to test
176   Float_t  fPtThresholds[5] ;                     //! Array with pt thresholds to test
177   Float_t  fPtFractions[5] ;                      //! Array with pt thresholds to test frac
178   Float_t  fSumPtThresholds[5] ;                  //! Array with pt thresholds to test frac
179   
180   //Histograms  
181   
182   TH1F *   fhEIso ;                               //! Number of isolated particles vs energy
183   TH1F *   fhPtIso ;                              //! Number of isolated particles vs pT
184   TH2F *   fhPtCentralityIso ;                    //! centrality vs pT
185   TH2F *   fhPtEventPlaneIso ;                    //! event plane angle vs pT
186   TH2F *   fhPtNLocMaxIso ;                       //! Number of isolated particles vs NLM in cluster
187   TH2F *   fhPhiIso ;                             //! Phi of isolated particles
188   TH2F *   fhEtaIso ;                             //! eta of isolated particles
189   TH2F *   fhEtaPhiIso ;                          //! eta vs phi of isolated particles
190   TH2F *   fhEtaPhiNoIso ;                        //! eta vs phi of not isolated leading particles
191   TH1F *   fhENoIso ;                             //! Number of not isolated leading particles vs Energy
192   TH1F *   fhPtNoIso ;                            //! Number of not isolated leading particles vs pT
193   TH2F *   fhPtNLocMaxNoIso ;                     //! Number of not isolated particles vs NLM in cluster
194   TH1F *   fhPtDecayIso ;                         //! Number of isolated Pi0 decay particles (invariant mass tag)
195   TH1F *   fhPtDecayNoIso ;                       //! Number of not isolated Pi0 decay leading particles (invariant mass tag)
196   TH2F *   fhEtaPhiDecayIso ;                     //! eta vs phi of isolated Pi0 decay particles
197   TH2F *   fhEtaPhiDecayNoIso ;                   //! eta vs phi of not isolated leading Pi0 decay particles
198
199   TH2F *   fhPtInCone ;                           //! Cluster/track Pt in the cone
200   TH2F *   fhPtClusterInCone ;                    //! Cluster Pt in the cone
201   TH2F *   fhPtCellInCone ;                       //! Cell amplitude in the cone
202   TH2F *   fhPtTrackInCone ;                      //! Track Pt in the cone
203   TH2F *   fhPtTrackInConeOtherBC ;               //! Track Pt in the cone, tracks out of main BC Time window
204   TH2F *   fhPtTrackInConeOtherBCPileUpSPD ;      //! Track Pt in the cone, tracks out of main BC Time window
205   TH2F *   fhPtTrackInConeBC0 ;                   //! Track Pt in the cone, tracks in BC=0
206   TH2F *   fhPtTrackInConeVtxBC0 ;                //! Track Pt in the cone, tracks in BC=0
207   TH2F *   fhPtTrackInConeBC0PileUpSPD ;          //! Track Pt in the cone, tracks in BC=0
208   TH2F *   fhPtInConePileUp[7] ;                  //! Particle Pt in the cone, if event is from pile-up (SPD method)
209   TH2F *   fhPtInConeCent ;                       //! Particle Pt in the cone versus centrality
210   TH2F *   fhPerpConeSumPt ;                      //! Sum Pt in cone at the perpendicular phi region to trigger axis  (phi +90)
211   TH2F *   fhPtInPerpCone ;                       //! Particle Pt  in cone at the perpendicular phi region to trigger axis  (phi +90)
212   
213   TH2F *   fhEtaPhiInConeCluster ;                //! Eta vs. phi of clusters in cone
214   TH2F *   fhEtaPhiCluster ;                      //! Eta vs. phi of all clusters
215   TH2F *   fhEtaPhiInConeTrack ;                  //! Eta vs. phi of tracks in cone
216   TH2F *   fhEtaPhiTrack ;                        //! Eta vs. phi of all tracks
217   
218   TH2F *   fhEtaBandCluster ;                     //! Accumulated pT in Eta band to estimate UE in cone, only clusters
219   TH2F *   fhPhiBandCluster ;                     //! Accumulated pT in Phi band to estimate UE in cone, only clusters
220   TH2F *   fhEtaBandTrack   ;                     //! Accumulated pT in Eta band to estimate UE in cone, only tracks
221   TH2F *   fhPhiBandTrack   ;                     //! Accumulated pT in Phi band to estimate UE in cone, only tracks
222   TH2F *   fhEtaBandCell ;                        //! Accumulated pT in Eta band to estimate UE in cone, only cells
223   TH2F *   fhPhiBandCell ;                        //! Accumulated pT in Phi band to estimate UE in cone, only cells
224
225   TH2F *   fhConeSumPt ;                          //! Cluster and tracks Sum Pt Sum Pt in the cone
226   TH2F *   fhConeSumPtCellTrack ;                 //! Cells and tracks Sum Pt Sum Pt in the cone
227   TH2F *   fhConeSumPtCell ;                      //! Cells Sum Pt Sum Pt in the cone
228   TH2F *   fhConeSumPtCluster ;                   //! Clusters Sum Pt Sum Pt in the cone
229   TH2F *   fhConeSumPtTrack ;                     //! Tracks Sum Pt Sum Pt in the cone
230   TH2F *   fhConeSumPtEtaBandUECluster;           //! Cluster Sum Pt in the eta band for clusters, before normalization
231   TH2F *   fhConeSumPtPhiBandUECluster;           //! Cluster Sum Pt in the phi band for clusters, before normalization
232   TH2F *   fhConeSumPtEtaBandUETrack;             //! Track Sum Pt in the eta band for tracks  , before normalization
233   TH2F *   fhConeSumPtPhiBandUETrack;             //! Track Sum Pt in the phi badn for tracks  , before normalization
234   TH2F *   fhConeSumPtEtaBandUECell;              //! Cell Sum amplitude in the eta band for cells, before normalization
235   TH2F *   fhConeSumPtPhiBandUECell;              //! Cell Sum amplitude in the phi band for cells, before normalization
236
237   TH2F *   fhConeSumPtTrigEtaPhi ;                //! Cluster and tracks Sum Pt Sum Pt in the cone, per eta-phi bin of trigger,
238   TH2F *   fhConeSumPtCellTrackTrigEtaPhi ;       //! Cell and tracks Sum Pt Sum Pt in the cone, per eta-phi bin of trigger,
239   TH2F *   fhConeSumPtEtaBandUEClusterTrigEtaPhi; //! Cluster Sum Pt in the eta band for clusters, per eta-phi bin of trigger,before normalization
240   TH2F *   fhConeSumPtPhiBandUEClusterTrigEtaPhi; //! Cluster Sum Pt in the phi band for clusters, per eta-phi bin of trigger, before normalization
241   TH2F *   fhConeSumPtEtaBandUETrackTrigEtaPhi;   //! Track Sum Pt in the eta band for tracks  , per eta-phi bin of trigger, before normalization
242   TH2F *   fhConeSumPtPhiBandUETrackTrigEtaPhi;   //! Track Sum Pt in the phi badn for tracks  , per eta-phi bin of trigger, before normalization
243   TH2F *   fhConeSumPtEtaBandUECellTrigEtaPhi;    //! Cluster Sum amplitude in the eta band for cells, per eta-phi bin of trigger, before normalization
244   TH2F *   fhConeSumPtPhiBandUECellTrigEtaPhi;    //! Cluster Sum amplitude in the phi band for cells, per eta-phi bin of trigger, before normalization
245   
246   TH2F *   fhConeSumPtEtaUESub;                   //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs pT trigger
247   TH2F *   fhConeSumPtPhiUESub;                   //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs pT trigger
248   TH2F *   fhConeSumPtEtaUESubTrigEtaPhi;         //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
249   TH2F *   fhConeSumPtPhiUESubTrigEtaPhi;         //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
250   
251   TH2F *   fhConeSumPtEtaUESubTrackCell;          //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs pT trigger
252   TH2F *   fhConeSumPtPhiUESubTrackCell;          //! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs pT trigger
253   TH2F *   fhConeSumPtEtaUESubTrackCellTrigEtaPhi;//! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
254   TH2F *   fhConeSumPtPhiUESubTrackCellTrigEtaPhi;//! Cluster and tracks Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
255   
256   TH2F *   fhConeSumPtEtaUESubCluster;            //! Cluster Sum Pt in the cone after bkg subtraction, vs pT trigger
257   TH2F *   fhConeSumPtPhiUESubCluster;            //! Cluster Sum Pt in the cone after bkg subtraction, vs pT trigger
258   TH2F *   fhConeSumPtEtaUESubClusterTrigEtaPhi;  //! Cluster Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
259   TH2F *   fhConeSumPtPhiUESubClusterTrigEtaPhi;  //! Cluster Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
260
261   TH2F *   fhConeSumPtEtaUESubCell;               //! Cell Sum amplitude in the cone after bkg subtraction, vs pT trigger
262   TH2F *   fhConeSumPtPhiUESubCell;               //! Cell Sum amplitude in the cone after bkg subtraction, vs pT trigger
263   TH2F *   fhConeSumPtEtaUESubCellTrigEtaPhi;     //! Cell Sum amplitude in the cone after bkg subtraction, vs eta-phi trigger
264   TH2F *   fhConeSumPtPhiUESubCellTrigEtaPhi;     //! Cell Sum amplitude in the cone after bkg subtraction, vs eta-phi trigger
265   
266   TH2F *   fhConeSumPtEtaUESubTrack;              //! Track Sum Pt in the cone after bkg subtraction, vs pT trigger
267   TH2F *   fhConeSumPtPhiUESubTrack;              //! Track Sum Pt in the cone after bkg subtraction, vs pT trigger
268   TH2F *   fhConeSumPtEtaUESubTrackTrigEtaPhi;    //! Track Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
269   TH2F *   fhConeSumPtPhiUESubTrackTrigEtaPhi;    //! Track Sum Pt in the cone after bkg subtraction, vs eta-phi trigger
270   
271   TH2F *   fhFractionTrackOutConeEta;             //! Fraction of cone out of tracks acceptance in eta
272   TH2F *   fhFractionTrackOutConeEtaTrigEtaPhi;   //! Fraction of cone out of tracks acceptance in eta, vs trigger eta-phi
273   TH2F *   fhFractionClusterOutConeEta;           //! Fraction of cone out of clusters acceptance in eta
274   TH2F *   fhFractionClusterOutConeEtaTrigEtaPhi; //! Fraction of cone out of clusters acceptance in eta, vs trigger eta-phi
275   TH2F *   fhFractionClusterOutConePhi;           //! Fraction of cone out of clusters acceptance in phi
276   TH2F *   fhFractionClusterOutConePhiTrigEtaPhi; //! Fraction of cone out of clusters acceptance in phi, vs trigger eta-phi
277   
278   TH2F *   fhFractionCellOutConeEta;              //! Fraction of cone out of cells acceptance in eta
279   TH2F *   fhFractionCellOutConeEtaTrigEtaPhi;    //! Fraction of cone out of cells acceptance in eta, vs trigger eta-phi
280   TH2F *   fhFractionCellOutConePhi;              //! Fraction of cone out of cells acceptance in phi
281   TH2F *   fhFractionCellOutConePhiTrigEtaPhi;    //! Fraction of cone out of cells acceptance in phi, vs trigger eta-phi
282   
283   TH2F *   fhConeSumPtClustervsTrack ;            //! Cluster vs tracks Sum Pt Sum Pt in the cone
284   TH2F *   fhConeSumPtEtaUESubClustervsTrack ;    //! Cluster vs tracks Sum Pt Sum Pt in the cone, after subtraction in eta band
285   TH2F *   fhConeSumPtPhiUESubClustervsTrack ;    //! Cluster vs tracks Sum Pt Sum Pt in the cone, after subtraction in phi band
286   TH2F *   fhConeSumPtCellvsTrack;                //! Cell vs tracks Sum Pt Sum Pt in the cone
287   TH2F *   fhConeSumPtEtaUESubCellvsTrack ;       //! Cell vs tracks Sum Pt Sum Pt in the cone, after subtraction in eta band
288   TH2F *   fhConeSumPtPhiUESubCellvsTrack ;       //! Cell vs tracks Sum Pt Sum Pt in the cone, after subtraction in phi band
289
290   TH2F *   fhEtaBandClustervsTrack ;              //! Accumulated pT in Eta band to estimate UE in cone, clusters vs tracks
291   TH2F *   fhPhiBandClustervsTrack ;              //! Accumulated pT in Phi band to estimate UE in cone, clusters vs tracks
292   TH2F *   fhEtaBandNormClustervsTrack ;          //! Accumulated pT in Eta band to estimate UE in cone, normalized to cone size, clusters vs tracks
293   TH2F *   fhPhiBandNormClustervsTrack ;          //! Accumulated pT in Phi band to estimate UE in cone, normalized to cone size, clusters vs tracks
294   TH2F *   fhEtaBandCellvsTrack ;                 //! Accumulated pT in Eta band to estimate UE in cone, cells vs tracks
295   TH2F *   fhPhiBandCellvsTrack ;                 //! Accumulated pT in Phi band to estimate UE in cone, cells vs tracks
296   TH2F *   fhEtaBandNormCellvsTrack ;             //! Accumulated pT cell in Eta band to estimate UE in cone, normalized to cone size, clusters vs tracks
297   TH2F *   fhPhiBandNormCellvsTrack ;             //! Accumulated pT cell in Phi band to estimate UE in cone, normalized to cone
298
299   TH2F *   fhConeSumPtSubvsConeSumPtTotPhiTrack;       //! Tracks, phi band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
300   TH2F *   fhConeSumPtSubNormvsConeSumPtTotPhiTrack;   //! Tracks, phi band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
301   TH2F *   fhConeSumPtSubvsConeSumPtTotEtaTrack;       //! Tracks, eta band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
302   TH2F *   fhConeSumPtSubNormvsConeSumPtTotEtaTrack;   //! Tracks, eta band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
303   TH2F *   fhConeSumPtSubvsConeSumPtTotPhiCluster;     //! Clusters, phi band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
304   TH2F *   fhConeSumPtSubNormvsConeSumPtTotPhiCluster; //! Clusters, phi band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
305   TH2F *   fhConeSumPtSubvsConeSumPtTotEtaCluster;     //! Clusters, eta band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
306   TH2F *   fhConeSumPtSubNormvsConeSumPtTotEtaCluster; //! Clusters, eta band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
307   TH2F *   fhConeSumPtSubvsConeSumPtTotPhiCell;        //! Cells, phi band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
308   TH2F *   fhConeSumPtSubNormvsConeSumPtTotPhiCell;    //! Cells, phi band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
309   TH2F *   fhConeSumPtSubvsConeSumPtTotEtaCell;        //! Cells, eta band: sum pT in cone after bkg sub vs sum pT in cone before bkg sub
310   TH2F *   fhConeSumPtSubNormvsConeSumPtTotEtaCell;    //! Cells, eta band: sum pT in cone after bkg sub normalized by sum pT in cone before bkg sub vs sum pT in cone before bkg sub
311   TH2F *   fhConeSumPtVSUETracksEtaBand;               //! fhConeSumPtVSUETracksEtaBand
312   TH2F *   fhConeSumPtVSUETracksPhiBand;               //! fhConeSumPtVSUETracksPhiBand
313   TH2F *   fhConeSumPtVSUEClusterEtaBand;              //! fhConeSumPtVSUEClusterEtaBand
314   TH2F *   fhConeSumPtVSUEClusterPhiBand;              //! fhConeSumPtVSUEClusterPhiBand
315   
316   //MC
317   //
318   TH2F *   fhEtaPrimMC  [6];                      //! Pt vs Eta of generated photon
319   TH2F *   fhPhiPrimMC  [6];                      //! Pt vs Phi of generated photon
320   TH1F *   fhEPrimMC    [6];                      //! Number of generated photon vs E
321   TH1F *   fhPtPrimMCiso[6];                      //! Number of generated isolated photon vs pT
322   
323   TH1F *   fhPtNoIsoMC[9];                        //! Number of not isolated mcTypes particle
324   TH1F *   fhPtIsoMC  [9];                        //! Number of isolated mcTypes particle
325   TH2F *   fhPhiIsoMC [9];                        //! Phi of isolated mcTypes particle
326   TH2F *   fhEtaIsoMC [9];                        //! eta of isolated mcTypes particle
327   TH1F *   fhPtThresIsolatedMC[9][5][5];          //! Isolated mcTypes particle with pt threshold
328   TH1F *   fhPtFracIsolatedMC [9][5][5];          //! Isolated mcTypes particle with pt frac
329   TH2F *   fhPtSumIsolatedMC  [9][5];             //! Isolated mcTypes particle with threshold on cone pt sum
330   
331   TH2F *   fhPtLambda0MC[9][2];                    //! Shower shape of (non) isolated candidates originated by mcTypes particle (do not apply SS cut previously)
332   //
333   
334   TH2F *   fhSumPtLeadingPt[5] ;                  //! Sum Pt in the cone
335   TH2F *   fhPtLeadingPt[5] ;                     //! Particle Pt in the cone
336   TH2F *   fhPerpSumPtLeadingPt[5] ;              //! Sum Pt in the cone at the perpendicular phi region to trigger axis  (phi +90)
337   TH2F *   fhPerpPtLeadingPt[5];                  //! Sum Pt in the cone at the perpendicular phi region to trigger axis  (phi +90)
338
339   TH1F *   fhPtThresIsolated[5][5] ;              //! Isolated particle with pt threshold 
340   TH1F *   fhPtFracIsolated[5][5] ;               //! Isolated particle with pt threshold frac
341   TH1F *   fhPtSumIsolated[5][5] ;                //! Isolated particle with threshold on cone pt sum
342   
343   TH2F *   fhEtaPhiPtThresIso[5][5] ;             //! eta vs phi of isolated particles with pt threshold
344   TH2F *   fhEtaPhiPtThresDecayIso[5][5] ;        //! eta vs phi of isolated particles with pt threshold
345   TH1F *   fhPtPtThresDecayIso[5][5] ;            //! Number of isolated Pi0 decay particles (invariant mass tag) with pt threshold   
346   
347   TH2F *   fhEtaPhiPtFracIso[5][5] ;              //! eta vs phi of isolated particles with pt frac
348   TH2F *   fhEtaPhiPtFracDecayIso[5][5] ;         //! eta vs phi of isolated particles with pt frac
349   TH1F *   fhPtPtFracDecayIso[5][5] ;             //! Number of isolated Pi0 decay particles (invariant mass tag) with pt fra
350
351   TH2F *   fhEtaPhiPtSumIso[5][5] ;               //! eta vs phi of isolated particles with pt sum
352   TH2F *   fhEtaPhiPtSumDecayIso[5][5] ;          //! eta vs phi of isolated particles with pt sum
353   TH1F *   fhPtPtSumDecayIso[5][5] ;              //! Number of isolated Pi0 decay particles (invariant mass tag) with pt sum
354   
355   TH2F *   fhEtaPhiSumDensityIso[5][5];           //! Isolated particle with threshold on cone sum density
356   TH2F *   fhEtaPhiSumDensityDecayIso[5][5];      //! Isolated particle with threshold on cone sum density
357   TH1F *   fhPtSumDensityIso[5][5];               //! Isolated particle with threshold on cone sum density
358   TH1F *   fhPtSumDensityDecayIso[5][5];          //! Isolated decay particle with threshold on cone sum density
359   
360   TH1F *   fhPtFracPtSumIso[5][5] ;               //! Number of isolated Pi0 decay particles (invariant mass tag) with pt sum
361   TH1F *   fhPtFracPtSumDecayIso[5][5] ;          //! Number of isolated Pi0 decay particles (invariant mass tag) with pt sum
362   TH2F *   fhEtaPhiFracPtSumIso[5][5];            //! Isolated particle with threshold on cone sum density
363   TH2F *   fhEtaPhiFracPtSumDecayIso[5][5];       //! Isolated particle with threshold on cone sum density
364  
365   // Track matching studies
366   TH2F *   fhTrackMatchedDEta[2]     ;            //! Eta distance between track and cluster vs cluster E
367   TH2F *   fhTrackMatchedDPhi[2]     ;            //! Phi distance between track and cluster vs cluster E
368   TH2F *   fhTrackMatchedDEtaDPhi[2] ;            //! Eta vs Phi distance between track and cluster, E cluster > 0.5 GeV
369   TH2F *   fhdEdx[2]  ;                           //! matched track dEdx vs cluster E 
370   TH2F *   fhEOverP[2];                           //! matched track E cluster over P track vs cluster E, after dEdx cut 
371   TH2F *   fhTrackMatchedMCParticle[2];           //! Trace origin of matched particle
372
373   // Shower Shape histograms
374   TH2F *   fhELambda0[2];                         //! Shower shape of (non) isolated photons (do not apply SS cut previously)  
375   TH2F *   fhPtLambda0[2];                        //! Shower shape of (non) isolated photons (do not apply SS cut previously)
376   TH2F *   fhELambda1[2];                         //! Shower shape of (non) isolated photons (do not apply SS cut previously)
377   TH2F *   fhELambda0TRD[2];                      //! Shower shape of (non) isolated photons, SM behind TRD (do not apply SS cut previously)
378   TH2F *   fhPtLambda0TRD[2];                     //! Shower shape of (non) isolated photons, SM behind TRD (do not apply SS cut previously)
379   TH2F *   fhELambda1TRD[2];                      //! Shower shape of (non) isolated photons, SM behind TRD (do not apply SS cut previously)
380
381   // Local maxima
382   TH2F *   fhNLocMax[2];                          //! number of maxima in selected clusters
383   TH2F *   fhELambda0LocMax1[2] ;                 //! E vs lambda0 of selected cluster, 1 local maxima in cluster 
384   TH2F *   fhELambda1LocMax1[2] ;                 //! E vs lambda1 of selected cluster, 1 local maxima in cluster 
385   TH2F *   fhELambda0LocMax2[2] ;                 //! E vs lambda0 of selected cluster, 2 local maxima in cluster 
386   TH2F *   fhELambda1LocMax2[2] ;                 //! E vs lambda1 of selected cluster, 2 local maxima in cluster
387   TH2F *   fhELambda0LocMaxN[2] ;                 //! E vs lambda0 of selected cluster, N>2 local maxima in cluster 
388   TH2F *   fhELambda1LocMaxN[2] ;                 //! E vs lambda1 of selected cluster, N>2 local maxima in cluster 
389   
390   // Pile-up
391   TH1F *   fhEIsoPileUp[7] ;                      //! Number of isolated particles
392   TH1F *   fhPtIsoPileUp[7] ;                     //! Number of isolated particles
393   TH1F *   fhENoIsoPileUp[7] ;                    //! Number of not isolated particles
394   TH1F *   fhPtNoIsoPileUp[7] ;                   //! Number of not isolated particles
395   TH2F *   fhTimeENoCut;                          //! time of cluster vs E, no cut 
396   TH2F *   fhTimeESPD;                            //! time of cluster vs E, IsSPDPileUp
397   TH2F *   fhTimeESPDMulti;                       //! time of cluster vs E, IsSPDPileUpMulti
398   TH2F *   fhTimeNPileUpVertSPD;                  //! time of cluster vs n pile-up vertices from SPD
399   TH2F *   fhTimeNPileUpVertTrack;                //! time of cluster vs n pile-up vertices from Tracks
400   TH2F *   fhTimeNPileUpVertContributors;         //! time of cluster vs n pile-up vertex from SPD contributors
401   TH2F *   fhTimePileUpMainVertexZDistance;       //! time of cluster vs difference of z main vertex and pile-up vertex 
402   TH2F *   fhTimePileUpMainVertexZDiamond;        //! time of cluster vs difference of z diamond and pile-up vertex 
403   
404   //Histograms settings
405   Int_t    fHistoNPtSumBins;                      // Number of bins in PtSum histograms
406   Float_t  fHistoPtSumMax;                        // PtSum maximum in histogram
407   Float_t  fHistoPtSumMin;                            // PtSum minimum in histogram
408   Int_t    fHistoNPtInConeBins;                   // Number of bins in PtInCone histogram
409   Float_t  fHistoPtInConeMax;                     // PtInCone maximum in histogram
410   Float_t  fHistoPtInConeMin;                     // PtInCone maximum in histogram 
411
412   AliAnaParticleIsolation(              const AliAnaParticleIsolation & iso) ; // cpy ctor
413   AliAnaParticleIsolation & operator = (const AliAnaParticleIsolation & iso) ; // cpy assignment
414   
415   ClassDef(AliAnaParticleIsolation,26)
416 } ;
417
418
419 #endif //ALIANAPARTICLEISOLATION_H
420
421
422