C++ Interface to Tauola
TauolaHepMCParticle Class Reference
Inheritance diagram for TauolaHepMCParticle:
Inheritance graph
Collaboration diagram for TauolaHepMCParticle:
Collaboration graph

Public Member Functions

 TauolaHepMCParticle ()
 TauolaHepMCParticle (HepMC::GenParticle *particle)
 TauolaHepMCParticle (int pdg_id, int status, double mass)
HepMC::GenParticle * getHepMC ()
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 ()
TauolaHepMCParticlecreateNewParticle (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)
 TauolaHepMCParticle ()
 TauolaHepMCParticle (HepMC::GenParticle *particle)
 TauolaHepMCParticle (int pdg_id, int status, double mass)
HepMC::GenParticle * getHepMC ()
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 ()
TauolaHepMCParticlecreateNewParticle (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)
TauolaParticleclone ()
TauolaParticleclone ()
double getAngle (TauolaParticle *)
double getAngle (TauolaParticle *)
void add (TauolaParticle *)
void add (TauolaParticle *)
void subtract (TauolaParticle *)
void subtract (TauolaParticle *)
void decay ()
void decay ()
void addDecayToEventRecord ()
void addDecayToEventRecord ()
int getSign ()
int getSign ()
double getPolarimetricX ()
double getPolarimetricX ()
double getPolarimetricY ()
double getPolarimetricY ()
double getPolarimetricZ ()
double getPolarimetricZ ()
bool hasDaughters ()
bool hasDaughters ()
TauolaParticlefindLastSelf ()
TauolaParticlefindLastSelf ()
std::vector< TauolaParticle * > findProductionMothers ()
std::vector< TauolaParticle * > findProductionMothers ()
void boostToRestFrame (TauolaParticle *boost)
void boostToRestFrame (TauolaParticle *boost)
void boostDaughtersToRestFrame (TauolaParticle *boost)
void boostDaughtersToRestFrame (TauolaParticle *boost)
void boostFromRestFrame (TauolaParticle *boost)
void boostFromRestFrame (TauolaParticle *boost)
void boostDaughtersFromRestFrame (TauolaParticle *boost)
void boostDaughtersFromRestFrame (TauolaParticle *boost)
void boostAlongZ (double pz, double e)
void boostAlongZ (double pz, double e)
void rotate (int axis, double phi, int second_axis=Z_AXIS)
void rotate (int axis, double phi, int second_axis=Z_AXIS)
void rotateDaughters (int axis, double phi, int second_axis=Z_AXIS)
void rotateDaughters (int axis, double phi, int second_axis=Z_AXIS)
double getRotationAngle (int axis, int second_axis=Z_AXIS)
double getRotationAngle (int axis, int second_axis=Z_AXIS)
double getP ()
double getP (int axis)
double getP ()
double getP (int axis)
void setP (int axis, double p_component)
void setP (int axis, double p_component)
double getMass ()
double getMass ()

Static Public Attributes

static const int SAME_SIGN =1
static const int OPPOSITE_SIGN =2
static const int NA_SIGN =3
static const int STABLE =1
static const int DECAYED =2
static const int HISTORY =3
static const int X_AXIS =1
static const int Y_AXIS =2
static const int Z_AXIS =3
static const int Z0 = 23
static const int HIGGS = 25
static const int HIGGS_A = 36
static const int HIGGS_PLUS = 37
static const int HIGGS_MINUS = -37
static const int W_PLUS = 24
static const int W_MINUS = -24
static const int GAMMA = 22
static const int TAU_PLUS = -15
static const int TAU_MINUS = 15
static const int TAU_NEUTRINO = 16
static const int TAU_ANTINEUTRINO = -16
static const int MUON_PLUS = -13
static const int MUON_MINUS = 13
static const int MUON_NEUTRINO = 14
static const int MUON_ANTINEUTRINO = -14
static const int POSITRON = -11
static const int ELECTRON = 11
static const int ELECTRON_NEUTRINO = 12
static const int ELECTRON_ANTINEUTRINO = -12
static const int UP = 2
static const int ANTIUP = -2
static const int DOWN = 1
static const int ANTIDOWN = -1
static const int GLUON = 21
static const int CHARM = 4
static const int TOP = 6
static const int STRANGE = 3
static const int BOTTOM = 5
static const int OTHER = 0

