16 #define CBMMCTRACK_H 1 20 #include "TParticle.h" 22 #include "TLorentzVector.h" 26 #ifndef ROOT_TParticlePDG 27 #include "TParticlePDG.h" 29 #ifndef ROOT_TDatabasePDG 30 #include "TDatabasePDG.h" 54 void Print(Int_t iTrack = 0)
const;
66 TVector3
GetStartVertex()
const {
return TVector3(fStartX, fStartY, fStartZ); }
68 TVector3
GetMomentum()
const {
return TVector3(fPx, fPy, fPz); }
76 Bool_t
IsGeneratorLast(
void)
const {
return (fGeneratorFlags & 0x1) != 0 && (fGeneratorFlags & 0x2) == 0; }
105 Double32_t fPx, fPy, fPz, fE;
109 Int_t fSecondMotherID;
112 Int_t fGeneratorFlags;
115 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)