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);
145 virtual void SetTheta(Double_t);
152 virtual void SetId(Int_t);
154 virtual void SetStatus(Int_t);
162 virtual void Print(Option_t* =
"")
const;
202 return sqrt(pow(
E, 2.) - pow(
p, 2.));
229 inline void ParticleMCS::SetE(Double_t e) {
233 inline void ParticleMCS::SetP(Double_t momentum) {
237 inline void ParticleMCS::SetPt(Double_t momentum) {
241 inline void ParticleMCS::SetPz(Double_t momentum) {
245 inline void ParticleMCS::SetPhi(Double_t value) {
249 inline void ParticleMCS::SetTheta(Double_t value) {
253 inline void ParticleMCS::SetId(Int_t i) {
257 inline void ParticleMCS::SetStatus(Int_t i) {
262 return ::erhic::Pid(
id);
267 #endif // INCLUDE_EICSMEAR_SMEAR_PARTICLEMCS_H_
Int_t id
PDG particle code.
virtual void SetVertex(const TVector3 &)
Double32_t phi
Azimuthal angle.
virtual TLorentzVector PxPyPzE() const
virtual TLorentzVector Get4Vector() const
virtual ::erhic::Pid Id() const
virtual Double_t GetM() const
virtual Double_t GetPy() const
void Set4Vector(const TLorentzVector &)
Double32_t E
Energy of particle.
virtual void Print(Option_t *="") const
Double32_t py
y component of particle momentum
virtual Double_t GetPhi() const
Double32_t p
Total momentum of particle.
virtual UShort_t GetParentIndex() const
Double32_t px
x component of particle momentum
virtual Double_t GetPx() const
virtual Double_t GetTheta() const
virtual Double_t GetRapidity() const
UShort_t status
Status code.
virtual TVector3 GetVertex() const
Double32_t pt
Transverse momentum of particle.
virtual Double_t GetE() const
virtual Double_t GetP() const
virtual UShort_t GetStatus() const
Double32_t pz
z component of particle momentum
virtual Double_t GetPt() const
Abstract base class for a general particle.
Double32_t theta
Polar angle.
virtual Double_t GetPz() const
virtual Double_t GetEta() const