AliPhysics  a76316e (a76316e)
AliCaloTrackParticleCorrelation.h
Go to the documentation of this file.
1 #ifndef ALICALOTRACKPARTICLECORRELATION_H
2 #define ALICALOTRACKPARTICLECORRELATION_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //-------------------------------------------------------------------------
26 //-------------------------------------------------------------------------
27 
28 //-- ROOT system --
29 #include "TList.h"
30 #include "AliAODJet.h"
31 
32 //-- Analysis system
33 #include "AliCaloTrackParticle.h"
34 
36 
37  public:
38 
41  AliCaloTrackParticleCorrelation(TLorentzVector & p);
44 
46  virtual void Clear(const Option_t* /*opt*/);
47 
48  // Deal with the arrays of correlated objects
49  virtual TObjArray* GetObjArray(TString refname) const
50  { if(fListOfObjArrays) return (TObjArray*) fListOfObjArrays->FindObject(refname);
51  else return 0x0 ; }
52 
53  virtual TList* GetObjArrayList() const { return fListOfObjArrays ; }
54  virtual void AddObjArray(TObjArray * refarray) { fListOfObjArrays->Add(refarray) ; }
55 
56  // General info on leading particle opposite to trigger
57  virtual Int_t GetLeadingDetector() const { return fLeadingDetector ; }
58  virtual void SetLeadingDetector(Int_t d) { fLeadingDetector = d ; }
59 
60  virtual TLorentzVector GetLeading() const { return fLeading ; }
61  virtual void SetLeading(TLorentzVector lead) { fLeading = lead ; }
62 
63  // trigger-Jet correlation
64  virtual TLorentzVector GetCorrelatedJet() const { return fCorrJet ; }
65  virtual void SetCorrelatedJet(TLorentzVector jet) { fCorrJet = jet ; }
66 
67  virtual TLorentzVector GetCorrelatedBackground() const { return fCorrBkg ; }
68  virtual void SetCorrelatedBackground(TLorentzVector bkg) { fCorrBkg = bkg ; }
69 
70  virtual void SetRefJet(AliAODJet* jet) { fRefJet = jet ; }
71  virtual AliAODJet* GetJet() const { return ((AliAODJet*) fRefJet.GetObject()) ; }
72  virtual TRef GetRefJet() const { return fRefJet ; }
73 
74  virtual void Print(Option_t* /*option*/) const;
75 
76  private:
77 
79  TLorentzVector fLeading;
80  TLorentzVector fCorrJet;
81  TLorentzVector fCorrBkg;
82  TRef fRefJet;
84 
87 
91 
92 };
93 
94 
95 #endif //ALICALOTRACKPARTICLECORRELATION_H
TRef fRefJet
Reference to jet found with JETAN and correlated with particle.
double Double_t
Definition: External.C:58
TLorentzVector fLeading
Leading Particle 4-momentum vector on opposite side of trigger particle.
virtual void AddObjArray(TObjArray *refarray)
Int_t fLeadingDetector
Detector where leading particle was measured.
virtual void SetLeading(TLorentzVector lead)
virtual TObjArray * GetObjArray(TString refname) const
Daughter of AliCaloTrackParticle that includes correlation part.
int Int_t
Definition: External.C:63
Container for input particle information on CaloTrackCorr package.
TLorentzVector fCorrJet
Jet 4-momentum vector.
virtual void SetCorrelatedBackground(TLorentzVector bkg)
TLorentzVector fCorrBkg
Background 4-momentum vector.
TList * fListOfObjArrays
List with correlation reference arrays.
virtual TLorentzVector GetCorrelatedJet() const
virtual TLorentzVector GetLeading() const
const char Option_t
Definition: External.C:48
virtual void SetCorrelatedJet(TLorentzVector jet)
AliCaloTrackParticleCorrelation & operator=(const AliCaloTrackParticleCorrelation &p)
Assignment operator not implemented.
virtual TLorentzVector GetCorrelatedBackground() const