16 #ifndef ROOT_TParticle 17 #define ROOT_TParticle 118 if (v == 0) v = 1;
else v = (fPx*p.
Px()+fPy*p.
Py()+fPz*p.
Pz())/v;
119 if (v > 1) v = 1;
else if (v < -1) v = -1;
155 void SetMother (
int i,
int code) { fMother[i] = code ; }
178 virtual const char *
GetName()
const;
179 virtual const char *
GetTitle()
const;
void SetPolarisation(const TVector3 &v)
Int_t Beauty() const
Return beauty quantum number.
void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e)
void SetDaughter(int i, int code)
Int_t GetFirstMother() const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a primary track.
void SetProductionVertex(Double_t vx, Double_t vy, Double_t vz, Double_t t)
Double_t GetPolarPhi() const
Double_t GetCalcMass() const
Double_t GetMass() const
Return nominal particle mass from PDG table.
Description of the dynamic properties of a particle.
void SetStatusCode(int status)
Use this attribute class when an object should have 3D capabilities.
virtual ~TParticle()
destructor
void ProductionVertex(TLorentzVector &v) const
Int_t GetSecondMother() const
Int_t GetStatusCode() const
void SetMother(int i, int code)
void SetWeight(Float_t weight=1)
Float_t GetWeight() const
#define ClassDef(name, id)
virtual const char * GetName() const
Return particle name.
virtual void Print(Option_t *option="") const
Print the internals of the primary vertex particle.
void Momentum(TLorentzVector &v) const
void SetPolarPhi(Double_t phi)
Int_t GetDaughter(Int_t i) const
Double_t ATan2(Double_t, Double_t)
Int_t GetNDaughters() const
Int_t Strangeness() const
Return strangeness quantum number.
TVector3 is a general three vector class, which can be used for the description of different vectors ...
Int_t GetMother(Int_t i) const
TLorentzVector is a general four-vector class, which can be used either for the description of positi...
virtual const char * GetTitle() const
Return particle title.
TParticle & operator=(const TParticle &)
Equal operator.
void SetXYZT(Double_t x, Double_t y, Double_t z, Double_t t)
Double_t Theta(const TParticle &p)
Int_t GetLastDaughter() const
void SetCalcMass(Double_t mass)
Description of the static properties of a particle.
Int_t Charm() const
Return charm quantum number.
void SetMomentum(const TLorentzVector &p)
Double_t GetPolarTheta() const
void SetLastMother(int code)
void SetLastDaughter(int code)
TParticle()
reference to the particle record in PDG database
void GetPolarisation(Double_t &theta, Double_t &phi) const
TParticlePDG * GetPDG(Int_t mode=0) const
Returns a pointer to the TParticlePDG object using the pdgcode.
void SetMomentum(Double_t px, Double_t py, Double_t pz, Double_t e)
virtual void Paint(Option_t *option="")
Paint a primary track.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Int_t GetFirstDaughter() const
Mother of all ROOT objects.
void SetFirstMother(int code)
virtual void Sizeof3D() const
Return total X3D size of this primary.
void SetPdgCode(Int_t pdg)
Change the PDG code for this particle.
TParticlePDG * fParticlePDG
void SetProductionVertex(const TLorentzVector &v)
void SetPolarisation(Double_t theta, Double_t phi)
void SetFirstDaughter(int code)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void GetPolarisation(TVector3 &v) const
Return particle polarisation.
void SetPolarTheta(Double_t theta)
Double_t Sqrt(Double_t x)
constexpr Double_t PiOver2()