StRoot
1
|
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 () |
TauolaHepMCParticle * | createNewParticle (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 () |
TauolaHepMCParticle * | createNewParticle (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 | |
TauolaParticle * | clone () |
double | getAngle (TauolaParticle *) |
void | add (TauolaParticle *) |
void | subtract (TauolaParticle *) |
void | decay () |
void | addDecayToEventRecord () |
int | getSign () |
double | getPolarimetricX () |
double | getPolarimetricY () |
double | getPolarimetricZ () |
bool | hasDaughters () |
TauolaParticle * | findLastSelf () |
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 () |
TauolaParticle * | clone () |
double | getAngle (TauolaParticle *) |
void | add (TauolaParticle *) |
void | subtract (TauolaParticle *) |
void | decay () |
void | addDecayToEventRecord () |
int | getSign () |
double | getPolarimetricX () |
double | getPolarimetricY () |
double | getPolarimetricZ () |
bool | hasDaughters () |
TauolaParticle * | findLastSelf () |
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 |
Definition at line 35 of file TauolaHepMCParticle.h.
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.
|
virtual |
Check that the 4 momentum in conserved at the vertices producing and ending this particle
Reimplemented from Tauolapp::TauolaParticle.
Definition at line 192 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::end_vertex(), HepMC::GenVertex::particles_in_const_begin(), HepMC::GenVertex::particles_in_const_end(), HepMC::GenVertex::particles_out_const_begin(), HepMC::GenVertex::particles_out_const_end(), HepMC::GenVertex::print(), Tauolapp::Log::RedirectOutput(), and Tauolapp::Log::RevertOutput().
|
virtual |
Check that the 4 momentum in conserved at the vertices producing and ending this particle
Reimplemented from Tauolapp::TauolaParticle.
|
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.
|
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().
|
virtual |
Overriding of TauolaParticle decayEndgame method. Converts the momentum and length units and sets the vector (X,T) position
Reimplemented from Tauolapp::TauolaParticle.
|
virtual |
Overriding of TauolaParticle decayEndgame method. Converts the momentum and length units and sets the vector (X,T) position
Reimplemented from Tauolapp::TauolaParticle.
Definition at line 256 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::end_vertex(), HepMC::GenParticle::momentum(), HepMC::GenVertex::position(), HepMC::GenParticle::production_vertex(), HepMC::GenVertex::set_position(), HepMC::FourVector::t(), HepMC::FourVector::x(), HepMC::FourVector::y(), and HepMC::FourVector::z().
|
virtual |
Get the barcode of this particle
Implements Tauolapp::TauolaParticle.
|
virtual |
Get the barcode of this particle
Implements Tauolapp::TauolaParticle.
Definition at line 251 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::barcode().
|
virtual |
Returns the daughters of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
Definition at line 176 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::end_vertex(), HepMC::GenVertex::particles_out_const_begin(), HepMC::GenVertex::particles_out_const_end(), and TauolaHepMCParticle().
Referenced by undecay().
|
virtual |
Returns the daughters of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
|
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().
|
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().
|
virtual |
Returns the mothers of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
Definition at line 160 of file TauolaHepMCParticle.cxx.
References HepMC::GenVertex::particles_in_const_begin(), HepMC::GenVertex::particles_in_const_end(), HepMC::GenParticle::production_vertex(), and TauolaHepMCParticle().
|
virtual |
Returns the mothers of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
|
virtual |
Get the PDG ID code of this particle
Implements Tauolapp::TauolaParticle.
|
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().
|
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().
|
virtual |
Returns the px component of the four vector
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Returns the py component of the four vector
Implements Tauolapp::TauolaParticle.
|
virtual |
Returns the pz component of the four vector
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Get the status of this particle
Implements Tauolapp::TauolaParticle.
|
virtual |
Get the status of this particle
Implements Tauolapp::TauolaParticle.
Definition at line 247 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::status().
|
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().
|
virtual |
Print some information about this particle to standard output
Implements Tauolapp::TauolaParticle.
|
virtual |
Set the daughters of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
Definition at line 119 of file TauolaHepMCParticle.cxx.
References HepMC::GenVertex::add_particle_in(), HepMC::GenVertex::add_particle_out(), HepMC::GenEvent::add_vertex(), Tauolapp::Log::Fatal(), getHepMC(), HepMC::GenParticle::parent_event(), and HepMC::GenParticle::production_vertex().
|
virtual |
Set the daughters of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Set the energy component of the four vector
Implements Tauolapp::TauolaParticle.
|
virtual |
Set the mass of this particle
Implements Tauolapp::TauolaParticle.
|
virtual |
Set the mass of this particle
Implements Tauolapp::TauolaParticle.
Definition at line 234 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::set_generated_mass().
|
virtual |
Set the mothers of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
Definition at line 74 of file TauolaHepMCParticle.cxx.
References HepMC::GenVertex::add_particle_in(), HepMC::GenVertex::add_particle_out(), HepMC::GenEvent::add_vertex(), Tauolapp::TauolaParticle::DECAYED, HepMC::GenParticle::end_vertex(), Tauolapp::Log::Fatal(), getHepMC(), HepMC::GenParticle::parent_event(), HepMC::GenVertex::position(), HepMC::GenParticle::production_vertex(), HepMC::GenVertex::set_position(), HepMC::GenParticle::set_status(), Tauolapp::TauolaParticle::STABLE, and HepMC::GenParticle::status().
|
virtual |
Set the mothers of this particle via a vector of TauolaParticle
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Set the PDG ID code of this particle
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Set the px component of the four vector
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Set the px component of the four vector
Implements Tauolapp::TauolaParticle.
|
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().
|
virtual |
Set the pz component of the four vector
Implements Tauolapp::TauolaParticle.
|
virtual |
Set the status of this particle
Implements Tauolapp::TauolaParticle.
|
virtual |
Set the status of this particle
Implements Tauolapp::TauolaParticle.
Definition at line 239 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::set_status().
|
virtual |
Remove the decay branch from the event record and reset the particle status code to stable.
Reimplemented from Tauolapp::TauolaParticle.
Definition at line 50 of file TauolaHepMCParticle.cxx.
References HepMC::GenParticle::end_vertex(), getDaughters(), HepMC::GenVertex::particles_out_const_begin(), HepMC::GenVertex::particles_out_size(), HepMC::GenVertex::remove_particle(), HepMC::GenParticle::set_status(), and Tauolapp::TauolaParticle::STABLE.
|
virtual |
Remove the decay branch from the event record and reset the particle status code to stable.
Reimplemented from Tauolapp::TauolaParticle.