Private Member Functions

void recursiveSetPosition (HepMC::GenParticle *p, HepMC::FourVector pos)
void recursiveSetPosition (HepMC::GenParticle *p, HepMC::FourVector pos)

Private Attributes

HepMC::GenParticle * m_particle
std::vector< TauolaParticle * > m_mothers
std::vector< TauolaParticle * > m_daughters
std::vector< TauolaParticle * > m_created_particles
double m_pol_x
double m_pol_y
double m_pol_z
double m_pol_n

Detailed Description

Definition at line 35 of file include/Tauola/TauolaHepMCParticle.h.

Constructor & Destructor Documentation

◆ TauolaHepMCParticle() [1/6]

General constructor

Definition at line 7 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ ~TauolaHepMCParticle()

Definition at line 11 of file TauolaHepMCParticle.cxx.

◆ TauolaHepMCParticle() [2/6]

TauolaHepMCParticle ( HepMC::GenParticle * particle)

Constructor which keeps a pointer to the HepMC::GenParticle

Definition at line 42 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ TauolaHepMCParticle() [3/6]

TauolaHepMCParticle ( int pdg_id,
int status,
double mass )

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

Definition at line 35 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ TauolaHepMCParticle() [4/6]

General constructor

References TauolaHepMCParticle().

◆ TauolaHepMCParticle() [5/6]

TauolaHepMCParticle ( HepMC::GenParticle * particle)

Constructor which keeps a pointer to the HepMC::GenParticle

◆ TauolaHepMCParticle() [6/6]

TauolaHepMCParticle ( int pdg_id,
int status,
double mass )

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

Member Function Documentation

◆ add() [1/2]

void add ( TauolaParticle * other_particle)
inherited

Add the 4 momentum of another particle to this particle

Definition at line 44 of file TauolaParticle.cxx.

References getE(), getPx(), getPy(), getPz(), setE(), setMass(), setPx(), setPy(), and setPz().

◆ add() [2/2]

void add ( TauolaParticle * )
inherited

Add the 4 momentum of another particle to this particle

◆ addDecayToEventRecord() [1/2]

void addDecayToEventRecord ( )
inherited

Invokes TAUOLA FORTRAN routine DEKAY retrieving the daughters of decayed tau.

Definition at line 109 of file TauolaParticle.cxx.

References DecayList::addToEnd(), boostAlongZ(), DecayList::clear(), clone(), Log::Fatal(), getE(), getP(), DecayList::getParticle(), getPdgID(), getPx(), getPy(), getPz(), getSign(), hasDaughters(), Tauolapp::TauolaWriteDecayToEventRecord(), and Z_AXIS.

◆ addDecayToEventRecord() [2/2]

void addDecayToEventRecord ( )
inherited

Invokes TAUOLA FORTRAN routine DEKAY retrieving the daughters of decayed tau.

◆ boostAlongZ() [1/2]

void boostAlongZ ( double boost_pz,
double boost_e )
inherited

Do a Lorenz transformation along the Z axis.

Boost this vector along the Z direction. Assume no momentum components in the X or Y directions.

Definition at line 292 of file TauolaParticle.cxx.

References getE(), getPz(), setE(), and setPz().

◆ boostAlongZ() [2/2]

void boostAlongZ ( double pz,
double e )
inherited

Do a Lorenz transformation along the Z axis.

◆ boostDaughtersFromRestFrame()

void boostDaughtersFromRestFrame ( TauolaParticle * boost)
inherited

Definition at line 198 of file TauolaParticle.cxx.

◆ boostDaughtersToRestFrame() [1/2]

void boostDaughtersToRestFrame ( TauolaParticle * boost)
inherited

Transform the four momentum of all the daughters recursively into the frame of the "particle" TauolaParticle.

Definition at line 215 of file TauolaParticle.cxx.

References getDaughters(), and hasDaughters().

◆ boostDaughtersToRestFrame() [2/2]

void boostDaughtersToRestFrame ( TauolaParticle * boost)
inherited

Transform the four momentum of all the daughters recursively into the frame of the "particle" TauolaParticle.

◆ boostFromRestFrame() [1/2]

void boostFromRestFrame ( TauolaParticle * boost)
inherited

Transform this particles four momentum from the rest frame of the paramter TauolaParticle, back into the lab frame.

Definition at line 250 of file TauolaParticle.cxx.

References boostAlongZ(), getE(), getP(), getRotationAngle(), rotate(), X_AXIS, and Y_AXIS.

◆ boostFromRestFrame() [2/2]

void boostFromRestFrame ( TauolaParticle * boost)
inherited

Transform this particles four momentum from the rest frame of the paramter TauolaParticle, back into the lab frame.

◆ boostToRestFrame() [1/2]

void boostToRestFrame ( TauolaParticle * boost)
inherited

Transform this particles four momentum from the lab frome into the rest frame of the paramter TauolaParticle.

Definition at line 234 of file TauolaParticle.cxx.

References boostAlongZ(), getE(), getP(), getRotationAngle(), rotate(), X_AXIS, and Y_AXIS.

◆ boostToRestFrame() [2/2]

void boostToRestFrame ( TauolaParticle * boost)
inherited

Transform this particles four momentum from the lab frome into the rest frame of the paramter TauolaParticle.

◆ checkMomentumConservation() [1/2]

void checkMomentumConservation ( )
virtual

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

Reimplemented from TauolaParticle.

Definition at line 192 of file TauolaHepMCParticle.cxx.

References m_particle, Log::RedirectOutput(), and Log::RevertOutput().

◆ checkMomentumConservation() [2/2]

void checkMomentumConservation ( )
virtual

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

Reimplemented from TauolaParticle.

◆ clone() [1/2]

TauolaParticle * clone ( )
inherited

Create a new particle with the same properties as this one. Mothers and daughters will not be linked.

Definition at line 21 of file TauolaParticle.cxx.

References createNewParticle(), getE(), getMass(), getPdgID(), getPx(), getPy(), getPz(), and getStatus().

◆ clone() [2/2]

TauolaParticle * clone ( )
inherited

Create a new particle with the same properties as this one. Mothers and daughters will not be linked.

◆ createNewParticle() [1/2]

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

Create a new particle of type TauolaHepMCParticle, 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 TauolaHepMCParticle can be created without the method having explicit knowledge of the TauolaHepMCParticle class

Implements TauolaParticle.

Definition at line 297 of file TauolaHepMCParticle.cxx.

References getHepMC(), m_created_particles, and TauolaHepMCParticle().

◆ createNewParticle() [2/2]

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

Create a new particle of type TauolaHepMCParticle, 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 TauolaHepMCParticle can be created without the method having explicit knowledge of the TauolaHepMCParticle class

Implements TauolaParticle.

References TauolaHepMCParticle().

◆ decay() [1/2]

void decay ( )
inherited

Decay the particle. This calls the decay methods in the interface to (FORTRAN) tauola.

Definition at line 103 of file TauolaParticle.cxx.

References getSign(), m_pol_n, m_pol_x, m_pol_y, m_pol_z, and Tauolapp::TauolaDecay().

◆ decay() [2/2]

void decay ( )
inherited

Decay the particle. This calls the decay methods in the interface to (FORTRAN) tauola.

◆ decayEndgame() [1/2]

void decayEndgame ( )
virtual

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

Reimplemented from TauolaParticle.

Definition at line 256 of file TauolaHepMCParticle.cxx.

References m_particle, and recursiveSetPosition().

◆ decayEndgame() [2/2]

void decayEndgame ( )
virtual

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

Reimplemented from TauolaParticle.

◆ findLastSelf() [1/2]

TauolaParticle * findLastSelf ( )
inherited

Traverse the event structure and find the final version of this particle which does not have a particle of it's own type as it's daughter. eg. Generally the final stable copy

Definition at line 78 of file TauolaParticle.cxx.

References getDaughters().

◆ findLastSelf() [2/2]

TauolaParticle * findLastSelf ( )
inherited

Traverse the event structure and find the final version of this particle which does not have a particle of it's own type as it's daughter. eg. Generally the final stable copy

◆ findProductionMothers() [1/2]

std::vector< TauolaParticle * > findProductionMothers ( )
inherited

Traverse the event structure and find the first set of mothers which are not of the same type as this particle.

Definition at line 91 of file TauolaParticle.cxx.

References getMothers().

◆ findProductionMothers() [2/2]

std::vector< TauolaParticle * > findProductionMothers ( )
inherited

Traverse the event structure and find the first set of mothers which are not of the same type as this particle.

◆ getAngle() [1/2]

double getAngle ( TauolaParticle * other_particle)
inherited

Get the angle between this particle and another particle

Definition at line 29 of file TauolaParticle.cxx.

References getPx(), getPy(), and getPz().

◆ getAngle() [2/2]

double getAngle ( TauolaParticle * )
inherited

Get the angle between this particle and another particle

◆ getBarcode() [1/2]

int getBarcode ( )
virtual

Get the barcode of this particle

Implements TauolaParticle.

Definition at line 251 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getBarcode() [2/2]

int getBarcode ( )
virtual

Get the barcode of this particle

Implements TauolaParticle.

◆ getDaughters() [1/2]

std::vector< TauolaParticle * > getDaughters ( )
virtual

Returns the daughters of this particle via a vector of TauolaParticle

Implements TauolaParticle.

Definition at line 176 of file TauolaHepMCParticle.cxx.

References m_daughters, m_particle, and TauolaHepMCParticle().

◆ getDaughters() [2/2]

std::vector< TauolaParticle * > getDaughters ( )
virtual

Returns the daughters of this particle via a vector of TauolaParticle

Implements TauolaParticle.

◆ getE() [1/2]

double getE ( )
virtual

Returns the energy component of the four vector

Implements TauolaParticle.

Definition at line 333 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getE() [2/2]

double getE ( )
virtual

Returns the energy component of the four vector

Implements TauolaParticle.

◆ getHepMC() [1/2]

HepMC::GenParticle * getHepMC ( )

Returns the HepMC::GenParticle

Definition at line 46 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getHepMC() [2/2]

HepMC::GenParticle * getHepMC ( )

Returns the HepMC::GenParticle

◆ getMass() [1/2]

double getMass ( )
inherited

Get the invariant mass from the four momentum

Definition at line 329 of file TauolaParticle.cxx.

References getE(), and getP().

◆ getMass() [2/2]

double getMass ( )
inherited

Get the invariant mass from the four momentum

◆ getMothers() [1/2]

std::vector< TauolaParticle * > getMothers ( )
virtual

Returns the mothers of this particle via a vector of TauolaParticle

Implements TauolaParticle.

Definition at line 160 of file TauolaHepMCParticle.cxx.

References m_mothers, m_particle, and TauolaHepMCParticle().

◆ getMothers() [2/2]

std::vector< TauolaParticle * > getMothers ( )
virtual

Returns the mothers of this particle via a vector of TauolaParticle

Implements TauolaParticle.

◆ getP() [1/4]

double getP ( )
inherited

Get scalar momentum

Definition at line 339 of file TauolaParticle.cxx.

References getPx(), getPy(), and getPz().

◆ getP() [2/4]

double getP ( )
inherited

Get scalar momentum

◆ getP() [3/4]

double getP ( int axis)
inherited

Get momentum component in the direction of "axis" (x,y,z)

Definition at line 343 of file TauolaParticle.cxx.

References getPx(), getPy(), getPz(), X_AXIS, Y_AXIS, and Z_AXIS.

◆ getP() [4/4]

double getP ( int axis)
inherited

Get momentum component in the direction of "axis" (x,y,z)

◆ getPdgID() [1/2]

int getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements TauolaParticle.

Definition at line 243 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getPdgID() [2/2]

int getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements TauolaParticle.

◆ getPolarimetricX() [1/2]

double getPolarimetricX ( )
inherited

Get the polarimetric vector of this particle in the direction X. (Only relevant for tau particles).

Definition at line 8 of file TauolaParticle.cxx.

References m_pol_x.

◆ getPolarimetricX() [2/2]

double getPolarimetricX ( )
inherited

Get the polarimetric vector of this particle in the direction X. (Only relevant for tau particles).

◆ getPolarimetricY() [1/2]

double getPolarimetricY ( )
inherited

Get the polarimetric vector of this particle in the direction Y. (Only relevant for tau particles).

Definition at line 12 of file TauolaParticle.cxx.

References m_pol_y.

◆ getPolarimetricY() [2/2]

double getPolarimetricY ( )
inherited

Get the polarimetric vector of this particle in the direction Y. (Only relevant for tau particles).

◆ getPolarimetricZ() [1/2]

double getPolarimetricZ ( )
inherited

Get the polarimetric vector of this particle in the direction Z. (Only relevant for tau particles).

Definition at line 16 of file TauolaParticle.cxx.

References m_pol_z.

◆ getPolarimetricZ() [2/2]

double getPolarimetricZ ( )
inherited

Get the polarimetric vector of this particle in the direction Z. (Only relevant for tau particles).

◆ getPx() [1/2]

double getPx ( )
inlinevirtual

Returns the px component of the four vector

Implements TauolaParticle.

Definition at line 321 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getPx() [2/2]

double getPx ( )
virtual

Returns the px component of the four vector

Implements TauolaParticle.

◆ getPy() [1/2]

double getPy ( )
inlinevirtual

Returns the py component of the four vector

Implements TauolaParticle.

Definition at line 325 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getPy() [2/2]

double getPy ( )
virtual

Returns the py component of the four vector

Implements TauolaParticle.

◆ getPz() [1/2]

double getPz ( )
virtual

Returns the pz component of the four vector

Implements TauolaParticle.

Definition at line 329 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getPz() [2/2]

double getPz ( )
virtual

Returns the pz component of the four vector

Implements TauolaParticle.

◆ getRotationAngle() [1/2]

double getRotationAngle ( int axis,
int second_axis = Z_AXIS )
inherited

Returns the angle around the axis "axis" needed to rotate the four momenum is such a way that the non-Z component disappears and Z>0. This is used to rotating the coordinate system into a frame with only a Z component before calling boostAlongZ().

Get the angle needed to rotate the 4 momentum vector so that the x (y) component disapears. (and the Z component is > 0)

if(getP(axis)==0){ if(getPz()>0) return 0; //no rotaion required else return M_PI; }

Definition at line 269 of file TauolaParticle.cxx.

References getP().

◆ getRotationAngle() [2/2]

double getRotationAngle ( int axis,
int second_axis = Z_AXIS )
inherited

Returns the angle around the axis "axis" needed to rotate the four momenum is such a way that the non-Z component disappears and Z>0. This is used to rotating the coordinate system into a frame with only a Z component before calling boostAlongZ().

References Z_AXIS.

◆ getSign() [1/2]

int getSign ( )
inherited

Get whether this particle has the same or opposite sign to the pdg code given to the Tauola object. (Only relevant for tau particles).

Definition at line 62 of file TauolaParticle.cxx.

References Tauola::getDecayingParticle(), getPdgID(), NA_SIGN, OPPOSITE_SIGN, and SAME_SIGN.

◆ getSign() [2/2]

int getSign ( )
inherited

Get whether this particle has the same or opposite sign to the pdg code given to the Tauola object. (Only relevant for tau particles).

◆ getStatus() [1/2]

int getStatus ( )
virtual

Get the status of this particle

Implements TauolaParticle.

Definition at line 247 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ getStatus() [2/2]

int getStatus ( )
virtual

Get the status of this particle

Implements TauolaParticle.

◆ hasDaughters() [1/2]

bool hasDaughters ( )
inherited

Return whether the particle has any chidren

Definition at line 71 of file TauolaParticle.cxx.

References getDaughters().

◆ hasDaughters() [2/2]

bool hasDaughters ( )
inherited

Return whether the particle has any chidren

◆ print() [1/2]

void print ( )
virtual

Print some information about this particle to standard output

Implements TauolaParticle.

Definition at line 314 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ print() [2/2]

void print ( )
virtual

Print some information about this particle to standard output

Implements TauolaParticle.

◆ recursiveSetPosition() [1/2]

void recursiveSetPosition ( HepMC::GenParticle * p,
HepMC::FourVector pos )
private

Sets the position for whole decay tree starting from given particle

Definition at line 281 of file TauolaHepMCParticle.cxx.

References recursiveSetPosition().

◆ recursiveSetPosition() [2/2]

void recursiveSetPosition ( HepMC::GenParticle * p,
HepMC::FourVector pos )
private

Sets the position for whole decay tree starting from given particle

References m_created_particles, m_daughters, m_mothers, and m_particle.

◆ rotate() [1/2]

void rotate ( int axis,
double theta,
int second_axis = Z_AXIS )
inherited

rotate this particles 4-momentum by an angle phi from the axisis "axis" towards the axis "second_axis".

Rotation around an axis X or Y

Definition at line 305 of file TauolaParticle.cxx.

References getP(), and setP().

◆ rotate() [2/2]

void rotate ( int axis,
double phi,
int second_axis = Z_AXIS )
inherited

rotate this particles 4-momentum by an angle phi from the axisis "axis" towards the axis "second_axis".

References Z_AXIS.

◆ rotateDaughters()

void rotateDaughters ( int axis,
double phi,
int second_axis = Z_AXIS )
inherited

Definition at line 313 of file TauolaParticle.cxx.

◆ setDaughters() [1/2]

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

Set the daughters of this particle via a vector of TauolaParticle

Implements TauolaParticle.

Definition at line 119 of file TauolaHepMCParticle.cxx.

References Log::Fatal(), m_particle, and TauolaHepMCParticle().

◆ setDaughters() [2/2]

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

Set the daughters of this particle via a vector of TauolaParticle

Implements TauolaParticle.

◆ setE() [1/2]

void setE ( double e)
virtual

Set the energy component of the four vector

Implements TauolaParticle.

Definition at line 359 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setE() [2/2]

void setE ( double e)
virtual

Set the energy component of the four vector

Implements TauolaParticle.

◆ setMass() [1/2]

void setMass ( double mass)
virtual

Set the mass of this particle

Implements TauolaParticle.

Definition at line 234 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setMass() [2/2]

void setMass ( double mass)
virtual

Set the mass of this particle

Implements TauolaParticle.

◆ setMothers() [1/2]

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

Set the mothers of this particle via a vector of TauolaParticle

Implements TauolaParticle.

Definition at line 74 of file TauolaHepMCParticle.cxx.

References TauolaParticle::DECAYED, Log::Fatal(), m_particle, TauolaParticle::STABLE, and TauolaHepMCParticle().

◆ setMothers() [2/2]

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

Set the mothers of this particle via a vector of TauolaParticle

Implements TauolaParticle.

◆ setP() [1/2]

void setP ( int axis,
double p_component )
inherited

Set momentum component in the direction of "axis" (x,y,z)

Definition at line 356 of file TauolaParticle.cxx.

References setPx(), setPy(), setPz(), X_AXIS, Y_AXIS, and Z_AXIS.

◆ setP() [2/2]

void setP ( int axis,
double p_component )
inherited

Set momentum component in the direction of "axis" (x,y,z)

◆ setPdgID() [1/2]

void setPdgID ( int pdg_id)
virtual

Set the PDG ID code of this particle

Implements TauolaParticle.

Definition at line 230 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setPdgID() [2/2]

void setPdgID ( int pdg_id)
virtual

Set the PDG ID code of this particle

Implements TauolaParticle.

◆ setPx() [1/2]

void setPx ( double px)
virtual

Set the px component of the four vector

Implements TauolaParticle.

Definition at line 337 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setPx() [2/2]

void setPx ( double px)
virtual

Set the px component of the four vector

Implements TauolaParticle.

◆ setPy() [1/2]

void setPy ( double py)
virtual

Set the px component of the four vector

Implements TauolaParticle.

Definition at line 346 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setPy() [2/2]

void setPy ( double py)
virtual

Set the px component of the four vector

Implements TauolaParticle.

◆ setPz() [1/2]

void setPz ( double pz)
virtual

Set the pz component of the four vector

Implements TauolaParticle.

Definition at line 353 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setPz() [2/2]

void setPz ( double pz)
virtual

Set the pz component of the four vector

Implements TauolaParticle.

◆ setStatus() [1/2]

void setStatus ( int statu)
virtual

Set the status of this particle

Implements TauolaParticle.

Definition at line 239 of file TauolaHepMCParticle.cxx.

References m_particle.

◆ setStatus() [2/2]

void setStatus ( int statu)
virtual

Set the status of this particle

Implements TauolaParticle.

◆ subtract() [1/2]

void subtract ( TauolaParticle * other_particle)
inherited

Subtract the 4 momentum of another particle from this particle

Definition at line 53 of file TauolaParticle.cxx.

References getE(), getPx(), getPy(), getPz(), setE(), setMass(), setPx(), setPy(), and setPz().

◆ subtract() [2/2]

void subtract ( TauolaParticle * )
inherited

Subtract the 4 momentum of another particle from this particle

◆ undecay() [1/2]

void undecay ( )
virtual

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

Reimplemented from TauolaParticle.

Definition at line 50 of file TauolaHepMCParticle.cxx.

References getDaughters(), m_daughters, m_particle, and TauolaParticle::STABLE.

◆ undecay() [2/2]

void undecay ( )
virtual

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

Reimplemented from TauolaParticle.

Field Documentation

◆ ANTIDOWN

const int ANTIDOWN = -1
staticinherited

anti-down quark

Definition at line 142 of file include/Tauola/TauolaParticle.h.

◆ ANTIUP

const int ANTIUP = -2
staticinherited

anti-up quark

Definition at line 136 of file include/Tauola/TauolaParticle.h.

◆ BOTTOM

const int BOTTOM = 5
staticinherited

Definition at line 148 of file include/Tauola/TauolaParticle.h.

◆ CHARM

const int CHARM = 4
staticinherited

Definition at line 145 of file include/Tauola/TauolaParticle.h.

◆ DECAYED

const int DECAYED =2
staticinherited

Decayed particle status

Definition at line 55 of file include/Tauola/TauolaParticle.h.

◆ DOWN

const int DOWN = 1
staticinherited

down quark

Definition at line 139 of file include/Tauola/TauolaParticle.h.

◆ ELECTRON

const int ELECTRON = 11
staticinherited

e- particle

Definition at line 124 of file include/Tauola/TauolaParticle.h.

◆ ELECTRON_ANTINEUTRINO

const int ELECTRON_ANTINEUTRINO = -12
staticinherited

e antineutrino particle

Definition at line 130 of file include/Tauola/TauolaParticle.h.

◆ ELECTRON_NEUTRINO

const int ELECTRON_NEUTRINO = 12
staticinherited

e neutrino particle

Definition at line 127 of file include/Tauola/TauolaParticle.h.

◆ GAMMA

const int GAMMA = 22
staticinherited

photon

Definition at line 92 of file include/Tauola/TauolaParticle.h.

◆ GLUON

const int GLUON = 21
staticinherited

Definition at line 144 of file include/Tauola/TauolaParticle.h.

◆ HIGGS

const int HIGGS = 25
staticinherited

H particle

Definition at line 73 of file include/Tauola/TauolaParticle.h.

◆ HIGGS_A

const int HIGGS_A = 36
staticinherited

A0 particle

Definition at line 76 of file include/Tauola/TauolaParticle.h.

◆ HIGGS_MINUS

const int HIGGS_MINUS = -37
staticinherited

H- particle

Definition at line 82 of file include/Tauola/TauolaParticle.h.

◆ HIGGS_PLUS

const int HIGGS_PLUS = 37
staticinherited

H+ particle

Definition at line 79 of file include/Tauola/TauolaParticle.h.

◆ HISTORY

const int HISTORY =3
staticinherited

History particle status

Definition at line 58 of file include/Tauola/TauolaParticle.h.

◆ 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 150 of file include/Tauola/TauolaHepMCParticle.h.

◆ m_daughters

std::vector< TauolaParticle * > m_daughters
private

A list of daughters

Definition at line 146 of file include/Tauola/TauolaHepMCParticle.h.

◆ m_mothers

std::vector< TauolaParticle * > m_mothers
private

A list of mothers

Definition at line 143 of file include/Tauola/TauolaHepMCParticle.h.

◆ m_particle

HepMC::GenParticle * m_particle
private

A pointer to the HepMC::GenParticle particle

Definition at line 140 of file include/Tauola/TauolaHepMCParticle.h.

◆ m_pol_n

double m_pol_n
privateinherited

Fourth component of the polarimetric vector. Should be the normalisation (1). (Only relevant for tau particles).

Definition at line 348 of file include/Tauola/TauolaParticle.h.

◆ m_pol_x

double m_pol_x
privateinherited

The polarimetric vector of this particle in the direction X. (Only relevant for tau particles).

Definition at line 336 of file include/Tauola/TauolaParticle.h.

◆ m_pol_y

double m_pol_y
privateinherited

The polarimetric vector of this particle in the direction Y. (Only relevant for tau particles).

Definition at line 340 of file include/Tauola/TauolaParticle.h.

◆ m_pol_z

double m_pol_z
privateinherited

The polarimetric vector of this particle in the direction Z. (Only relevant for tau particles).

Definition at line 344 of file include/Tauola/TauolaParticle.h.

◆ MUON_ANTINEUTRINO

const int MUON_ANTINEUTRINO = -14
staticinherited

muon antineutrino particle

Definition at line 117 of file include/Tauola/TauolaParticle.h.

◆ MUON_MINUS

const int MUON_MINUS = 13
staticinherited

muon- particle

Definition at line 111 of file include/Tauola/TauolaParticle.h.

◆ MUON_NEUTRINO

const int MUON_NEUTRINO = 14
staticinherited

muon neutrino particle

Definition at line 114 of file include/Tauola/TauolaParticle.h.

◆ MUON_PLUS

const int MUON_PLUS = -13
staticinherited

muon+ particle

Definition at line 108 of file include/Tauola/TauolaParticle.h.

◆ NA_SIGN

const int NA_SIGN =3
staticinherited

Sign type is not applicable for this particle (probably it's not a tau).

Definition at line 49 of file include/Tauola/TauolaParticle.h.

◆ OPPOSITE_SIGN

const int OPPOSITE_SIGN =2
staticinherited

The opposite sign to decaying particle pdg ID code given to Tauola object (only meaningful for taus).

Definition at line 45 of file include/Tauola/TauolaParticle.h.

◆ OTHER

const int OTHER = 0
staticinherited

All other particle types

Definition at line 151 of file include/Tauola/TauolaParticle.h.

◆ POSITRON

const int POSITRON = -11
staticinherited

e+ particle

Definition at line 121 of file include/Tauola/TauolaParticle.h.

◆ SAME_SIGN

const int SAME_SIGN =1
staticinherited

The same sign as decaying particle pdg ID code given to Tauola object (only meaningful for taus).

Definition at line 41 of file include/Tauola/TauolaParticle.h.

◆ STABLE

const int STABLE =1
staticinherited

Stable particle status

Definition at line 52 of file include/Tauola/TauolaParticle.h.

◆ STRANGE

const int STRANGE = 3
staticinherited

Definition at line 147 of file include/Tauola/TauolaParticle.h.

◆ TAU_ANTINEUTRINO

const int TAU_ANTINEUTRINO = -16
staticinherited

tau antineutrino particle

Definition at line 104 of file include/Tauola/TauolaParticle.h.

◆ TAU_MINUS

const int TAU_MINUS = 15
staticinherited

tau- particle

Definition at line 98 of file include/Tauola/TauolaParticle.h.

◆ TAU_NEUTRINO

const int TAU_NEUTRINO = 16
staticinherited

tau neutrino particle

Definition at line 101 of file include/Tauola/TauolaParticle.h.

◆ TAU_PLUS

const int TAU_PLUS = -15
staticinherited

tau+ particle

Definition at line 95 of file include/Tauola/TauolaParticle.h.

◆ TOP

const int TOP = 6
staticinherited

Definition at line 146 of file include/Tauola/TauolaParticle.h.

◆ UP

const int UP = 2
staticinherited

up quark

Definition at line 133 of file include/Tauola/TauolaParticle.h.

◆ W_MINUS

const int W_MINUS = -24
staticinherited

W- particle

Definition at line 89 of file include/Tauola/TauolaParticle.h.

◆ W_PLUS

const int W_PLUS = 24
staticinherited

W+ particle

Definition at line 86 of file include/Tauola/TauolaParticle.h.

◆ X_AXIS

const int X_AXIS =1
staticinherited

X Axis

Definition at line 61 of file include/Tauola/TauolaParticle.h.

◆ Y_AXIS

const int Y_AXIS =2
staticinherited

Y Axis

Definition at line 64 of file include/Tauola/TauolaParticle.h.

◆ Z0

const int Z0 = 23
staticinherited

Z0 particle

Definition at line 70 of file include/Tauola/TauolaParticle.h.

◆ Z_AXIS

const int Z_AXIS =3
staticinherited

Z Axis

Definition at line 67 of file include/Tauola/TauolaParticle.h.


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