Public Member Functions | |
TauolaHepMCEvent (HepMC::GenEvent *event) | |
HepMC::GenEvent * | getEvent () |
std::vector< TauolaParticle * > | findParticles (int pdgID) |
std::vector< TauolaParticle * > | findStableParticles (int pdgID) |
void | eventEndgame () |
std::vector< TauolaParticle * > | findPairs () |
void | decayTaus () |
void | undecayTaus () |
Private Attributes | |
HepMC::GenEvent * | m_event |
std::vector< TauolaParticle * > | m_tau_list |
string | m_momentum_unit |
string | m_length_unit |
Definition at line 32 of file TauolaHepMCEvent.h.
TauolaHepMCEvent | ( | HepMC::GenEvent * | event | ) |
Constructor which keeps a pointer to the HepMC::GenEvent
Definition at line 9 of file TauolaHepMCEvent.cxx.
References TauolaHepMCEvent::m_event, TauolaHepMCEvent::m_length_unit, and TauolaHepMCEvent::m_momentum_unit.
void decayTaus | ( | ) | [inherited] |
Decay taus in this event.
Definition at line 19 of file TauolaEvent.cxx.
References TauolaParticlePair::checkMomentumConservation(), TauolaParticlePair::decayTauPair(), TauolaEvent::eventEndgame(), TauolaEvent::findStableParticles(), and Tauola::getDecayingParticle().
void eventEndgame | ( | ) | [virtual] |
Overriding of TauolaEvent decayEndgame method. Converts the momentum and length units
Reimplemented from TauolaEvent.
Definition at line 92 of file TauolaHepMCEvent.cxx.
References TauolaHepMCEvent::m_event, TauolaHepMCEvent::m_length_unit, TauolaHepMCEvent::m_momentum_unit, and Tauola::momentumUnit.
std::vector<TauolaParticle*> findPairs | ( | ) | [inherited] |
create TauolaParticlePairs
std::vector< TauolaParticle * > findParticles | ( | int | pdgID | ) | [virtual] |
Implementation of TauolaEvent virtual method. This returns a list of particles in the event with pdg id = "pdgID".
Implements TauolaEvent.
Definition at line 41 of file TauolaHepMCEvent.cxx.
References TauolaHepMCEvent::m_event, and TauolaHepMCEvent::m_tau_list.
std::vector< TauolaParticle * > findStableParticles | ( | int | pdgID | ) | [virtual] |
Implementation of TauolaEven virtual method. This returns a list of particles in the event with pdg id = "pdgID" and stable status code.
HepMC::GenEvent::particle_const_iterator part_itr = m_event->particles_begin(); loop over all particle in the event looking for taus (or other) for( ; part_itr!=m_event->particles_end(); part_itr++){ if(fabs((*part_itr)->pdg_id())==pdg_id){ if((*part_itr)->end_vertex()){ cout << "WARNING: Particle with pdg code " << (*part_itr)->pdg_id() << " has end vertex" <<endl; } else list.push_back(new TauolaHepMCParticle(*part_itr)); } }
Implements TauolaEvent.
Definition at line 55 of file TauolaHepMCEvent.cxx.
References TauolaHepMCEvent::findParticles().
HepMC::GenEvent * getEvent | ( | ) |
Returns the HepMC::GenEvent
Definition at line 37 of file TauolaHepMCEvent.cxx.
References TauolaHepMCEvent::m_event.
void undecayTaus | ( | ) | [inherited] |
Undecay taus in this event but removing their daughters and returning the status cods to 1.
Definition at line 9 of file TauolaEvent.cxx.
References TauolaEvent::findParticles(), and Tauola::getDecayingParticle().
HepMC::GenEvent* m_event [private] |
The event
Definition at line 61 of file TauolaHepMCEvent.h.
string m_length_unit [private] |
Length unit name
Definition at line 67 of file TauolaHepMCEvent.h.
string m_momentum_unit [private] |
Momentum unit name
Definition at line 65 of file TauolaHepMCEvent.h.
std::vector<TauolaParticle*> m_tau_list [private] |
List of particles to be decayed
Definition at line 63 of file TauolaHepMCEvent.h.