24 #define FAIRMCTRACK_H 1
29 #include <TLorentzVector.h>
63 #if defined(__clang__)
64 #pragma clang diagnostic push
65 #pragma clang diagnostic ignored "-Woverloaded-virtual"
68 virtual void Print(Int_t iTrack)
const;
69 #if defined(__clang__)
70 #pragma clang diagnostic pop
75 Double_t
GetPx()
const {
return fPx; }
76 Double_t
GetPy()
const {
return fPy; }
77 Double_t
GetPz()
const {
return fPz; }
84 Double_t
GetPt()
const {
return TMath::Sqrt(fPx * fPx + fPy * fPy); }
85 Double_t
GetP()
const {
return TMath::Sqrt(fPx * fPx + fPy * fPy + fPz * fPz); }
106 Double32_t fPx, fPy, fPz;
109 Double32_t fStartX, fStartY, fStartZ, fStartT;
136 return TMath::Sqrt(mass * mass + fPx * fPx + fPy * fPy + fPz * fPz);
Int_t GetNPoints(DetectorId detId) const
void SetNPoints(Int_t iDet, Int_t np)
Double_t GetStartT() const
Int_t GetMotherId() const
Double_t GetStartY() const
void SetMotherId(Int_t id)
Double_t GetStartX() const
Double_t GetRapidity() const
void Get4Momentum(TLorentzVector &momentum)
Double_t GetStartZ() const
void GetStartVertex(TVector3 &vertex)
void GetMomentum(TVector3 &momentum)
virtual void Print(Int_t iTrack) const
Double_t GetEnergy() const