]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/CaloTrackCorrelations/AliAnaGeneratorKine.h
0c59e3be2b90760adcc3edaa8ea31d8722f18778
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / AliAnaGeneratorKine.h
1 #ifndef ALIANAGENERATORKINE_H
2 #define ALIANAGENERATORKINE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 //___________________________________________________________________________
7 // Do photon/pi0 analysis for isolation and correlation
8 // at the generator level. Only for kine stack (ESDs)
9 //
10 //
11 //-- Author: Gustavo Conesa (LPSC-CNRS-Grenoble)
12
13 // --- ROOT ---
14 class TH2F ;
15 class TParticle ;
16 class AliStack ;
17 class TLorentzVector ;
18
19 // --- ANALYSIS ---
20 #include "AliAnaCaloTrackCorrBaseClass.h"
21
22 class AliAnaGeneratorKine : public AliAnaCaloTrackCorrBaseClass {
23        
24 public:
25   
26   AliAnaGeneratorKine() ; // default ctor
27   virtual ~AliAnaGeneratorKine() { ; } //virtual dtor              
28   
29   Bool_t CorrelateWithPartonOrJet(TLorentzVector trigger,
30                                   Int_t   indexTrig,
31                                   Int_t   pdgTrig,
32                                   Bool_t  leading[4],
33                                   Bool_t  isolated[4],
34                                   Int_t & iparton) ; 
35   
36   TList * GetCreateOutputObjects() ;
37   
38   void    GetPartonsAndJets() ;
39     
40   void    GetXE(TLorentzVector trigger,
41                 Int_t   indexTrig,
42                 Int_t   pdgTrig,
43                 Bool_t  leading[4],
44                 Bool_t  isolated[4],
45                 Int_t   iparton) ;
46   
47   void    InitParameters() ;
48   
49   void    IsLeadingAndIsolated(TLorentzVector trigger,
50                                Int_t  indexTrig,
51                                Int_t  pdgTrig,
52                                Bool_t leading[4],     
53                                Bool_t isolated[4]) ;
54     
55   void    MakeAnalysisFillHistograms() ;
56   
57   void    SetTriggerDetector( TString name ) { fTriggerDetector = name ; }
58   void    SetCalorimeter    ( TString name ) { fCalorimeter     = name ; }
59   
60   void    SetMinChargedPt   ( Float_t pt )   { fMinChargedPt    = pt   ; }
61   void    SetMinNeutralPt   ( Float_t pt )   { fMinNeutralPt    = pt   ; }
62   
63     
64 private:
65   
66   TString     fTriggerDetector;             //! trigger detector, for fiducial region
67   TString     fCalorimeter;                 //! detector neutral particles, for fiducial region
68   
69   Float_t     fMinChargedPt;                //! Minimum energy for charged particles in correlation
70   Float_t     fMinNeutralPt;                //! Minimum energy for neutral particles in correlation
71   
72   AliStack  * fStack;                       //! access stack
73   
74   TParticle * fParton2;                     //! Initial state Parton
75   TParticle * fParton3;                     //! Initial state Parton
76   
77   TParticle * fParton6;                     //! Final state Parton
78   TParticle * fParton7;                     //! Final state Parton
79   
80   TLorentzVector fJet6;                     //! Pythia jet close to parton in position 6
81   TLorentzVector fJet7;                     //! Pythia jet close to parton in position 7
82
83   Float_t     fPtHard;                      //! Generated pT hard
84   
85   TH1F      * fhPtHard;                     //! pt of parton 
86   TH1F      * fhPtParton;                   //! pt of parton  
87   TH1F      * fhPtJet;                      //! pt of jet 
88   
89   TH2F      * fhPtPartonPtHard;             //! pt of parton divided to pt hard, trigger is photon 
90   TH2F      * fhPtJetPtHard;                //! pt of jet divided to pt hard, trigger is photon 
91   TH2F      * fhPtJetPtParton;              //! pt of parton divided to pt parton, trigger is photon 
92
93   TH1F      * fhPtPhoton;                   //! Input photon
94   TH1F      * fhPtPi0;                      //! Input pi0
95   
96   // Histograms arrays for 4 isolation options and 2 options on leading or not leading particle
97   
98   TH1F      * fhPtPhotonLeading[4];         //! Leading photon
99   TH1F      * fhPtPi0Leading[4];            //! Leading pi0
100   
101   TH1F      * fhPtPhotonLeadingIsolated[4]; //! Leading photon, isolated
102   TH1F      * fhPtPi0LeadingIsolated[4];    //! Leading pi0, isolated
103
104   TH2F      * fhPtPartonTypeNearPhoton[2][4];           //! Leading photon, particle pt versus originating parton type
105   TH2F      * fhPtPartonTypeNearPi0[2][4];              //! Leading pi0, particle pt versus originating parton type
106   TH2F      * fhPtPartonTypeNearPhotonIsolated[2][4];   //! Leading photon, particle pt versus originating parton type
107   TH2F      * fhPtPartonTypeNearPi0Isolated[2][4];      //! Leading pi0, particle pt versus originating parton type
108   
109   TH2F      * fhPtPartonTypeAwayPhoton[2][4];           //! Leading photon, particle pt versus away side parton type
110   TH2F      * fhPtPartonTypeAwayPi0[2][4];              //! Leading pi0, particle pt versus away side parton type
111   TH2F      * fhPtPartonTypeAwayPhotonIsolated[2][4];   //! Leading photon, isolated, particle pt versus away side parton type 
112   TH2F      * fhPtPartonTypeAwayPi0Isolated[2][4];      //! Leading pi0, isolated, particle pt versus away side parton type
113   
114   TH2F      * fhZHardPhoton[2][4];           //! Leading photon, zHard
115   TH2F      * fhZHardPi0[2][4];              //! Leading pi0, zHard
116   TH2F      * fhZHardPhotonIsolated[2][4];   //! Leading photon, isolated, zHard
117   TH2F      * fhZHardPi0Isolated[2][4];      //! Leading pi0, isolated, zHard
118   
119   TH2F      * fhZPartonPhoton[2][4];         //! Leading photon, zHard
120   TH2F      * fhZPartonPi0[2][4];            //! Leading pi0, zHard
121   TH2F      * fhZPartonPhotonIsolated[2][4]; //! Leading photon, isolated, zHard
122   TH2F      * fhZPartonPi0Isolated[2][4];    //! Leading pi0, isolated, zHard
123
124   TH2F      * fhZJetPhoton[2][4];            //! Leading photon, zHard
125   TH2F      * fhZJetPi0[2][4];               //! Leading pi0, zHard
126   TH2F      * fhZJetPhotonIsolated[2][4];    //! Leading photon, isolated, zHard
127   TH2F      * fhZJetPi0Isolated[2][4];       //! Leading pi0, isolated, zHard
128   
129   TH2F      * fhXEPhoton[2][4];              //! Leading photon, xE away side
130   TH2F      * fhXEPi0[2][4];                 //! Leading pi0, xE away side
131   TH2F      * fhXEPhotonIsolated[2][4];      //! Leading photon, xE away side
132   TH2F      * fhXEPi0Isolated[2][4];         //! Leading pi0, isolated, xE away side
133   
134   TH2F      * fhXEUEPhoton[2][4];              //! Leading photon, xE away side
135   TH2F      * fhXEUEPi0[2][4];                 //! Leading pi0, xE away side
136   TH2F      * fhXEUEPhotonIsolated[2][4];      //! Leading photon, xE away side
137   TH2F      * fhXEUEPi0Isolated[2][4];         //! Leading pi0, isolated, xE away side
138   
139   AliAnaGeneratorKine              (const AliAnaGeneratorKine & gk) ; // cpy ctor
140   AliAnaGeneratorKine & operator = (const AliAnaGeneratorKine & gk) ; // cpy assignment
141   
142   ClassDef(AliAnaGeneratorKine,3)
143   
144 } ;
145
146
147 #endif //ALIANAGENERATORKINE_H
148
149
150