eic-smear
1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
|
Go to the documentation of this file.
10 #ifndef INCLUDE_EICSMEAR_SMEAR_PARTICLEMCS_H_
11 #define INCLUDE_EICSMEAR_SMEAR_PARTICLEMCS_H_
15 #include <TLorentzVector.h>
49 virtual Double_t
GetPx()
const;
54 virtual Double_t
GetPy()
const;
59 virtual Double_t
GetPz()
const;
64 virtual Double_t
GetE()
const;
85 virtual Double_t
GetM()
const;
91 virtual Double_t
GetPt()
const;
102 virtual Double_t
GetP()
const;
112 virtual Double_t
GetPhi()
const;
122 virtual Double_t
GetEta()
const;
133 virtual ::erhic::Pid
Id()
const;
135 virtual void SetE(Double_t);
137 virtual void SetP(Double_t);
139 virtual void SetPt(Double_t);
141 virtual void SetPz(Double_t);
143 virtual void SetPhi(Double_t);
152 virtual void SetId(Int_t);
162 virtual void Print(Option_t* =
"")
const;
202 return sqrt(pow(
E, 2.) - pow(
p, 2.));
262 return ::erhic::Pid(
id);
267 #endif // INCLUDE_EICSMEAR_SMEAR_PARTICLEMCS_H_
virtual Double_t GetM() const
Returns the apparent mass of the smeared particle.
Double32_t p
Total momentum of particle.
void Set4Vector(const TLorentzVector &)
Dummy one; just need to compile;.
Double32_t pt
Transverse momentum of particle.
Double32_t pz
z component of particle momentum
virtual void SetPhi(Double_t)
virtual void SetPt(Double_t)
virtual void SetPz(Double_t)
virtual TVector3 GetVertex() const
Returns the origin point of the particle (cm).
virtual Double_t GetP() const
Returns the total momentum (GeV).
virtual TLorentzVector PxPyPzE() const
Returns the (E,p) 4-vector in the lab frame.
virtual UShort_t GetParentIndex() const
Returns the index of the parent particle.
ParticleMCS()
Default constructor.
Double32_t phi
Azimuthal angle.
Double32_t py
y component of particle momentum
virtual Double_t GetE() const
Returns the energy of the particle in the lab frame.
Int_t id
PDG particle code.
virtual void SetP(Double_t)
virtual void SetE(Double_t)
virtual void SetVertex(const TVector3 &)
Sets the origin coordinates.
virtual Double_t GetPz() const
Returns the z component of 3-momentum.
virtual ~ParticleMCS()
Destructor.
virtual Double_t GetPhi() const
Returns the polar angle in the range [0,2pi] radians.
virtual void SetStatus(Int_t)
Abstract base class for a general particle.
virtual Double_t GetPy() const
Returns the y component of 3-momentum.
virtual ::erhic::Pid Id() const
Returns the ID of the particle.
virtual Double_t GetTheta() const
Returns the polar angle in the range [0,pi] radians.
A smeared Monte Carlo particle.
virtual void SetTheta(Double_t)
Double32_t theta
Polar angle.
virtual void Print(Option_t *="") const
Prints the attributes of this particle to standard output.
virtual Double_t GetRapidity() const
Returns the rapidity.
virtual TLorentzVector Get4Vector() const
Returns the (E,p) 4-vector in the lab frame.
virtual void SetId(Int_t)
virtual Double_t GetEta() const
Returns the pseudorapidity.
Double32_t E
Energy of particle.
virtual UShort_t GetStatus() const
Returns a status code following the PYTHIA defintion, where 21 indicates an initial-state particle an...
virtual Double_t GetPx() const
Returns the x component of 3-momentum.
UShort_t status
Status code.
Double32_t px
x component of particle momentum
virtual Double_t GetPt() const
Returns momentum transverse to the beam direction.