1 #ifndef __StarGenParticle_h__
2 #define __StarGenParticle_h__
7 #include "TLorentzVector.h"
93 void SetId( Int_t
id );
118 void SetPx( Float_t px ){ mPx = px; }
122 void SetPy( Float_t py ){ mPy = py; }
126 void SetPz( Float_t pz ){ mPz = pz; }
131 Float_t
pt(){
return TMath::Sqrt(
pt2()); }
133 Float_t
pt2(){
return mPx*mPx+mPy*mPy; }
135 Float_t
mt(){
return TMath::Sqrt(
mt2()); }
137 Float_t
mt2(){
return mMass*mMass+mPx*mPx+mPy*mPy; }
140 TLorentzVector
momentum(){
return TLorentzVector(mPx,mPy,mPz,mEnergy); }
154 void SetVx( Float_t vx ){ mVx = vx; }
158 void SetVy( Float_t vy ){ mVy = vy; }
162 void SetVz( Float_t vz ){ mVz = vz; }
180 void SetPrimaryKey( Int_t k ){ mPrimaryKey = k; }
181 Int_t GetPrimaryKey(){
return mPrimaryKey; }
183 void SetGeneratorId( Int_t
id ){ mGeneratorId = id; }
184 Int_t GetGeneratorId(){
return mGeneratorId; }
187 void Print(
const Option_t *opts=
"" )
const;
203 Float_t mPx, mPy, mPz, mEnergy, mMass;
204 Float_t mVx, mVy, mVz, mTof;
209 void *get_hepevt_address(){
return &mStatus; }
Int_t GetIndex()
Get the line number in the event record.
Float_t GetVz()
Get the z-component of the start vertex.
void SetPx(Float_t px)
Set the x-component of the momentum.
Float_t pt()
Returns the transverse momentum of the particle.
void SetVy(Float_t vy)
Set the y-component of the start vertex.
void SetLastMother(Int_t last)
Set the last mother particle in the array of particles.
Yet another particle class.
Int_t GetStatus()
Get the status code of the particle according to the HEPEVT standard.
Float_t GetTof()
Get the tof.
Float_t GetPz()
Get the z-component of the momentum.
Float_t GetEnergy()
Get the energy.
void SetVz(Float_t vz)
Set the z-component of the start vertex.
void SetStack(Int_t i)
Set the line number in the particle stack.
void SetVx(Float_t vx)
Set the x-component of the start vertex.
void SetIndex(Int_t i)
Set the line number in the event record.
Int_t GetId()
Get the id code of the particle according to the PDG standard.
Int_t GetStack()
Get the line number in the particle stack.
void SetStatus(Int_t status)
Set the status code of the particle according to the HEPEVT standard.
void SetPz(Float_t pz)
Set the z-component of the momentum.
void SetMass(Float_t mass)
Set the mass.
Float_t pt2()
Returns the transverse momentum squared.
void SetTof(Float_t tof)
Set the tof.
Float_t GetPx()
Get the x-component of the momentum.
TLorentzVector momentum()
Return the 4-momentum of the particle.
Int_t GetLastMother()
Get the last mother particle.
Float_t GetVy()
Get the y-component of the start vertex.
Float_t GetPy()
Get the y-component of the momentum.
Int_t GetFirstMother()
Get the first mother particle.
Float_t mt2()
Returns the transverse mass squared.
void SetLastDaughter(Int_t last)
Set the last daughter particle in the array of particles.
Float_t GetVx()
Get the x-component of the start vertex.
Int_t GetLastDaughter()
Get the last daughter particle.
void SetFirstDaughter(Int_t first)
Set the first daughter particle in the array of particles.
Main steering class for event generation.
void SetPy(Float_t py)
Set the y-component of the momentum.
void SetEnergy(Float_t energy)
Set the energy.
void Print(const Option_t *opts="") const
Print the particle.
void SetFirstMother(Int_t first)
Set the first mother particle in the array of particles.
Float_t GetMass()
Get the mass.
Int_t GetFirstDaughter()
Get the first daughter particle.
Float_t mt()
Returns the transverse mass of the particle.