EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <eic-smear/blob/master/include/eicsmear/hadronic/ParticleMC.h>
Public Member Functions | |
virtual | ~ParticleMC () |
ParticleMC () | |
ParticleMC (const TMCParticle &) | |
ParticleMC (const TLorentzVector &, const TVector3 &, int, int, int) | |
virtual erhic::Pid | Id () const |
virtual TLorentzVector | Get4Vector () const |
virtual Double_t | GetPx () const |
virtual Double_t | GetPy () const |
virtual Double_t | GetPz () const |
virtual Double_t | GetE () const |
virtual Double_t | GetP () const |
virtual Double_t | GetM () const |
virtual Double_t | GetPt () const |
virtual Double_t | GetTheta () const |
virtual Double_t | GetPhi () const |
virtual Double_t | GetRapidity () const |
virtual Double_t | GetEta () const |
virtual TVector3 | GetVertex () const |
virtual UShort_t | GetStatus () const |
virtual UShort_t | GetParentIndex () const |
virtual Double_t | GetXFeynman () const |
virtual void | SetStatus (UShort_t) |
virtual void | SetParentIndex (UShort_t) |
virtual void | SetXFeynman (double xf) |
virtual void | Set4Vector (const TLorentzVector &) |
virtual void | SetVertex (const TVector3 &) |
Public Member Functions inherited from erhic::VirtualParticle | |
virtual | ~VirtualParticle () |
Protected Attributes | |
UShort_t | KS |
Status code: see PYTHIA manual. | |
UShort_t | orig |
I of parent particle. | |
Int_t | id |
PDG code identifying the particle. | |
Double32_t | px |
x component of momentum (GeV/c) | |
Double32_t | py |
y component of momentum (GeV/c) | |
Double32_t | pz |
z component of momentum (GeV/c) | |
Double32_t | E |
Total energy (GeV) | |
Double32_t | p |
Magnitude of momentum (GeV/c) | |
Double32_t | m |
Invariant mass (GeV/c2) | |
Double32_t | pt |
Momentum transverse to the beam direction (GeV/c) | |
Double32_t | theta |
Polar angle (radians [0, pi]) | |
Double32_t | phi |
Angle of azimuth (radians [0, 2pi]) | |
Double32_t | rapidity |
Rapidity. | |
Double32_t | eta |
Pseudorapidity. | |
Double32_t | xFeynman |
Feynman x = 2 * pz / centre of mass energy. | |
Double32_t | xv |
x vertex position (cm) | |
Double32_t | yv |
y vertex position (cm) | |
Double32_t | zv |
z vertex position (cm) | |
A realisation of erhic::VirtualParticle for tracks from a hadron-hadron Monte Carlo event.
Definition at line 30 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 30 of file ParticleMC.h
|
inlinevirtual |
Destructor
Definition at line 35 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 35 of file ParticleMC.h
erhic::hadronic::ParticleMC::ParticleMC | ( | ) |
Default constructor
Definition at line 21 of file ParticleMC.cxx.
View newest version in sPHENIX GitHub at line 21 of file ParticleMC.cxx
|
explicit |
erhic::hadronic::ParticleMC::ParticleMC | ( | const TLorentzVector & | ep, |
const TVector3 & | v, | ||
int | pdg, | ||
int | status, | ||
int | parent | ||
) |
Initialise from energy-momentum 4-vector, vertex 3-vector and PDG, status, parent index.
Definition at line 74 of file ParticleMC.cxx.
View newest version in sPHENIX GitHub at line 74 of file ParticleMC.cxx
|
inlinevirtual |
Returns the momentum-energy four-vector (px, py, pz, E).
Implements erhic::VirtualParticle.
Definition at line 196 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 196 of file ParticleMC.h
References GetE(), GetPx(), GetPy(), and GetPz().
Referenced by erhic::hadronic::EventMC::GetCentreOfMassEnergy().
|
inlinevirtual |
Returns total energy.
Implements erhic::VirtualParticle.
Definition at line 212 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 212 of file ParticleMC.h
References E.
Referenced by Get4Vector().
|
inlinevirtual |
Returns the pseudorapidity.
Implements erhic::VirtualParticle.
Definition at line 240 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 240 of file ParticleMC.h
References eta.
|
inlinevirtual |
Returns invariant mass (GeV/c2).
Implements erhic::VirtualParticle.
Definition at line 220 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 220 of file ParticleMC.h
References m.
|
inlinevirtual |
Returns the magnitude of 3-momentum (GeV).
Implements erhic::VirtualParticle.
Definition at line 216 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 216 of file ParticleMC.h
References p.
|
inlinevirtual |
Index of this particle's precursor in the event. Returns 0 if the particle has no direct parent.
Implements erhic::VirtualParticle.
Definition at line 252 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 252 of file ParticleMC.h
References orig.
|
inlinevirtual |
Returns the polar angle in the range [0, 2pi] radians.
Implements erhic::VirtualParticle.
Definition at line 232 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 232 of file ParticleMC.h
References phi.
|
inlinevirtual |
Returns momentum perpendicular to the beam direction.
Implements erhic::VirtualParticle.
Definition at line 224 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 224 of file ParticleMC.h
References pt.
|
inlinevirtual |
Returns the x component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 200 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 200 of file ParticleMC.h
References px.
Referenced by Get4Vector().
|
inlinevirtual |
Returns the y component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 204 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 204 of file ParticleMC.h
References py.
Referenced by Get4Vector().
|
inlinevirtual |
Returns the z component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 208 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 208 of file ParticleMC.h
References pz.
Referenced by Get4Vector().
|
inlinevirtual |
Returns the rapidity.
Implements erhic::VirtualParticle.
Definition at line 236 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 236 of file ParticleMC.h
References rapidity.
|
inlinevirtual |
A general "status" code for the particle (definition depends on implementation).
Implements erhic::VirtualParticle.
Definition at line 248 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 248 of file ParticleMC.h
References KS.
|
inlinevirtual |
Returns the polar angle in the range [0, pi] radians.
Implements erhic::VirtualParticle.
Definition at line 228 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 228 of file ParticleMC.h
References theta.
|
inlinevirtual |
Returns the origin point of the particle in cm. (0,0,0) indicates a particle originating in the collision.
Implements erhic::VirtualParticle.
Definition at line 244 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 244 of file ParticleMC.h
|
inlinevirtual |
Returns Feynman-x. xF = 2*pz/sqrt(s).
Definition at line 256 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 256 of file ParticleMC.h
References xFeynman.
|
inlinevirtual |
Returns identity information for the Particle species.
Implements erhic::VirtualParticle.
Definition at line 192 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 192 of file ParticleMC.h
|
virtual |
Sets the four-momentum of the particle. Changes are propagated to derived quantities.
Implements erhic::VirtualParticle.
Definition at line 101 of file ParticleMC.cxx.
View newest version in sPHENIX GitHub at line 101 of file ParticleMC.cxx
References E, eta, m, p, phi, pt, px, py, pz, rapidity, and theta.
|
virtual |
Sets the parent index, in the range [1, N - 1] for particles with parents, or 0 for those without.
Definition at line 97 of file ParticleMC.cxx.
View newest version in sPHENIX GitHub at line 97 of file ParticleMC.cxx
References orig.
|
inlinevirtual |
Sets the status code.
Definition at line 260 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 260 of file ParticleMC.h
References KS.
|
inlinevirtual |
Sets the origin coordinates.
Implements erhic::VirtualParticle.
Definition at line 268 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 268 of file ParticleMC.h
|
inlinevirtual |
Sets the Feynman-x
Definition at line 264 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 264 of file ParticleMC.h
References xFeynman.
|
protected |
Total energy (GeV)
Definition at line 176 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 176 of file ParticleMC.h
Referenced by GetE(), and Set4Vector().
|
protected |
Pseudorapidity.
Definition at line 183 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 183 of file ParticleMC.h
Referenced by GetEta(), ParticleMC(), and Set4Vector().
|
protected |
PDG code identifying the particle.
Definition at line 172 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 172 of file ParticleMC.h
|
protected |
Status code: see PYTHIA manual.
Definition at line 170 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 170 of file ParticleMC.h
Referenced by GetStatus(), and SetStatus().
|
protected |
Invariant mass (GeV/c2)
Definition at line 178 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 178 of file ParticleMC.h
Referenced by GetM(), and Set4Vector().
|
protected |
I of parent particle.
Definition at line 171 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 171 of file ParticleMC.h
Referenced by GetParentIndex(), and SetParentIndex().
|
protected |
Magnitude of momentum (GeV/c)
Definition at line 177 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 177 of file ParticleMC.h
Referenced by GetP(), ParticleMC(), and Set4Vector().
|
protected |
Angle of azimuth (radians [0, 2pi])
Definition at line 181 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 181 of file ParticleMC.h
Referenced by GetPhi(), ParticleMC(), and Set4Vector().
|
protected |
Momentum transverse to the beam direction (GeV/c)
Definition at line 179 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 179 of file ParticleMC.h
Referenced by GetPt(), ParticleMC(), and Set4Vector().
|
protected |
x component of momentum (GeV/c)
Definition at line 173 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 173 of file ParticleMC.h
Referenced by GetPx(), and Set4Vector().
|
protected |
y component of momentum (GeV/c)
Definition at line 174 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 174 of file ParticleMC.h
Referenced by GetPy(), and Set4Vector().
|
protected |
z component of momentum (GeV/c)
Definition at line 175 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 175 of file ParticleMC.h
Referenced by GetPz(), and Set4Vector().
|
protected |
Rapidity.
Definition at line 182 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 182 of file ParticleMC.h
Referenced by GetRapidity(), ParticleMC(), and Set4Vector().
|
protected |
Polar angle (radians [0, pi])
Definition at line 180 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 180 of file ParticleMC.h
Referenced by GetTheta(), ParticleMC(), and Set4Vector().
|
protected |
Feynman x = 2 * pz / centre of mass energy.
Definition at line 184 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 184 of file ParticleMC.h
Referenced by GetXFeynman(), and SetXFeynman().
|
protected |
x vertex position (cm)
Definition at line 185 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 185 of file ParticleMC.h
Referenced by GetVertex(), and SetVertex().
|
protected |
y vertex position (cm)
Definition at line 186 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 186 of file ParticleMC.h
Referenced by GetVertex(), and SetVertex().
|
protected |
z vertex position (cm)
Definition at line 187 of file ParticleMC.h.
View newest version in sPHENIX GitHub at line 187 of file ParticleMC.h
Referenced by GetVertex(), and SetVertex().