HepMC3 event record library
Public Member Functions | Private Member Functions | Private Attributes
TauolaHepMC3Particle Class Reference
+ 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
 

Detailed Description

Definition at line 37 of file TauolaHepMC3Particle.h.

Constructor & Destructor Documentation

General constructor

TauolaHepMC3Particle ( GenParticlePtr  particle)

Constructor which keeps a pointer to the GenParticle

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

void checkMomentumConservation ( )

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

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

void decayEndgame ( )

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

int getBarcode ( )

Get the barcode of this particle

std::vector<TauolaParticle*> getDaughters ( )

Returns the daughters of this particle via a vector of TauolaParticle

double getE ( )

Returns the energy component of the four vector

GenParticlePtr getHepMC3 ( )

Returns the GenParticlePtr

std::vector<TauolaParticle*> getMothers ( )

Returns the mothers of this particle via a vector of TauolaParticle

int getPdgID ( )

Get the PDG ID code of this particle

double getPx ( )

Returns the px component of the four vector

double getPy ( )

Returns the py component of the four vector

double getPz ( )

Returns the pz component of the four vector

int getStatus ( )

Get the status of this particle

void print ( )

Print some information about this particle to standard output

void recursiveSetPosition ( GenParticlePtr  p,
FourVector  pos 
)
private

Sets the position for whole decay tree starting from given particle

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

Set the daughters of this particle via a vector of TauolaParticle

void setE ( double  e)

Set the energy component of the four vector

void setMass ( double  mass)

Set the mass of this particle

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

Set the mothers of this particle via a vector of TauolaParticle

void setPdgID ( int  pdg_id)

Set the PDG ID code of this particle

void setPx ( double  px)

Set the px component of the four vector

void setPy ( double  py)

Set the px component of the four vector

void setPz ( double  pz)

Set the pz component of the four vector

void setStatus ( int  statu)

Set the status of this particle

void undecay ( )

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

Field Documentation

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 152 of file TauolaHepMC3Particle.h.

std::vector<TauolaParticle*> m_daughters
private

A list of daughters

Definition at line 148 of file TauolaHepMC3Particle.h.

std::vector<TauolaParticle*> m_mothers
private

A list of mothers

Definition at line 145 of file TauolaHepMC3Particle.h.

GenParticlePtr m_particle
private

A pointer to the GenParticle particle

Definition at line 142 of file TauolaHepMC3Particle.h.


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