![]() |
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
|
#include <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 &) |
![]() | |
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.
|
inlinevirtual |
Destructor
Definition at line 35 of file ParticleMC.h.
erhic::hadronic::ParticleMC::ParticleMC | ( | ) |
Default constructor
Definition at line 21 of file ParticleMC.cxx.
|
explicit |
Initialise from a PYTHIA TParticleMC
Definition at line 42 of file ParticleMC.cxx.
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.
|
inlinevirtual |
Returns the momentum-energy four-vector (px, py, pz, E).
Implements erhic::VirtualParticle.
Definition at line 196 of file ParticleMC.h.
|
inlinevirtual |
Returns total energy.
Implements erhic::VirtualParticle.
Definition at line 212 of file ParticleMC.h.
|
inlinevirtual |
Returns the pseudorapidity.
Implements erhic::VirtualParticle.
Definition at line 240 of file ParticleMC.h.
|
inlinevirtual |
Returns invariant mass (GeV/c2).
Implements erhic::VirtualParticle.
Definition at line 220 of file ParticleMC.h.
|
inlinevirtual |
Returns the magnitude of 3-momentum (GeV).
Implements erhic::VirtualParticle.
Definition at line 216 of file ParticleMC.h.
|
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.
|
inlinevirtual |
Returns the polar angle in the range [0, 2pi] radians.
Implements erhic::VirtualParticle.
Definition at line 232 of file ParticleMC.h.
|
inlinevirtual |
Returns momentum perpendicular to the beam direction.
Implements erhic::VirtualParticle.
Definition at line 224 of file ParticleMC.h.
|
inlinevirtual |
Returns the x component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 200 of file ParticleMC.h.
|
inlinevirtual |
Returns the y component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 204 of file ParticleMC.h.
|
inlinevirtual |
Returns the z component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 208 of file ParticleMC.h.
|
inlinevirtual |
Returns the rapidity.
Implements erhic::VirtualParticle.
Definition at line 236 of file ParticleMC.h.
|
inlinevirtual |
A general "status" code for the particle (definition depends on implementation).
Implements erhic::VirtualParticle.
Definition at line 248 of file ParticleMC.h.
|
inlinevirtual |
Returns the polar angle in the range [0, pi] radians.
Implements erhic::VirtualParticle.
Definition at line 228 of file ParticleMC.h.
|
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.
|
inlinevirtual |
Returns Feynman-x. xF = 2*pz/sqrt(s).
Definition at line 256 of file ParticleMC.h.
|
inlinevirtual |
Returns identity information for the Particle species.
Implements erhic::VirtualParticle.
Definition 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.
|
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.
|
inlinevirtual |
Sets the status code.
Definition at line 260 of file ParticleMC.h.
|
inlinevirtual |
Sets the origin coordinates.
Implements erhic::VirtualParticle.
Definition at line 268 of file ParticleMC.h.
|
inlinevirtual |
Sets the Feynman-x
Definition at line 264 of file ParticleMC.h.