28 #define CBMMCTRACK_H 1 32 #include "TParticle.h" 34 #include "TLorentzVector.h" 38 #ifndef ROOT_TParticlePDG 39 #include "TParticlePDG.h" 41 #ifndef ROOT_TDatabasePDG 42 #include "TDatabasePDG.h" 66 void Print(Int_t iTrack = 0)
const;
78 TVector3
GetStartVertex()
const {
return TVector3(fStartX, fStartY, fStartZ); }
80 TVector3
GetMomentum()
const {
return TVector3(fPx, fPy, fPz); }
88 Bool_t
IsGeneratorLast(
void)
const {
return (fGeneratorFlags & 0x1) != 0 && (fGeneratorFlags & 0x2) == 0; }
117 Double32_t fPx, fPy, fPz, fE;
121 Int_t fSecondMotherID;
124 Int_t fGeneratorFlags;
127 Double32_t fStartX, fStartY, fStartZ, fStartT;
static T Sqrt(const T &x)
Double_t GetStartTime() const
Int_t GetNPoints(DetectorId detId) const
Bool_t IsGeneratorLast(void) const
void SetGeneratorDecayed(void)
Int_t GetSecondMotherID() const
void Print(Int_t iTrack=0) const
TVector3 GetStartVertex() const
Bool_t IsGeneratorCreated(void) const
TVector3 GetMomentum() const
TLorentzVector Get4Momentum() const
UInt_t GetProcessID() const
friend std::ostream & operator<<(std::ostream &out, PndMCTrack &track)
void SetSecondMotherID(Int_t id)
void SetGeneratorCreated(void)
void SetMotherID(Int_t id)
Int_t GetMotherID() const
Bool_t IsGeneratorDecayed(void) const
void SetNPoints(DetectorId iDet, Int_t np)