HepMC3 event record library
Public Member Functions | Private Member Functions | Private Attributes
TauolaHepMC3Particle Class Reference

Detailed Description

Definition at line 39 of file TauolaHepMC3Particle.h.

+ Inheritance diagram for TauolaHepMC3Particle:
+ Collaboration diagram for TauolaHepMC3Particle:

Public Member Functions

 TauolaHepMC3Particle ()
 
 TauolaHepMC3Particle (GenParticlePtr particle)
 
 TauolaHepMC3Particle (int pdg_id, int status, double mass)
 
GenParticlePtr getHepMC3 ()
 
void undecay ()
 
void setMothers (std::vector< TauolaParticle * > mothers)
 
void setDaughters (std::vector< TauolaParticle * > daughters)
 
std::vector< TauolaParticle * > getMothers ()
 
std::vector< TauolaParticle * > getDaughters ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
int getBarcode ()
 
void checkMomentumConservation ()
 
void decayEndgame ()
 
TauolaHepMC3ParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void print ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 

Private Member Functions

void recursiveSetPosition (GenParticlePtr p, FourVector pos)
 

Private Attributes

GenParticlePtr m_particle
 
std::vector< TauolaParticle * > m_mothers
 
std::vector< TauolaParticle * > m_daughters
 
std::vector< TauolaParticle * > m_created_particles
 

Constructor & Destructor Documentation

◆ TauolaHepMC3Particle() [1/3]

General constructor

◆ TauolaHepMC3Particle() [2/3]

TauolaHepMC3Particle ( GenParticlePtr  particle)

Constructor which keeps a pointer to the GenParticle

◆ TauolaHepMC3Particle() [3/3]

TauolaHepMC3Particle ( int  pdg_id,
int  status,
double  mass 
)

Constructor which creates a new GenParticle and sets the properties pdg_id, statu and mass.

Member Function Documentation

◆ checkMomentumConservation()

void checkMomentumConservation ( )

Check that the 4 momentum in conserved at the vertices producing and ending this particle

◆ createNewParticle()

TauolaHepMC3Particle* createNewParticle ( int  pdg_id,
int  status,
double  mass,
double  px,
double  py,
double  pz,
double  e 
)

Create a new particle of type TauolaHepMC3Particle, with the given properties. The new particle bares no relations to this particle, but it provides a way of creating a instance of this derived class. eg. createNewParticle() is used inside filhep_() so that a TauolaHepMC3Particle can be created without the method having explicit knowledge of the TauolaHepMC3Particle class

◆ decayEndgame()

void decayEndgame ( )

Overriding of TauolaParticle decayEndgame method. Converts the momentum and length units and sets the vector (X,T) position

◆ getBarcode()

int getBarcode ( )

Get the barcode of this particle

◆ getDaughters()

std::vector<TauolaParticle*> getDaughters ( )

Returns the daughters of this particle via a vector of TauolaParticle

◆ getE()

double getE ( )

Returns the energy component of the four vector

◆ getHepMC3()

GenParticlePtr getHepMC3 ( )

Returns the GenParticlePtr

◆ getMothers()

std::vector<TauolaParticle*> getMothers ( )

Returns the mothers of this particle via a vector of TauolaParticle

◆ getPdgID()

int getPdgID ( )

Get the PDG ID code of this particle

◆ getPx()

double getPx ( )

Returns the px component of the four vector

◆ getPy()

double getPy ( )

Returns the py component of the four vector

◆ getPz()

double getPz ( )

Returns the pz component of the four vector

◆ getStatus()

int getStatus ( )

Get the status of this particle

◆ print()

void print ( )

Print some information about this particle to standard output

◆ recursiveSetPosition()

void recursiveSetPosition ( GenParticlePtr  p,
FourVector  pos 
)
private

Sets the position for whole decay tree starting from given particle

◆ setDaughters()

void setDaughters ( std::vector< TauolaParticle * >  daughters)

Set the daughters of this particle via a vector of TauolaParticle

◆ setE()

void setE ( double  e)

Set the energy component of the four vector

◆ setMass()

void setMass ( double  mass)

Set the mass of this particle

◆ setMothers()

void setMothers ( std::vector< TauolaParticle * >  mothers)

Set the mothers of this particle via a vector of TauolaParticle

◆ setPdgID()

void setPdgID ( int  pdg_id)

Set the PDG ID code of this particle

◆ setPx()

void setPx ( double  px)

Set the px component of the four vector

◆ setPy()

void setPy ( double  py)

Set the px component of the four vector

◆ setPz()

void setPz ( double  pz)

Set the pz component of the four vector

◆ setStatus()

void setStatus ( int  statu)

Set the status of this particle

◆ undecay()

void undecay ( )

Remove the decay branch from the event record and reset the particle status code to stable.

Field Documentation

◆ m_created_particles

std::vector<TauolaParticle*> m_created_particles
private

List to keep track of new particles which have been created from this one, so we can call their destructor later

Definition at line 154 of file TauolaHepMC3Particle.h.

◆ m_daughters

std::vector<TauolaParticle*> m_daughters
private

A list of daughters

Definition at line 150 of file TauolaHepMC3Particle.h.

◆ m_mothers

std::vector<TauolaParticle*> m_mothers
private

A list of mothers

Definition at line 147 of file TauolaHepMC3Particle.h.

◆ m_particle

GenParticlePtr m_particle
private

A pointer to the GenParticle particle

Definition at line 144 of file TauolaHepMC3Particle.h.


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