]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.h
move common switchs and settings declared by each analysis to base class:Calo name...
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / AliAnaParticleHadronCorrelation.h
1 #ifndef ALIANAPARTICLEHADRONCORRELATION_H
2 #define ALIANAPARTICLEHADRONCORRELATION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 //_________________________________________________________________________
7 // Class that contains the algorithm for the analysis of
8 // particle - hadron correlations
9 // Particle (for example direct gamma) must be found in a previous analysis
10 //
11 //-- Author: Gustavo Conesa (LNF-INFN) (LPSC-IN2P3-CNRS)
12 //           Yaxian Mao (LPSC-IN2P3-CNRS) and (CNWU) first usable implementation.
13 //           Xiangrong Zhu (CNWU), implementtion of own mixing.
14 //
15
16 // --- Analysis system ---
17
18 #include "AliAnaCaloTrackCorrBaseClass.h"
19 class AliAODPWG4ParticleCorrelation ;
20
21 class AliAnaParticleHadronCorrelation : public AliAnaCaloTrackCorrBaseClass {
22   
23  public: 
24   
25   AliAnaParticleHadronCorrelation() ;          // default ctor
26   virtual ~AliAnaParticleHadronCorrelation() ; // virtual dtor
27   
28   // General methods
29       
30   TObjString * GetAnalysisCuts();
31   
32   TList      * GetCreateOutputObjects();
33   
34   void         Init();
35   
36   void         InitParameters();
37
38   void         FillEventMixPool() ;
39     
40   void         MakeAnalysisFillHistograms() ; 
41   
42   void         Print(const Option_t * opt) const;
43   
44   // Main analysis methods
45   
46   Bool_t       FindLeadingOppositeHadronInWindow(AliAODPWG4ParticleCorrelation * particle);
47   
48   Bool_t       GetDecayPhotonMomentum   (AliAODPWG4Particle* trigger, TLorentzVector & mom1, TLorentzVector & mom2);
49   
50   void         MakeChargedCorrelation   (AliAODPWG4ParticleCorrelation * particle) ;
51   
52   void         MakeNeutralCorrelation   (AliAODPWG4ParticleCorrelation * particle) ;
53   
54   void         MakeMCChargedCorrelation (Int_t triggerMCLable, Int_t histoIndex, Bool_t lostDecayPair) ;
55   
56   void         MakeChargedMixCorrelation(AliAODPWG4ParticleCorrelation * particle) ;
57   
58   // Filling histogram methods
59   
60   void         FillChargedAngularCorrelationHistograms  (Float_t ptAssoc,  Float_t ptTrig,      Int_t   assocBin,
61                                                          Float_t phiAssoc, Float_t phiTrig,     Float_t deltaPhi,
62                                                          Float_t etaAssoc, Float_t etaTrig,  
63                                                          Int_t   decayTag, Float_t hmpidSignal, Int_t outTOF,
64                                                          Int_t   cenbin,   Int_t   mcTag);
65   
66   void         FillChargedEventMixPool();
67   
68   Bool_t       FillChargedMCCorrelationHistograms       (Float_t mcAssocPt, Float_t mcAssocPhi, Float_t mcAssocEta,
69                                                          Float_t mcTrigPt,  Float_t mcTrigPhi,  Float_t mcTrigEta,
70                                                          Int_t histoIndex,  Bool_t  lostDecayPair);
71   
72   void         FillChargedMomentumImbalanceHistograms   (Float_t ptTrig,   Float_t ptAssoc, 
73                                                          Float_t deltaPhi, Int_t cenbin, Int_t charge,
74                                                          Int_t   assocBin, Int_t decayTag,
75                                                          Int_t   outTOF,   Int_t mcTag );
76   
77   void         FillChargedUnderlyingEventHistograms     (Float_t ptTrig,   Float_t ptAssoc, 
78                                                          Float_t deltaPhi, Int_t cenbin, Int_t outTOF);
79   
80   void         FillChargedUnderlyingEventSidesHistograms(Float_t ptTrig,   Float_t ptAssoc, 
81                                                          Float_t deltaPhi);
82   
83   void         FillDecayPhotonCorrelationHistograms     (Float_t ptAssoc,     Float_t phiAssoc, 
84                                                          TLorentzVector mom1, TLorentzVector mom2, 
85                                                          Bool_t bChargedOrNeutral); 
86   
87   void         FillNeutralEventMixPool();
88   
89   
90   void         FillNeutralUnderlyingEventSidesHistograms(Float_t ptTrig,   Float_t ptAssoc, 
91                                                          Float_t zT,       Float_t hbpZT, 
92                                                          Float_t deltaPhi);  
93     
94   Int_t        GetMCTagHistogramIndex(Int_t tag);
95   static const Int_t fgkNmcTypes = 8;
96
97   Bool_t       IsTriggerTheEventLeadingParticle();
98   
99   // Parameter setter and getter
100   
101   Float_t      GetMinimumTriggerPt()       const { return GetMinPt()             ; }
102   Float_t      GetMaximumTriggerPt()       const { return GetMaxPt()             ; }
103   void         SetTriggerPtRange(Float_t min, Float_t max)
104                { SetMinPt(min), SetMaxPt(max)                                    ; }
105   
106
107   Float_t      GetMaximumAssociatedPt()    const { return fMaxAssocPt            ; }
108   Float_t      GetMinimumAssociatedPt()    const { return fMinAssocPt            ; }
109   void         SetAssociatedPtRange(Float_t min, Float_t max)
110                { fMaxAssocPt   = max ;           fMinAssocPt  = min              ; }
111
112   Double_t     GetDeltaPhiMaxCut()         const { return fDeltaPhiMaxCut        ; }
113   Double_t     GetDeltaPhiMinCut()         const { return fDeltaPhiMinCut        ; }
114   void         SetDeltaPhiCutRange(Double_t phimin, Double_t phimax)
115                { fDeltaPhiMaxCut   = phimax ;    fDeltaPhiMinCut   = phimin      ; }
116   
117   // Leading Hadron
118   Double_t     GetLeadHadronPhiMaxCut()    const { return fMaxLeadHadPhi         ; }
119   Double_t     GetLeadHadronPhiMinCut()    const { return fMinLeadHadPhi         ; }
120   void         SetLeadHadronPhiCut(Float_t min, Float_t max)
121                { fMaxLeadHadPhi = max ;          fMinLeadHadPhi  = min           ; }
122
123   Double_t     GetLeadHadronPtMinCut()     const { return fMinLeadHadPt          ; }
124   Double_t     GetLeadHadronPtMaxCut()     const { return fMaxLeadHadPt          ; }
125   void         SetLeadHadronPtCut(Float_t min, Float_t max)
126                { fMaxLeadHadPt  = max ;           fMinLeadHadPt  = min           ; }
127   
128   Bool_t       IsLeadHadronCutOn()        const { return fSelectLeadingHadronAngle   ; }
129   void         SwitchOnLeadHadronSelection()    { fSelectLeadingHadronAngle = kTRUE  ; }
130   void         SwitchOffLeadHadronSelection()   { fSelectLeadingHadronAngle = kFALSE ; }
131   
132   void         SwitchOnFillLeadHadronHistograms() { fFillLeadHadOppositeHisto = kTRUE  ; }
133   void         SwitchOffFillLeadHadronHistograms(){ fFillLeadHadOppositeHisto = kFALSE ; }
134
135   // UE
136   
137   Double_t     GetUeDeltaPhiMaxCut()       const { return fUeDeltaPhiMaxCut      ; }
138   Double_t     GetUeDeltaPhiMinCut()       const { return fUeDeltaPhiMinCut      ; }
139   
140   void         SetUeDeltaPhiCutRange(Double_t uephimin, Double_t uephimax)
141                   { fUeDeltaPhiMaxCut = uephimax ;  fUeDeltaPhiMinCut = uephimin ; }
142   
143   Bool_t       IsSeveralUEOn()             const { return fMakeSeveralUE         ; }
144   void         SwitchOnSeveralUECalculation()    { fMakeSeveralUE      = kTRUE   ; }
145   void         SwitchOffSeveralUECalculation()   { fMakeSeveralUE      = kFALSE  ; }
146
147   // Do trigger-neutral correlation
148   Bool_t       DoNeutralCorr()             const { return fNeutralCorr           ; }
149   void         SwitchOnNeutralCorr()             { fNeutralCorr      = kTRUE     ; }
150   void         SwitchOffNeutralCorr()            { fNeutralCorr      = kFALSE    ; }  
151   
152   // Taking the absolute leading as the trigger or not
153   Bool_t       DoAbsoluteLeading()         const { return fMakeAbsoluteLeading   ; }
154   void         SwitchOnAbsoluteLeading()         { fMakeAbsoluteLeading = kTRUE  ; }
155   void         SwitchOffAbsoluteLeading()        { fMakeAbsoluteLeading = kFALSE ; }
156   
157   // Taking the near side leading as the trigger or not
158   Bool_t       DoNearSideLeading()         const { return fMakeNearSideLeading   ; }
159   void         SwitchOnNearSideLeading()         { fMakeNearSideLeading = kTRUE  ; }
160   void         SwitchOffNearSideLeading()        { fMakeNearSideLeading = kFALSE ; }
161   
162   // Do decay-hadron correlation if it is pi0 trigger
163   Bool_t       IsPi0Trigger()              const { return fPi0Trigger            ; }
164   void         SwitchOnPi0TriggerDecayCorr()     { fPi0Trigger          = kTRUE  ; }
165   void         SwitchOffPi0TriggerDecayCorr()    { fPi0Trigger          = kFALSE ; }
166   
167   Bool_t       IsDecayTrigger()            const { return fDecayTrigger          ; }
168   void         SwitchOnDecayTriggerDecayCorr()   { fDecayTrigger        = kTRUE  ; }
169   void         SwitchOffDecayTriggerDecayCorr()  { fDecayTrigger        = kFALSE ; }  
170   void         SetNDecayBits(Int_t n)            { fNDecayBits = n               ; }
171   void         SetDecayBits(Int_t i, UInt_t bit) { if(i < 4) fDecayBits[i] = bit ; }
172   
173   Bool_t       IsHMPIDCorrelation()        const { return fHMPIDCorrelation      ; }
174   void         SwitchOnHMPIDCorrelation()        { fHMPIDCorrelation    = kTRUE  ; }
175   void         SwitchOffHMPIDCorrelation()       { fHMPIDCorrelation    = kFALSE ; }  
176   
177   void         SwitchOnFillBradHistograms()      { fFillBradHisto       = kTRUE  ; }
178   void         SwitchOffFillBradHistograms()     { fFillBradHisto       = kFALSE ; }  
179     
180   Bool_t       OnlyIsolated()              const { return fSelectIsolated        ; }
181   void         SelectIsolated(Bool_t s)          { fSelectIsolated   = s         ; }
182
183   void         SetPi0AODBranchName(TString n)    { fPi0AODBranchName = n         ; }
184   
185   void         SetNAssocPtBins(Int_t n) ;     
186   void         SetAssocPtBinLimit(Int_t ibin, Float_t pt) ;
187   
188   Bool_t       IsMixStoredInReaderOn()     const { return fUseMixStoredInReader  ; }
189   void         SwitchOnUseMixStoredInReader()    { fUseMixStoredInReader = kTRUE ; }
190   void         SwitchOffUseMixStoredInReader()   { fUseMixStoredInReader = kFALSE; }
191   
192   void         SwitchOnFillNeutralInMixedEvent() { fFillNeutralEventMixPool = kTRUE  ; }
193   void         SwitchOffFillNeutralInMixedEvent(){ fFillNeutralEventMixPool = kFALSE ; }
194   
195   void         SetM02Cut(Float_t min=0, Float_t max=10)  { fM02MinCut   = min ; fM02MaxCut  = max ; }
196
197   void         SwitchOnCorrelationVzBin()        { fCorrelVzBin          = kTRUE  ; }
198   void         SwitchOffCorrelationVzBin()       { fCorrelVzBin          = kFALSE ; }  
199   
200   void         SwitchOnFillTriggerAODWithReferences()   { fFillAODWithReferences = kTRUE  ; }
201   void         SwitchOffFillTriggerAODWithReferences()  { fFillAODWithReferences = kFALSE ; }
202
203   void         SwitchOnCheckNeutralClustersForLeading() { fCheckLeadingWithNeutralClusters = kTRUE  ; }
204   void         SwitchOffCheckNeutralClustersForLeading(){ fCheckLeadingWithNeutralClusters = kFALSE ; }
205   
206   void         SwitchOnFillEtaGapHistograms()    { fFillEtaGapsHisto    = kTRUE  ; }
207   void         SwitchOffFillEtaGapHistograms()   { fFillEtaGapsHisto    = kFALSE ; }
208   
209   void         SwitchOnFillPtImbalancePerPtABinHistograms()  { fFillMomImbalancePtAssocBinsHisto = kTRUE  ; }
210   void         SwitchOffFillPtImbalancePerPtABinHistograms() { fFillMomImbalancePtAssocBinsHisto = kFALSE ; }
211   
212   void         SetMCGenType(Int_t min = 0, Int_t max = 6) { if(min >= 0 && min < fgkNmcTypes) fMCGenTypeMin = min ;
213                                                             if(max >= 0 && max < fgkNmcTypes) fMCGenTypeMax = max ; }
214   
215  private:
216
217   Bool_t       fFillAODWithReferences;         // Add to the trigger particle AOD the reference to the tracks or neutrals in correlation.
218   Bool_t       fCheckLeadingWithNeutralClusters;// Compare the trigger candidate to Leading pT with the clusters pT, by default only charged
219   Float_t      fMaxAssocPt ;                   // Maximum associated hadron pt
220   Float_t      fMinAssocPt ;                   // Minimum associated hadron pt
221   Double_t     fDeltaPhiMaxCut ;               // Minimum Delta Phi Gamma-Hadron
222   Double_t     fDeltaPhiMinCut ;               // Maximum Delta Phi Gamma-Hadron
223   Bool_t       fSelectIsolated ;               // Select only trigger particles isolated
224   Bool_t       fMakeSeveralUE ;                // Do analysis for several underlying events contribution
225   Double_t     fUeDeltaPhiMaxCut ;             // Minimum Delta Phi Gamma-Underlying Hadron
226   Double_t     fUeDeltaPhiMinCut ;             // Maximum Delta Phi Gamma-Underlying Hadron
227   TString      fPi0AODBranchName;              // Name of AOD branch with pi0, not trigger
228   Bool_t       fNeutralCorr ;                  // switch the analysis with neutral particles
229   Bool_t       fPi0Trigger ;                   // switch the analysis with decay photon from pi0 trigger
230   Bool_t       fDecayTrigger ;                 // switch the analysis with decay photon from photon trigger
231   Int_t        fNDecayBits ;                   // in case of study of decay triggers, select the decay bit
232   UInt_t       fDecayBits[4] ;                 // in case of study of decay triggers, select the decay bit
233   Bool_t       fMakeAbsoluteLeading ;          // requesting absolute leading triggers
234   Bool_t       fMakeNearSideLeading ;          // requesting near side leading (+-90º from trigger particle) triggers
235   Int_t        fLeadingTriggerIndex ;          // Store here per event the trigger index, to avoid too many loops
236   Bool_t       fHMPIDCorrelation    ;          // Correlate with particles on HMPID or its acceptance
237   Bool_t       fFillBradHisto ;                // DPhi histograms calculated differently
238   Int_t        fNAssocPtBins ;                 // Number of associated pT bins under study
239   Float_t      fAssocPtBinLimit[20] ;          // Associated pT under study
240   Bool_t       fCorrelVzBin ;                  // Fill one histogram per vz bin
241   
242   TList **     fListMixTrackEvents ;           //![GetNCentrBin()*GetNZvertBin()*GetNRPBin()] Containers for tracks in stored events for mixing
243   TList **     fListMixCaloEvents ;            //![GetNCentrBin()*GetNZvertBin()*GetNRPBin()] Containers for calo clusters in stored events for mixing
244
245   Bool_t       fUseMixStoredInReader;          // Signal if in the current event the pool was filled
246   Bool_t       fFillNeutralEventMixPool;       // Add clusters to pool if requested
247   
248   Float_t      fM02MaxCut   ;                  // Study photon clusters with l0 smaller than cut
249   Float_t      fM02MinCut   ;                  // Study photon clusters with l0 larger than cut
250   
251   Bool_t       fSelectLeadingHadronAngle;      // Select events with leading particle within a range
252   Bool_t       fFillLeadHadOppositeHisto;      // Fill histograms for leading hadrons in opposite side of trigger
253   
254   Float_t      fMinLeadHadPhi;                 // Minimum angle between the trigger and leading hadron
255   Float_t      fMaxLeadHadPhi;                 // Maximum ange between the trigger and leading hadron
256   Float_t      fMinLeadHadPt;                  // Minimum pT of leading hadron
257   Float_t      fMaxLeadHadPt;                  // Maximum pT of leading hadron
258
259   Bool_t       fFillEtaGapsHisto;              // Fill azimuthal correlation histograms in 2 eta gaps, |eta|>0.8 and |eta|<0.01
260   Bool_t       fFillMomImbalancePtAssocBinsHisto; // momentum imbalance histograms in bins of pT associated
261   
262   Int_t        fMCGenTypeMin;                  // Of the fgkNmcTypes possible types, select those between fMCGenTypeMin and fMCGenTypeMax
263   Int_t        fMCGenTypeMax;                  // Of the fgkNmcTypes possible types, select those between fMCGenTypeMin and fMCGenTypeMax
264   
265   //Histograms
266
267   //trigger particles
268   TH1F *       fhPtTriggerInput;               //! pT distribution of trigger particles before selection
269   TH1F *       fhPtTriggerSSCut;               //! pT distribution of trigger particles after shower shape selection
270   TH1F *       fhPtTriggerIsoCut;              //! pT distribution of trigger particles after isolation cut selection
271   TH1F *       fhPtTriggerFidCut;              //! pT distribution of trigger particles after fiducial selection
272   TH1F *       fhPtTrigger;                    //! pT distribution of trigger particles
273   TH1F *       fhPtTriggerVtxBC0;              //! pT distribution of trigger particles
274   TH1F *       fhPtTriggerPileUp[7];           //! pT distribution of trigger particles
275   TH2F *       fhPtTriggerVzBin;               //! pT distribution of trigger particles vs vz bin
276   TH2F *       fhPtTriggerBin;                 //! pT distribution of trigger particles, vs mixing bin
277   TH2F *       fhPhiTrigger;                   //! phi distribution vs pT of trigger particles
278   TH2F *       fhEtaTrigger;                   //! eta distribution vs pT of trigger particles
279   
280   TH1F *       fhPtTriggerMC[fgkNmcTypes];     //! pT distribution of trigger particles, check the origin of the cluster : "Photon","Pi0","Pi0Decay","EtaDecay","OtherDecay","Electron","Hadron"
281
282   TH1F *       fhPtDecayTrigger[4];            //! pT distribution of trigger particles, tagged as decay
283   TH1F *       fhPtDecayTriggerMC[4][fgkNmcTypes];//! pT distribution of trigger particles, tagged as decay, check the origin of the cluster
284   
285   TH2F *       fhPtTriggerCentrality;          //! pT distribution of trigger particles vs centrality
286   TH2F *       fhPtTriggerEventPlane;          //! pT distribution of trigger particles vs centrality
287   TH2F *       fhTriggerEventPlaneCentrality;  //! event plane vs centrality for trigger particles
288   
289   TH1F *       fhPtTriggerMixed;               //! pT distribution of trigger particles, used in mixing
290   TH2F *       fhPtTriggerMixedVzBin;          //! pT distribution of trigger particles, used in mixing, vs vz bin
291   TH2F *       fhPtTriggerMixedBin;            //! pT distribution of trigger particles vs mixing bin
292   TH2F *       fhPhiTriggerMixed;              //! phi distribution vs pT of trigger particles, used in mixing
293   TH2F *       fhEtaTriggerMixed;              //! eta distribution vs pT of trigger particles, used in mixing  
294
295   // Leading hadron in the opposite side of the trigger
296   TH2F *       fhPtLeadingOppositeHadron;        //! pT trigger : pT distribution of leading hadron oposite to trigger
297   TH2F *       fhPtDiffPhiLeadingOppositeHadron; //! pT trigger : difference phi distribution of leading hadron oposite and trigger
298   TH2F *       fhPtDiffEtaLeadingOppositeHadron; //! pT trigger: difference eta distribution of leading hadron oposite and trigger
299   TH1F *       fhPtNoLeadingOppositeHadron;      //! pT trigger for events without opposite hadrons
300   TH2F *       fhEtaPhiNoLeadingOppositeHadron;  //! location of trigger when no hadron is found on the opposite side
301
302   //trigger-charged histograms
303   TH2F *       fhDeltaPhiDeltaEtaCharged ;     //! differences of eta and phi between trigger and charged hadrons
304   TH2F *       fhPhiCharged  ;                 //! Phi distribution of charged particles
305   TH2F *       fhEtaCharged  ;                 //! Eta distribution of charged particles
306   TH2F *       fhDeltaPhiCharged  ;            //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
307   TH2F *       fhDeltaEtaCharged  ;            //! Difference of charged particle eta and trigger particle  eta as function of  trigger particle pT
308   TH2F *       fhDeltaPhiChargedPt  ;          //! Difference of charged particle phi and trigger particle  phi as function of charged particle pT
309   TH2F *       fhDeltaPhiUeChargedPt ;         //! Difference of charged particle from underlying events phi and trigger particle  phi as function of charged particle pT
310   TH1F *       fhUePart;                       //! UE particles distribution vs pt trig
311   TH2F *       fhXECharged  ;                  //! Trigger particle -charged hadron momentum imbalance histogram
312   TH2F *       fhXECharged_Cone2  ;            //! Trigger particle -charged hadron momentum imbalance histogram in cone2 (5pi/6-7pi/6)
313   TH2F *       fhXEUeCharged  ;                //! Trigger particle -underlying charged hadron momentum imbalance histogram  
314   TH2F *       fhXEPosCharged  ;               //! Trigger particle -positive charged hadron momentum imbalance histogram
315   TH2F *       fhXENegCharged  ;               //! Trigger particle -negative charged hadron momentum imbalance histogram 
316   TH2F *       fhPtHbpXECharged  ;             //! Trigger particle -charged hadron momentum HBP histogram
317   TH2F *       fhPtHbpXECharged_Cone2  ;       //! Trigger particle -charged hadron momentum HBP histogram in cone2 (5pi/6-7pi/6)
318   TH2F *       fhPtHbpXEUeCharged  ;           //! Trigger particle -underlying charged hadron momentum HBP histogram  
319   TH2F *       fhZTCharged  ;                  //! Trigger particle -charged hadron momentum imbalance histogram
320   TH2F *       fhZTUeCharged  ;                //! Trigger particle -underlying charged hadron momentum imbalance histogram  
321   TH2F *       fhZTPosCharged  ;               //! Trigger particle -positive charged hadron momentum imbalance histogram
322   TH2F *       fhZTNegCharged  ;               //! Trigger particle -negative charged hadron momentum imbalance histogram 
323   TH2F *       fhPtHbpZTCharged  ;             //! Trigger particle -charged hadron momentum HBP histogram
324   TH2F *       fhPtHbpZTUeCharged  ;           //! Trigger particle -underlying charged hadron momentum HBP histogram  
325   
326   TH2F *       fhXEChargedMC[fgkNmcTypes]  ;   //! Trigger particle -charged hadron momentum imbalance histogram, check the origin of the cluster : decay photon (pi0, eta, other), merged photon (pi0), hadron, rest of photons (prompt, FSR, ISR)
327   TH2F *       fhDeltaPhiChargedMC[fgkNmcTypes];//! Trigger particle -charged hadron delta phi histogram, check the origin of the cluster : decay photon (pi0, eta, other), merged photon (pi0), hadron, rest of photons (prompt, FSR, ISR)
328
329   TH2F *       fhDeltaPhiDeltaEtaChargedPtA3GeV;//! differences of eta and phi between trigger and charged hadrons, pTa > 3 GeV
330   TH2F *       fhDeltaPhiChargedPtA3GeV  ;      //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, pTa > 3 GeV
331   TH2F *       fhDeltaEtaChargedPtA3GeV  ;      //! Difference of charged particle eta and trigger particle  eta as function of  trigger particle pT, pTa > 3 GeV
332   
333   // Events tagged as pileup by SDD,EMCal, or combination
334   TH2F *       fhDeltaPhiChargedPileUp[7]  ;    //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
335   TH2F *       fhDeltaEtaChargedPileUp[7]  ;    //! Difference of charged particle eta and trigger particle  eta as function of  trigger particle pT
336   TH2F *       fhDeltaPhiChargedPtA3GeVPileUp[7] ; //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, pTa > 3 GeV
337   TH2F *       fhDeltaEtaChargedPtA3GeVPileUp[7] ; //! Difference of charged particle eta and trigger particle  eta as function of  trigger particle pT, pTa > 3 GeV
338   TH2F *       fhXEChargedPileUp[7]  ;          //! Trigger particle -charged hadron momentum imbalance histogram
339   TH2F *       fhXEUeChargedPileUp[7]  ;        //! Trigger particle -charged hadron momentum imbalance histogram
340   TH2F *       fhZTChargedPileUp[7]  ;          //! Trigger particle -charged hadron momentum imbalance histogram
341   TH2F *       fhZTUeChargedPileUp[7]  ;        //! Trigger particle -charged hadron momentum imbalance histogram
342   TH2F *       fhPtTrigChargedPileUp[7] ;       //! trigger and correlated particl pt, to be used for mean value for kt
343   
344   TH2F *       fhDeltaPhiChargedOtherBC  ;       //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
345   TH2F *       fhDeltaPhiChargedPtA3GeVOtherBC ; //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, pTa > 3 GeV
346   TH2F *       fhXEChargedOtherBC  ;             //! Trigger particle -charged hadron momentum imbalance histogram
347   TH2F *       fhXEUeChargedOtherBC  ;           //! Trigger particle -charged hadron momentum imbalance histogram
348   TH2F *       fhZTChargedOtherBC  ;             //! Trigger particle -charged hadron momentum imbalance histogram
349   TH2F *       fhZTUeChargedOtherBC  ;           //! Trigger particle -charged hadron momentum imbalance histogram
350   TH2F *       fhPtTrigChargedOtherBC ;          //! trigger and correlated particl pt, to be used for mean value for kt
351
352   TH2F *       fhDeltaPhiChargedBC0  ;           //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
353   TH2F *       fhDeltaPhiChargedPtA3GeVBC0 ;     //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, pTa > 3 GeV
354   TH2F *       fhXEChargedBC0  ;                 //! Trigger particle -charged hadron momentum imbalance histogram
355   TH2F *       fhXEUeChargedBC0  ;               //! Trigger particle -charged hadron momentum imbalance histogram
356   TH2F *       fhZTChargedBC0  ;                 //! Trigger particle -charged hadron momentum imbalance histogram
357   TH2F *       fhZTUeChargedBC0  ;               //! Trigger particle -charged hadron momentum imbalance histogram
358   TH2F *       fhPtTrigChargedBC0 ;              //! trigger and correlated particl pt, to be used for mean value for kt
359
360   TH2F *       fhDeltaPhiChargedVtxBC0  ;        //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
361   TH2F *       fhDeltaPhiChargedPtA3GeVVtxBC0 ;  //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, pTa > 3 GeV
362   TH2F *       fhXEChargedVtxBC0  ;              //! Trigger particle -charged hadron momentum imbalance histogram
363   TH2F *       fhXEUeChargedVtxBC0  ;            //! Trigger particle -charged hadron momentum imbalance histogram
364   TH2F *       fhZTChargedVtxBC0  ;              //! Trigger particle -charged hadron momentum imbalance histogram
365   TH2F *       fhZTUeChargedVtxBC0  ;            //! Trigger particle -charged hadron momentum imbalance histogram
366   TH2F *       fhPtTrigChargedVtxBC0 ;           //! trigger and correlated particl pt, to be used for mean value for kt
367   
368   //if several UE calculation is on, most useful for jet-jet events contribution
369   TH2F *       fhDeltaPhiUeLeftCharged  ;      //! Difference of charged particle from underlying events phi and trigger particle  phi as function of charged particle pT
370   TH2F *       fhDeltaPhiUeLeftUpCharged;      //! Difference of charged particle from underlying events phi and trigger particle  phi
371   TH2F *       fhDeltaPhiUeRightUpCharged;     //! Difference of charged particle from underlying events phi and trigger particle  phi 
372   TH2F *       fhDeltaPhiUeLeftDownCharged;    //! Difference of charged particle from underlying events phi and trigger particle  phi 
373   TH2F *       fhDeltaPhiUeRightDownCharged;   //! Difference of charged particle from underlying events phi and trigger particle  phi 
374   TH2F *       fhXEUeLeftCharged  ;            //! Trigger particle -underlying charged hadron momentum imbalance histogram 
375   TH2F *       fhXEUeLeftUpCharged  ;          //! Trigger particle -underlying charged hadron momentum imbalance histogram
376   TH2F *       fhXEUeRightUpCharged ;          //! Trigger particle -underlying charged hadron momentum imbalance histogram  
377   TH2F *       fhXEUeLeftDownCharged  ;        //! Trigger particle -underlying charged hadron momentum imbalance histogram 
378   TH2F *       fhXEUeRightDownCharged ;        //! Trigger particle -underlying charged hadron momentum imbalance histogram  
379   TH2F *       fhPtHbpXEUeLeftCharged  ;       //! Trigger particle -underlying charged hadron momentum HBP histogram 
380   TH2F *       fhZTUeLeftCharged  ;            //! Trigger particle -underlying charged hadron momentum imbalance histogram
381   TH2F *       fhPtHbpZTUeLeftCharged  ;       //! Trigger particle -underlying charged hadron momentum HBP histogram
382   
383   //for pout and kt extraction
384   TH2F *       fhPtTrigPout  ;                 //! Pout =associated pt*sin(delta phi) distribution vs trigger pt 
385   TH2F *       fhPtTrigCharged ;               //! trigger and correlated particl pt, to be used for mean value for kt  
386   
387   //if different multiplicity analysis asked
388   TH2F **      fhDeltaPhiChargedMult ;         //![GetNCentrBin()] differences of phi between trigger and charged hadrons: multiplicity bin
389   TH2F **      fhDeltaEtaChargedMult ;         //![GetNCentrBin()] differences of eta between trigger and charged hadrons: multiplicity bin
390   TH2F **      fhXEMult  ;                     //![GetNCentrBin()] Trigger particle -charged hadron momentum imbalance histogram: multiplicity bin
391   TH2F **      fhXEUeMult  ;                   //![GetNCentrBin()] Trigger particle -UE charged hadron momentum imbalance histogram: multiplicity bin
392   TH2F **      fhZTMult  ;                     //![GetNCentrBin()] Trigger particle -charged hadron momentum imbalance histogram: multiplicity bin
393   TH2F **      fhZTUeMult  ;                   //![GetNCentrBin()] Trigger particle -UE charged hadron momentum imbalance histogram: multiplicity bin
394   
395   TH2F *       fhAssocPtBkg;                   //! Trigger pT vs associated pT for background
396   TH2F **      fhDeltaPhiDeltaEtaAssocPtBin;   //![fNAssocPtBins*GetNZvertBin()] Difference of charged particle phi and trigger particle  phi as function eta difference, for different associated bins
397   TH2F **      fhDeltaPhiAssocPtBin;           //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi for different associated pt and vz bins
398   TH2F **      fhDeltaPhiAssocPtBinDEta08;     //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi for different associated pt and vz bins for Delta eta > 0.8
399   TH2F **      fhDeltaPhiAssocPtBinDEta0 ;     //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi for different associated pt and vz bins for Delta eta = 0
400   TH2F **      fhDeltaPhiAssocPtBinHMPID;      //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi for different associated pt and vz bins, track with HMPID
401   TH2F **      fhDeltaPhiAssocPtBinHMPIDAcc;   //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi for different associated pt and vz bins, track with HMPIDAcc
402   TH2F **      fhDeltaPhiBradAssocPtBin;       //![fNAssocPtBins*GetNZvertBin()] Trigger pT vs dPhi Brad (?) for different associated pt bins
403   TH2F *       fhDeltaPhiBrad;                 //! Trigger pT vs dPhi Brad (?) for different associated pt bins
404   TH2F **      fhXEAssocPtBin ;                //![fNAssocPtBins] Trigger pT vs xE for different associated pt bins
405   TH2F **      fhZTAssocPtBin ;                //![fNAssocPtBins] Trigger pT vs zT for different associated pt bins
406   TH2F **      fhXEVZ ;                        //![GetNZvertBin()] Trigger pT vs xE for different vz bins
407   TH2F **      fhZTVZ ;                        //![GetNZvertBin()] Trigger pT vs zT for different vz bins
408
409   //trigger-neutral histograms
410   TH2F *       fhDeltaPhiDeltaEtaNeutral ;     //! differences of eta and phi between trigger and neutral hadrons (pi0)
411   TH2F *       fhPhiNeutral   ;                //! Phi distribution of neutral particles  
412   TH2F *       fhEtaNeutral   ;                //! Eta distribution of neutral particles
413   TH2F *       fhDeltaPhiNeutral   ;           //! Difference of neutral particle phi and trigger particle  phi as function of  trigger particle pT
414   TH2F *       fhDeltaEtaNeutral  ;            //! Difference of neutral particle eta and trigger particle  eta as function of  trigger particle pT
415   TH2F *       fhDeltaPhiNeutralPt  ;          //! Difference of neutral particle phi and trigger particle  phi as function of neutral particle particle pT
416   TH2F *       fhDeltaPhiUeNeutralPt ;         //! Difference of neutral particle phi and trigger particle  phi as function of neutral particle particle pT  
417   TH2F *       fhXENeutral  ;                  //! Trigger particle - neutral hadron momentum imbalance histogram 
418   TH2F *       fhXEUeNeutral  ;                //! Trigger particle - neutral hadron momentum imbalance histogram 
419   TH2F *       fhPtHbpXENeutral  ;             //! Trigger particle - neutral particle momentum HBP histogram
420   TH2F *       fhPtHbpXEUeNeutral  ;           //! Trigger particle - underlying neutral hadron momentum HBP histogram  
421   TH2F *       fhZTNeutral  ;                  //! Trigger particle - neutral hadron momentum imbalance histogram 
422   TH2F *       fhZTUeNeutral  ;                //! Trigger particle - neutral hadron momentum imbalance histogram 
423   TH2F *       fhPtHbpZTNeutral  ;             //! Trigger particle - neutral particle momentum HBP histogram
424   TH2F *       fhPtHbpZTUeNeutral  ;           //! Trigger particle - underlying neutral hadron momentum HBP histogram  
425   
426   // If several UE calculation is on,
427   TH2F *       fhDeltaPhiUeLeftNeutral  ;      //! Difference of charged particle from underlying events phi and trigger particle  phi as function of neutral particle pT
428   TH2F *       fhXEUeLeftNeutral  ;            //! Trigger particle -underlying neutral hadron momentum imbalance histogram
429   TH2F *       fhPtHbpXEUeLeftNeutral  ;       //! Trigger particle -underlying neutral hadron momentum HBP histogram
430   TH2F *       fhZTUeLeftNeutral  ;            //! Trigger particle -underlying neutral hadron momentum imbalance histogram
431   TH2F *       fhPtHbpZTUeLeftNeutral  ;       //! Trigger particle -underlying neutral hadron momentum HBP histogram
432   
433   // Pi0/Eta trigger correlation, recover input photons
434   TH2F *       fhPtPi0DecayRatio ;             //! for pi0 trigger pt and ratio of decay photon pt
435   TH2F *       fhDeltaPhiPi0DecayCharged  ;    //! Difference of charged particle phi and decay photon from pi0/eta trigger
436   TH2F *       fhXEPi0DecayCharged ;           //! Trigger particle (decay from pi0/eta trigger)-charged hadron momentum imbalance histogram
437   TH2F *       fhZTPi0DecayCharged ;           //! Trigger particle (decay from pi0/eta trigger)-charged hadron momentum imbalance histogram
438
439   TH2F *       fhDeltaPhiPi0DecayNeutral  ;    //! Difference of neutral particle phi and decay photon from pi0/eta trigger
440   TH2F *       fhXEPi0DecayNeutral ;           //! Trigger particle (decay from pi0/eta trigger)-neutral hadron momentum imbalance histogram
441   TH2F *       fhZTPi0DecayNeutral ;           //! Trigger particle (decay from pi0/eta trigger)-neutral hadron momentum imbalance histogram
442
443   // Decay photon trigger correlation
444   TH2F *       fhDeltaPhiDecayCharged[4]  ;    //! Difference of charged particle phi and photon decay trigger
445   TH2F *       fhXEDecayCharged[4] ;           //! Trigger particle (decay from pi0)-charged hadron momentum imbalance histogram
446   TH2F *       fhZTDecayCharged[4] ;           //! Trigger particle (decay from pi0)-charged hadron momentum imbalance histogram
447   TH2F **      fhDeltaPhiDecayChargedAssocPtBin;//![fNAssocPtBins*GetNZvertBin()] Tagged as decay (fDecayBits[0]) Trigger pT vs dPhi for different associated pt bins
448   
449   // If the data is MC, correlation with generated particles
450   // check the origin of the cluster : decay photon (pi0, eta, other), merged photon (pi0),
451   // hadron, rest of photons (prompt, FSR, ISR)
452   TH1F *       fhMCPtTrigger[fgkNmcTypes];               //! MC pure pT distribution of trigger particles
453   TH2F *       fhMCPhiTrigger[fgkNmcTypes];              //! MC pure Phi distribution of trigger particles
454   TH2F *       fhMCEtaTrigger[fgkNmcTypes];              //! MC pure Eta distribution of trigger particles
455   TH1F *       fhMCPtTriggerNotLeading[fgkNmcTypes];     //! MC pure pT distribution of trigger not leading particles
456   TH2F *       fhMCPhiTriggerNotLeading[fgkNmcTypes];    //! MC pure Phi distribution of trigger not leading particles
457   TH2F *       fhMCEtaTriggerNotLeading[fgkNmcTypes];    //! MC pure Eta distribution of trigger not leading particles
458   TH2F *       fhMCEtaCharged[fgkNmcTypes];              //! MC pure particles charged primary pt vs eta (both associated)
459   TH2F *       fhMCPhiCharged[fgkNmcTypes];              //! MC pure particles charged primary pt vs phi (both associated)
460   TH2F *       fhMCDeltaEtaCharged[fgkNmcTypes];         //! MC pure particles charged trigger primary pt vs delta eta (associated-trigger)
461   TH2F *       fhMCDeltaPhiCharged[fgkNmcTypes];         //! MC pure particles charged trigger primary pt vs delta phi (associated-trigger)
462   TH2F *       fhMCDeltaPhiDeltaEtaCharged[fgkNmcTypes]; //! MC pure particles charged associated primary pt vs delta phi (associated-trigger), in away side
463   TH2F *       fhMCDeltaPhiChargedPt[fgkNmcTypes];       //! MC pure particles charged delta phi vs delta eta (associated-trigger)
464   TH2F *       fhMCPtXECharged[fgkNmcTypes];             //! MC pure particles charged trigger primary pt vs xE
465   TH2F *       fhMCPtXEUeCharged[fgkNmcTypes];           //! MC pure particles charged trigger primary pt vs xE (underlying event)
466   TH2F *       fhMCPtXEUeLeftCharged[fgkNmcTypes];       //! MC pure particles charged trigger primary pt vs xE (underlying event,left cone)
467   TH2F *       fhMCPtHbpXECharged[fgkNmcTypes];          //! MC pure particles charged trigger primary pt vs ln(1/xE)
468   TH2F *       fhMCPtHbpXEUeCharged[fgkNmcTypes];        //! MC pure particles charged trigger primary pt vs ln(1/xE) (underlying event)
469   TH2F *       fhMCPtHbpXEUeLeftCharged[fgkNmcTypes];    //! MC pure particles charged trigger primary pt vs ln(1/xE) (underlying event, left cone)
470   TH1F *       fhMCUePart[fgkNmcTypes];                  //! MC pure UE particles distribution vs pt trig
471   TH2F *       fhMCPtZTCharged[fgkNmcTypes];             //! MC pure particles charged trigger primary pt vs zT
472   TH2F *       fhMCPtZTUeCharged[fgkNmcTypes];           //! MC pure particles charged trigger primary pt vs zT (underlying event)
473   TH2F *       fhMCPtZTUeLeftCharged[fgkNmcTypes];       //! MC pure particles charged trigger primary pt vs zT (underlying event, left cone)
474   TH2F *       fhMCPtHbpZTCharged[fgkNmcTypes];          //! MC pure particles charged trigger primary pt vs ln(1/zT)
475   TH2F *       fhMCPtHbpZTUeCharged[fgkNmcTypes];        //! MC pure particles charged trigger primary pt vs ln(1/zT) (underlying event)
476   TH2F *       fhMCPtHbpZTUeLeftCharged[fgkNmcTypes];    //! MC pure particles charged trigger primary pt vs ln(1/zT) (underlying event, left cone)
477   TH2F *       fhMCPtTrigPout[fgkNmcTypes];              //! MC pure particles charged trigger primary pt vs pOut
478   TH2F *       fhMCPtAssocDeltaPhi[fgkNmcTypes];         //! MC pure particles charged associated primary pt vs delta phi (associated-trigger)
479
480   // Mixing
481   TH1I *       fhNEventsTrigger;               //! number of analyzed triggered events
482   TH2F *       fhNtracksMB;                    //! total number of tracks in MB events
483   TH2F *       fhNclustersMB;                  //! total number of clusters in MB events
484   TH2F *       fhMixDeltaPhiCharged  ;         //! Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT
485   TH2F *       fhMixDeltaPhiDeltaEtaCharged  ; //! Difference of charged particle phi and trigger particle  phi as function eta difference
486   TH2F *       fhMixXECharged;                 //! xE for mixed event
487   TH2F *       fhMixXEUeCharged;               //! xE for mixed event in Ue region
488   TH2F *       fhMixHbpXECharged;              //! ln(1/xE) for mixed event
489   TH2F **      fhMixDeltaPhiChargedAssocPtBin; //![fNAssocPtBins*GetNZvertBin()] Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, for different associated bins
490   TH2F **      fhMixDeltaPhiChargedAssocPtBinDEta08;   //![fNAssocPtBins*GetNZvertBin()] Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, for different associated bins, delta eta > 0.8
491   TH2F **      fhMixDeltaPhiChargedAssocPtBinDEta0;    //![fNAssocPtBins*GetNZvertBin()] Difference of charged particle phi and trigger particle  phi as function of  trigger particle pT, for different associated bins, delta eta = 0
492   TH2F **      fhMixDeltaPhiDeltaEtaChargedAssocPtBin; //![fNAssocPtBins*GetNZvertBin()] Difference of charged particle phi and trigger particle  phi as function eta difference, for different associated bins
493
494   TH1I *       fhEventBin;                     //! Number of triggers in a particular event bin (cen,vz,rp)
495   TH1I *       fhEventMixBin;                  //! Number of triggers mixed in a particular bin (cen,vz,rp)
496   TH1I *       fhEventMBBin;                   //! Number of MB events in a particular bin (cen,vz,rp)
497   
498   AliAnaParticleHadronCorrelation(              const AliAnaParticleHadronCorrelation & ph) ; // cpy ctor
499   AliAnaParticleHadronCorrelation & operator = (const AliAnaParticleHadronCorrelation & ph) ; // cpy assignment
500         
501   ClassDef(AliAnaParticleHadronCorrelation,35)
502 } ;
503  
504
505 #endif //ALIANAPARTICLEHADRONCORRELATION_H
506
507
508