]>
Commit | Line | Data |
---|---|---|
afa8b37b | 1 | #ifndef ALIVAODPARTICLE_H |
2 | #define ALIVAODPARTICLE_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | ///////////////////////////////////////////////////////////// | |
9 | // | |
10 | // base class for AOD particles | |
11 | // | |
12 | ///////////////////////////////////////////////////////////// | |
13 | ||
14 | #include <TObject.h> | |
15 | #include <TLorentzVector.h> | |
16 | #include <TVector3.h> | |
17 | ||
afa8b37b | 18 | class AliTrackPoints; |
19 | class AliClusterMap; | |
20 | ||
21 | class AliVAODParticle : public TObject { | |
22 | public: | |
dd2b6810 | 23 | AliVAODParticle(){} |
24 | virtual ~AliVAODParticle(){} | |
25 | ||
26 | AliVAODParticle(const AliVAODParticle& in); | |
27 | virtual AliVAODParticle& operator=(const AliVAODParticle& in); | |
28 | ||
29 | ||
afa8b37b | 30 | // kinematics |
31 | virtual TLorentzVector FourMomentum() const = 0; | |
32 | virtual TVector3 Momentum() const {return FourMomentum().Vect();}; | |
33 | virtual Double_t Mass() const {return FourMomentum().M();}; | |
34 | virtual Double_t E() const {return FourMomentum().E();}; | |
35 | virtual Double_t P() const {return FourMomentum().P();}; | |
36 | virtual Double_t Pt() const {return FourMomentum().Pt();}; | |
37 | virtual Double_t Px() const {return FourMomentum().Px();}; | |
38 | virtual Double_t Py() const {return FourMomentum().Py();}; | |
39 | virtual Double_t Pz() const {return FourMomentum().Pz();}; | |
40 | virtual Double_t Phi() const {return FourMomentum().Phi();}; | |
41 | virtual Double_t Theta() const {return FourMomentum().Theta();}; | |
42 | virtual Double_t Eta() const {return FourMomentum().Eta();}; | |
43 | virtual Double_t Y() const {return FourMomentum().Rapidity();}; | |
78d7c6d3 | 44 | |
45 | virtual void SetMomentum(Double_t/*px*/,Double_t/*py*/,Double_t/*pz*/,Double_t/*E*/) = 0; | |
46 | virtual void SetProductionVertex(Double_t /*vx*/, Double_t /*vy*/, Double_t /*vz*/, Double_t /*t*/) = 0; | |
afa8b37b | 47 | |
48 | // PID | |
dd2b6810 | 49 | virtual void SetPdgCode(Int_t pdg, Float_t prob = 1.0) = 0; |
afa8b37b | 50 | virtual Double_t GetProbability(Int_t pdg) const = 0; |
dd2b6810 | 51 | virtual Double_t GetPidProb() const = 0;//returns probability of being particle type defined by GetPdgCode() |
afa8b37b | 52 | virtual Int_t GetMostProbable() const = 0; |
53 | ||
54 | virtual Int_t GetPdgCode() const = 0;//We need to assume some PID (f.e. energy calculation) | |
dd2b6810 | 55 | //sometimes one track can apear in analysis twise (e.g. ones as pion ones as kaon) |
78d7c6d3 | 56 | virtual Int_t GetNumberOfPids() const = 0; //returns number of non zero PID probabilities |
57 | virtual Int_t GetNthPid (Int_t idx) const = 0;//These two methods are made to be able to | |
58 | virtual Float_t GetNthPidProb (Int_t idx) const = 0;//copy pid information i.e. in copy ctors | |
dd2b6810 | 59 | |
60 | virtual Double_t Charge() const = 0; | |
afa8b37b | 61 | |
62 | // vertices | |
63 | virtual TVector3 ProductionVertex() const = 0; | |
64 | virtual Double_t Vx() const {return ProductionVertex().X();}; | |
65 | virtual Double_t Vy() const {return ProductionVertex().Y();}; | |
66 | virtual Double_t Vz() const {return ProductionVertex().Z();}; | |
78d7c6d3 | 67 | virtual Double_t T() const {return 0.0;}; |
68 | ||
afa8b37b | 69 | virtual AliVAODParticle* Mother() const {return NULL;}; |
70 | virtual Bool_t HasDecayVertex() const {return kFALSE;}; | |
71 | virtual TVector3 DecayVertex() const {return TVector3();}; | |
72 | virtual Int_t NumberOfDaughters() const {return 0;}; | |
78d7c6d3 | 73 | virtual AliVAODParticle* Daughter(Int_t /*index*/) const {return NULL;}; |
afa8b37b | 74 | |
78d7c6d3 | 75 | virtual Int_t GetUID() const { return 0;}//returns unique ID of this track |
76 | //(may happen than the same track is selected | |
77 | //twise, f.g. as a pion and as a kaon than both have the same UID) | |
dd2b6810 | 78 | virtual void SetUID(Int_t /*id*/){/* *this */} |
afa8b37b | 79 | // type information |
80 | virtual Bool_t IsSimulated() {return kFALSE;}; | |
81 | virtual Bool_t IsTrack() {return kFALSE;}; | |
82 | virtual Bool_t IsCluster() {return kFALSE;}; | |
83 | ||
84 | //HBT specific | |
78d7c6d3 | 85 | virtual AliTrackPoints* GetTPCTrackPoints() const {return 0x0;} |
86 | virtual AliTrackPoints* GetITSTrackPoints() const {return 0x0;} | |
afa8b37b | 87 | virtual AliClusterMap* GetClusterMap() const {return 0x0;} |
88 | virtual void Print() const = 0; | |
89 | ||
90 | static void SetDebug(Int_t dbg=1){fgDebug=dbg;} | |
91 | static Int_t GetDebug(){return fgDebug;} | |
dd2b6810 | 92 | virtual void Clear(Option_t * /*option*/ =""); |
afa8b37b | 93 | private: |
94 | static Int_t fgDebug;//! debug level for all the analysis package | |
95 | ||
96 | ClassDef(AliVAODParticle,1) // base class for AOD particles | |
97 | }; | |
98 | ||
99 | #endif |