![]() |
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 <ParticleMCS.h>
Public Member Functions | |
virtual | ~ParticleMCS () |
ParticleMCS () | |
ParticleMCS (const TLorentzVector &, int pdg, int status) | |
virtual Double_t | GetPx () const |
virtual Double_t | GetPy () const |
virtual Double_t | GetPz () const |
virtual Double_t | GetE () const |
virtual TLorentzVector | Get4Vector () const |
virtual TLorentzVector | PxPyPzE () const |
virtual Double_t | GetM () const |
virtual Double_t | GetPt () const |
virtual TVector3 | GetVertex () const |
virtual Double_t | GetP () const |
virtual Double_t | GetTheta () const |
virtual Double_t | GetPhi () const |
virtual Double_t | GetRapidity () const |
virtual Double_t | GetEta () const |
virtual UShort_t | GetStatus () const |
virtual ::erhic::Pid | Id () const |
virtual void | SetE (Double_t) |
virtual void | SetP (Double_t) |
virtual void | SetPt (Double_t) |
virtual void | SetPz (Double_t) |
virtual void | SetPhi (Double_t) |
virtual void | SetTheta (Double_t) |
void | Set4Vector (const TLorentzVector &) |
virtual void | SetId (Int_t) |
virtual void | SetStatus (Int_t) |
virtual UShort_t | GetParentIndex () const |
virtual void | Print (Option_t *="") const |
virtual void | SetVertex (const TVector3 &) |
![]() | |
virtual | ~VirtualParticle () |
Public Attributes | |
UShort_t | status |
Status code. | |
Int_t | id |
PDG particle code. | |
Double32_t | px |
x component of particle momentum | |
Double32_t | py |
y component of particle momentum | |
Double32_t | pz |
z component of particle momentum | |
Double32_t | E |
Energy of particle. | |
Double32_t | pt |
Transverse momentum of particle. | |
Double32_t | p |
Total momentum of particle. | |
Double32_t | theta |
Polar angle. | |
Double32_t | phi |
Azimuthal angle. | |
A smeared Monte Carlo particle.
Definition at line 27 of file ParticleMCS.h.
|
virtual |
Destructor.
Definition at line 45 of file ParticleMCS.cxx.
Smear::ParticleMCS::ParticleMCS | ( | ) |
Default constructor. Initialises the Particle from the argument string with the format I KS id orig daughter ldaughter px py pz m E xv yv zv
Definition at line 19 of file ParticleMCS.cxx.
Smear::ParticleMCS::ParticleMCS | ( | const TLorentzVector & | ep, |
int | pdg, | ||
int | status | ||
) |
Construct from an E-p 4-vector, pdg code and status code.
Definition at line 32 of file ParticleMCS.cxx.
|
virtual |
Returns the (E,p) 4-vector in the lab frame.
Implements erhic::VirtualParticle.
Definition at line 48 of file ParticleMCS.cxx.
|
inlinevirtual |
Returns the energy of the particle in the lab frame.
Implements erhic::VirtualParticle.
Definition at line 197 of file ParticleMCS.h.
|
virtual |
Returns the pseudorapidity.
Implements erhic::VirtualParticle.
Definition at line 70 of file ParticleMCS.cxx.
|
inlinevirtual |
Returns the apparent mass of the smeared particle.
Implements erhic::VirtualParticle.
Definition at line 201 of file ParticleMCS.h.
|
inlinevirtual |
Returns the total momentum (GeV).
Implements erhic::VirtualParticle.
Definition at line 213 of file ParticleMCS.h.
|
inlinevirtual |
Returns the index of the parent particle
Implements erhic::VirtualParticle.
Definition at line 156 of file ParticleMCS.h.
|
inlinevirtual |
Returns the polar angle in the range [0,2pi] radians.
Implements erhic::VirtualParticle.
Definition at line 221 of file ParticleMCS.h.
|
inlinevirtual |
Returns momentum transverse to the beam direction.
Implements erhic::VirtualParticle.
Definition at line 205 of file ParticleMCS.h.
|
inlinevirtual |
Returns the x component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 185 of file ParticleMCS.h.
|
inlinevirtual |
Returns the y component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 189 of file ParticleMCS.h.
|
inlinevirtual |
Returns the z component of 3-momentum.
Implements erhic::VirtualParticle.
Definition at line 193 of file ParticleMCS.h.
|
virtual |
Returns the rapidity.
Implements erhic::VirtualParticle.
Definition at line 81 of file ParticleMCS.cxx.
|
inlinevirtual |
Returns a status code following the PYTHIA defintion, where 21 indicates an initial-state particle and 1 indicates a final- state particle
Implements erhic::VirtualParticle.
Definition at line 225 of file ParticleMCS.h.
|
inlinevirtual |
Returns the polar angle in the range [0,pi] radians.
Implements erhic::VirtualParticle.
Definition at line 217 of file ParticleMCS.h.
|
inlinevirtual |
Returns the origin point of the particle (cm). (0,0,0) indicates a particle originating in the collision.
Implements erhic::VirtualParticle.
Definition at line 209 of file ParticleMCS.h.
|
inlinevirtual |
Returns the ID of the particle.
Implements erhic::VirtualParticle.
Definition at line 261 of file ParticleMCS.h.
|
virtual |
Prints the attributes of this particle to standard output. The output format is "status id px py pz E".
Definition at line 52 of file ParticleMCS.cxx.
|
inlinevirtual |
Returns the (E,p) 4-vector in the lab frame.
Definition at line 74 of file ParticleMCS.h.
|
inlinevirtual |
Dummy one; just need to compile;
Implements erhic::VirtualParticle.
Definition at line 150 of file ParticleMCS.h.
|
inlinevirtual |
Sets the origin coordinates. No-op, just required for compilation.
Implements erhic::VirtualParticle.
Definition at line 168 of file ParticleMCS.h.