20 #ifndef MyProjMCTrack_H
21 #define MyProjMCTrack_H 1
26 #include <TLorentzVector.h>
62 void Print(Int_t iTrack = 0)
const;
67 Double_t
GetPx()
const {
return fPx; }
68 Double_t
GetPy()
const {
return fPy; }
69 Double_t
GetPz()
const {
return fPz; }
76 Double_t
GetPt()
const {
return TMath::Sqrt(fPx * fPx + fPy * fPy); }
77 Double_t
GetP()
const {
return TMath::Sqrt(fPx * fPx + fPy * fPy + fPz * fPz); }
98 Double32_t fPx, fPy, fPz;
101 Double32_t fStartX, fStartY, fStartZ, fStartT;
128 return TMath::Sqrt(mass * mass + fPx * fPx + fPy * fPy + fPz * fPz);
Int_t GetMotherId() const
void GetMomentum(TVector3 &momentum)
void GetStartVertex(TVector3 &vertex)
void SetMotherId(Int_t id)
Int_t GetNPoints(DetectorId detId) const
void Get4Momentum(TLorentzVector &momentum)
Double_t GetStartY() const
Double_t GetEnergy() const
void Print(Int_t iTrack=0) const
Double_t GetRapidity() const
void SetNPoints(Int_t iDet, Int_t np)
Double_t GetStartX() const
Double_t GetStartT() const
Double_t GetStartZ() const