EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::hadronic::ParticleMC Class Reference

#include <eic-smear/blob/master/include/eicsmear/hadronic/ParticleMC.h>

+ Inheritance diagram for erhic::hadronic::ParticleMC:
+ Collaboration diagram for erhic::hadronic::ParticleMC:

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)
 

Detailed Description

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

Constructor & Destructor Documentation

virtual erhic::hadronic::ParticleMC::~ParticleMC ( )
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

erhic::hadronic::ParticleMC::ParticleMC ( const TMCParticle &  mc)
explicit

Initialise from a PYTHIA TParticleMC

Definition at line 42 of file ParticleMC.cxx.

View newest version in sPHENIX GitHub at line 42 of file ParticleMC.cxx

References eta, p, phi, pt, rapidity, theta, and v.

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

Member Function Documentation

TLorentzVector erhic::hadronic::ParticleMC::Get4Vector ( ) const
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Double_t erhic::hadronic::ParticleMC::GetE ( ) const
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().

+ Here is the caller graph for this function:

Double_t erhic::hadronic::ParticleMC::GetEta ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetM ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetP ( ) const
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.

UShort_t erhic::hadronic::ParticleMC::GetParentIndex ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetPhi ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetPt ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetPx ( ) const
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().

+ Here is the caller graph for this function:

Double_t erhic::hadronic::ParticleMC::GetPy ( ) const
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().

+ Here is the caller graph for this function:

Double_t erhic::hadronic::ParticleMC::GetPz ( ) const
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().

+ Here is the caller graph for this function:

Double_t erhic::hadronic::ParticleMC::GetRapidity ( ) const
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.

UShort_t erhic::hadronic::ParticleMC::GetStatus ( ) const
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.

Double_t erhic::hadronic::ParticleMC::GetTheta ( ) const
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.

TVector3 erhic::hadronic::ParticleMC::GetVertex ( ) const
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

References xv, yv, and zv.

Double_t erhic::hadronic::ParticleMC::GetXFeynman ( ) const
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.

Pid erhic::hadronic::ParticleMC::Id ( ) const
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

void erhic::hadronic::ParticleMC::Set4Vector ( const TLorentzVector &  v)
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.

void erhic::hadronic::ParticleMC::SetParentIndex ( UShort_t  i)
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.

void erhic::hadronic::ParticleMC::SetStatus ( UShort_t  i)
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.

void erhic::hadronic::ParticleMC::SetVertex ( const TVector3 &  v)
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

References xv, yv, and zv.

void erhic::hadronic::ParticleMC::SetXFeynman ( double  xf)
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.

Member Data Documentation

Double32_t erhic::hadronic::ParticleMC::E
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().

Double32_t erhic::hadronic::ParticleMC::eta
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().

Int_t erhic::hadronic::ParticleMC::id
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

UShort_t erhic::hadronic::ParticleMC::KS
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().

Double32_t erhic::hadronic::ParticleMC::m
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().

UShort_t erhic::hadronic::ParticleMC::orig
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().

Double32_t erhic::hadronic::ParticleMC::p
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().

Double32_t erhic::hadronic::ParticleMC::phi
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().

Double32_t erhic::hadronic::ParticleMC::pt
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().

Double32_t erhic::hadronic::ParticleMC::px
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().

Double32_t erhic::hadronic::ParticleMC::py
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().

Double32_t erhic::hadronic::ParticleMC::pz
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().

Double32_t erhic::hadronic::ParticleMC::rapidity
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().

Double32_t erhic::hadronic::ParticleMC::theta
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().

Double32_t erhic::hadronic::ParticleMC::xFeynman
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().

Double32_t erhic::hadronic::ParticleMC::xv
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().

Double32_t erhic::hadronic::ParticleMC::yv
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().

Double32_t erhic::hadronic::ParticleMC::zv
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().


The documentation for this class was generated from the following files: