StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
Tauolapp::TauolaHepMCParticle Class Reference
Inheritance diagram for Tauolapp::TauolaHepMCParticle:
Tauolapp::TauolaParticle Tauolapp::TauolaParticle

Public Member Functions

 TauolaHepMCParticle ()
 
 TauolaHepMCParticle (HepMC::GenParticle *particle)
 
 TauolaHepMCParticle (int pdg_id, int status, double mass)
 
HepMC::GenParticlegetHepMC ()
 
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::GenParticlegetHepMC ()
 
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)
 
- Public Member Functions inherited from Tauolapp::TauolaParticle
TauolaParticleclone ()
 
double getAngle (TauolaParticle *)
 
void add (TauolaParticle *)
 
void subtract (TauolaParticle *)
 
void decay ()
 
void addDecayToEventRecord ()
 
int getSign ()
 
double getPolarimetricX ()
 
double getPolarimetricY ()
 
double getPolarimetricZ ()
 
bool hasDaughters ()
 
TauolaParticlefindLastSelf ()
 
std::vector< TauolaParticle * > findProductionMothers ()
 
void boostToRestFrame (TauolaParticle *boost)
 
void boostDaughtersToRestFrame (TauolaParticle *boost)
 
void boostFromRestFrame (TauolaParticle *boost)
 
void boostDaughtersFromRestFrame (TauolaParticle *boost)
 
void boostAlongZ (double pz, double e)
 
void rotate (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 getP ()
 
double getP (int axis)
 
void setP (int axis, double p_component)
 
double getMass ()
 
TauolaParticleclone ()
 
double getAngle (TauolaParticle *)
 
void add (TauolaParticle *)
 
void subtract (TauolaParticle *)
 
void decay ()
 
void addDecayToEventRecord ()
 
int getSign ()
 
double getPolarimetricX ()
 
double getPolarimetricY ()
 
double getPolarimetricZ ()
 
bool hasDaughters ()
 
TauolaParticlefindLastSelf ()
 
std::vector< TauolaParticle * > findProductionMothers ()
 
void boostToRestFrame (TauolaParticle *boost)
 
void boostDaughtersToRestFrame (TauolaParticle *boost)
 
void boostFromRestFrame (TauolaParticle *boost)
 
void boostDaughtersFromRestFrame (TauolaParticle *boost)
 
void boostAlongZ (double pz, double e)
 
void rotate (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 getP ()
 
double getP (int axis)
 
void setP (int axis, double p_component)
 
double getMass ()
 

Additional Inherited Members

- Static Public Attributes inherited from Tauolapp::TauolaParticle
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
 

Detailed Description

Definition at line 35 of file TauolaHepMCParticle.h.

Constructor & Destructor Documentation

TauolaHepMCParticle::TauolaHepMCParticle ( )

General constructor

Definition at line 7 of file TauolaHepMCParticle.cxx.

Referenced by createNewParticle(), getDaughters(), and getMothers().

TauolaHepMCParticle::TauolaHepMCParticle ( HepMC::GenParticle particle)

Constructor which keeps a pointer to the HepMC::GenParticle

Definition at line 42 of file TauolaHepMCParticle.cxx.

TauolaHepMCParticle::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 HepMC::GenParticle::set_generated_mass(), HepMC::GenParticle::set_pdg_id(), and HepMC::GenParticle::set_status().

Tauolapp::TauolaHepMCParticle::TauolaHepMCParticle ( )

General constructor

Tauolapp::TauolaHepMCParticle::TauolaHepMCParticle ( HepMC::GenParticle particle)

Constructor which keeps a pointer to the HepMC::GenParticle

Tauolapp::TauolaHepMCParticle::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

void TauolaHepMCParticle::checkMomentumConservation ( )
virtual
void Tauolapp::TauolaHepMCParticle::checkMomentumConservation ( )
virtual

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

Reimplemented from Tauolapp::TauolaParticle.

TauolaHepMCParticle* Tauolapp::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 Tauolapp::TauolaParticle.

TauolaHepMCParticle * 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 Tauolapp::TauolaParticle.

Definition at line 297 of file TauolaHepMCParticle.cxx.

References getHepMC(), HepMC::GenParticle::set_generated_mass(), HepMC::GenParticle::set_momentum(), HepMC::GenParticle::set_pdg_id(), HepMC::GenParticle::set_status(), and TauolaHepMCParticle().

void Tauolapp::TauolaHepMCParticle::decayEndgame ( )
virtual

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

Reimplemented from Tauolapp::TauolaParticle.

void TauolaHepMCParticle::decayEndgame ( )
virtual
int Tauolapp::TauolaHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Tauolapp::TauolaParticle.

int TauolaHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 251 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::barcode().

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

Returns the daughters of this particle via a vector of TauolaParticle

Implements Tauolapp::TauolaParticle.

double TauolaHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 333 of file TauolaHepMCParticle.cxx.

References HepMC::FourVector::e(), and HepMC::GenParticle::momentum().

double Tauolapp::TauolaHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Tauolapp::TauolaParticle.

HepMC::GenParticle* Tauolapp::TauolaHepMCParticle::getHepMC ( )

Returns the HepMC::GenParticle

HepMC::GenParticle * TauolaHepMCParticle::getHepMC ( )

Returns the HepMC::GenParticle

Definition at line 46 of file TauolaHepMCParticle.cxx.

Referenced by createNewParticle(), setDaughters(), and setMothers().

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

Returns the mothers of this particle via a vector of TauolaParticle

Implements Tauolapp::TauolaParticle.

int Tauolapp::TauolaHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Tauolapp::TauolaParticle.

int TauolaHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 243 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::pdg_id().

double TauolaHepMCParticle::getPx ( )
inlinevirtual

Returns the px component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 321 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::px().

double Tauolapp::TauolaHepMCParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Tauolapp::TauolaParticle.

double TauolaHepMCParticle::getPy ( )
inlinevirtual

Returns the py component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 325 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::py().

double Tauolapp::TauolaHepMCParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Tauolapp::TauolaParticle.

double Tauolapp::TauolaHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Tauolapp::TauolaParticle.

double TauolaHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 329 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::pz().

int Tauolapp::TauolaHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Tauolapp::TauolaParticle.

int TauolaHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 247 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::status().

void TauolaHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Tauolapp::TauolaParticle.

Definition at line 314 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::print().

void Tauolapp::TauolaHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Tauolapp::TauolaParticle.

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

Set the daughters of this particle via a vector of TauolaParticle

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 359 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Tauolapp::TauolaHepMCParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Tauolapp::TauolaParticle.

void Tauolapp::TauolaHepMCParticle::setMass ( double  mass)
virtual

Set the mass of this particle

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setMass ( double  mass)
virtual

Set the mass of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 234 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::set_generated_mass().

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

Set the mothers of this particle via a vector of TauolaParticle

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 230 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::set_pdg_id().

void Tauolapp::TauolaHepMCParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setPx ( double  px)
virtual

Set the px component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 337 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Tauolapp::TauolaHepMCParticle::setPx ( double  px)
virtual

Set the px component of the four vector

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setPy ( double  py)
virtual

Set the px component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 346 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Tauolapp::TauolaHepMCParticle::setPy ( double  py)
virtual

Set the px component of the four vector

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setPz ( double  pz)
virtual

Set the pz component of the four vector

Implements Tauolapp::TauolaParticle.

Definition at line 353 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Tauolapp::TauolaHepMCParticle::setPz ( double  pz)
virtual

Set the pz component of the four vector

Implements Tauolapp::TauolaParticle.

void Tauolapp::TauolaHepMCParticle::setStatus ( int  statu)
virtual

Set the status of this particle

Implements Tauolapp::TauolaParticle.

void TauolaHepMCParticle::setStatus ( int  statu)
virtual

Set the status of this particle

Implements Tauolapp::TauolaParticle.

Definition at line 239 of file TauolaHepMCParticle.cxx.

References HepMC::GenParticle::set_status().

void TauolaHepMCParticle::undecay ( )
virtual
void Tauolapp::TauolaHepMCParticle::undecay ( )
virtual

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

Reimplemented from Tauolapp::TauolaParticle.


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