]>
Commit | Line | Data |
---|---|---|
1c5acb87 | 1 | #ifndef ALIAODPWG4PARTICLECORRELATION_H |
2 | #define ALIAODPWG4PARTICLECORRELATION_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliAODPWG4ParticleCorrelation.h $ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
bfa9c596 | 9 | // AOD objects class in use in the CaloTrackCorrelations |
10 | // analysis pacackge ($ALICE_ROOT/PWGGA/CaloTrackCorrelations) | |
11 | // Includes correlation objects | |
12 | // | |
13 | // Author: Gustavo Conesa Balbastre - CNRS-LPSC-Grenoble | |
1c5acb87 | 14 | //------------------------------------------------------------------------- |
15 | ||
16 | //-- ROOT system -- | |
a3aebfff | 17 | #include "TList.h" |
5e6a3170 | 18 | #include "AliAODJet.h" |
1c5acb87 | 19 | |
20 | //-- Analysis system | |
5e6a3170 | 21 | |
22 | ||
1c5acb87 | 23 | #include "AliAODPWG4Particle.h" |
24 | ||
25 | class AliAODPWG4ParticleCorrelation : public AliAODPWG4Particle { | |
26 | ||
27 | public: | |
667496a9 | 28 | |
477d6cee | 29 | AliAODPWG4ParticleCorrelation(); |
30 | AliAODPWG4ParticleCorrelation(Double_t px, Double_t py, Double_t pz, Double_t e); | |
31 | AliAODPWG4ParticleCorrelation(TLorentzVector & p); | |
32 | AliAODPWG4ParticleCorrelation(AliAODPWG4Particle & p); | |
33 | ||
34 | virtual ~AliAODPWG4ParticleCorrelation(); | |
4695da48 | 35 | virtual void Clear(const Option_t* /*opt*/); |
36 | ||
667496a9 | 37 | AliAODPWG4ParticleCorrelation( const AliAODPWG4ParticleCorrelation& photon); |
38 | ||
82679d84 | 39 | private: |
667496a9 | 40 | |
477d6cee | 41 | AliAODPWG4ParticleCorrelation& operator=(const AliAODPWG4ParticleCorrelation& photon); |
42 | ||
82679d84 | 43 | public: |
667496a9 | 44 | virtual TObjArray* GetObjArray(TString refname) const |
45 | { if(fListOfObjArrays) return (TObjArray*) fListOfObjArrays->FindObject(refname); | |
46 | else return 0x0 ; } | |
47 | ||
48 | virtual TList* GetObjArrayList() const { return fListOfObjArrays; } | |
49 | virtual void AddObjArray(TObjArray * refarray) { fListOfObjArrays->Add(refarray); } | |
a3aebfff | 50 | |
667496a9 | 51 | virtual Int_t GetLeadingDetector() const { return fLeadingDetector ; } |
52 | virtual void SetLeadingDetector(Int_t d) { fLeadingDetector = d ; } | |
477d6cee | 53 | |
667496a9 | 54 | virtual TLorentzVector GetLeading() const { return fLeading ; } |
55 | virtual void SetLeading(TLorentzVector lead) { fLeading = lead ; } | |
477d6cee | 56 | |
667496a9 | 57 | virtual TLorentzVector GetCorrelatedJet() const { return fCorrJet ; } |
58 | virtual void SetCorrelatedJet(TLorentzVector jet) { fCorrJet = jet ; } | |
477d6cee | 59 | |
667496a9 | 60 | virtual TLorentzVector GetCorrelatedBackground() const { return fCorrBkg ; } |
61 | virtual void SetCorrelatedBackground(TLorentzVector bkg) { fCorrBkg = bkg ; } | |
477d6cee | 62 | |
667496a9 | 63 | virtual void SetRefJet(AliAODJet* jet) { fRefJet = jet ; } |
64 | virtual AliAODJet* GetJet() const { return ((AliAODJet*) fRefJet.GetObject()) ; } | |
65 | virtual TRef GetRefJet() const { return fRefJet;} | |
477d6cee | 66 | |
67 | virtual void Print(Option_t* /*option*/) const; | |
68 | ||
1c5acb87 | 69 | private: |
667496a9 | 70 | Int_t fLeadingDetector; // Detector where leading particle was measured. |
a3aebfff | 71 | TLorentzVector fLeading; // Leading Particle 4-momentum vector |
72 | TLorentzVector fCorrJet; // Jet 4-momentum vector | |
73 | TLorentzVector fCorrBkg; // Background 4-momentum vector | |
74 | TRef fRefJet; // Reference to jet found with JETAN and correlated with particle | |
591cc579 | 75 | TList * fListOfObjArrays ; // List with correlation reference arrays |
a3aebfff | 76 | |
667496a9 | 77 | ClassDef(AliAODPWG4ParticleCorrelation, 6); |
1c5acb87 | 78 | }; |
79 | ||
80 | ||
81 | #endif //ALIAODPWG4PARTICLECORRELATION_H |