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

Public Member Functions

 TauolaHepMCEvent (HepMC::GenEvent *event)
 
HepMC::GenEventgetEvent ()
 
std::vector< TauolaParticle * > findParticles (int pdgID)
 
std::vector< TauolaParticle * > findStableParticles (int pdgID)
 
void eventEndgame ()
 
 TauolaHepMCEvent (HepMC::GenEvent *event)
 
HepMC::GenEventgetEvent ()
 
std::vector< TauolaParticle * > findParticles (int pdgID)
 
std::vector< TauolaParticle * > findStableParticles (int pdgID)
 
void eventEndgame ()
 
- Public Member Functions inherited from Tauolapp::TauolaEvent
std::vector< TauolaParticle * > findPairs ()
 
void decayTaus ()
 
void undecayTaus ()
 
std::vector< TauolaParticle * > findPairs ()
 
void decayTaus ()
 
void undecayTaus ()
 

Detailed Description

Definition at line 32 of file TauolaHepMCEvent.h.

Constructor & Destructor Documentation

TauolaHepMCEvent::TauolaHepMCEvent ( HepMC::GenEvent event)

Constructor which keeps a pointer to the HepMC::GenEvent

Definition at line 9 of file TauolaHepMCEvent.cxx.

References HepMC::GenEvent::use_units().

Tauolapp::TauolaHepMCEvent::TauolaHepMCEvent ( HepMC::GenEvent event)

Constructor which keeps a pointer to the HepMC::GenEvent

Member Function Documentation

void TauolaHepMCEvent::eventEndgame ( )
virtual

Overriding of TauolaEvent decayEndgame method. Converts the momentum and length units

Reimplemented from Tauolapp::TauolaEvent.

Definition at line 92 of file TauolaHepMCEvent.cxx.

void Tauolapp::TauolaHepMCEvent::eventEndgame ( )
virtual

Overriding of TauolaEvent decayEndgame method. Converts the momentum and length units

Reimplemented from Tauolapp::TauolaEvent.

std::vector< TauolaParticle * > TauolaHepMCEvent::findParticles ( int  pdgID)
virtual

Implementation of TauolaEvent virtual method. This returns a list of particles in the event with pdg id = "pdgID".

Implements Tauolapp::TauolaEvent.

Definition at line 41 of file TauolaHepMCEvent.cxx.

std::vector<TauolaParticle*> Tauolapp::TauolaHepMCEvent::findParticles ( int  pdgID)
virtual

Implementation of TauolaEvent virtual method. This returns a list of particles in the event with pdg id = "pdgID".

Implements Tauolapp::TauolaEvent.

std::vector<TauolaParticle*> Tauolapp::TauolaHepMCEvent::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.

Implements Tauolapp::TauolaEvent.

std::vector< TauolaParticle * > TauolaHepMCEvent::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 Tauolapp::TauolaEvent.

Definition at line 55 of file TauolaHepMCEvent.cxx.

HepMC::GenEvent * TauolaHepMCEvent::getEvent ( )

Returns the HepMC::GenEvent

Definition at line 37 of file TauolaHepMCEvent.cxx.

HepMC::GenEvent* Tauolapp::TauolaHepMCEvent::getEvent ( )

Returns the HepMC::GenEvent


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