DecayList Class Reference

Collaboration diagram for DecayList:
Collaboration graph
[legend]

Static Public Member Functions

static TauolaParticlegetParticle (int index)
static void updateList (TauolaParticle *new_particle, int index)
static void addToEnd (TauolaParticle *new_particle)
static void clear ()
static int getAbsoluteIndex (int index)
static int getAbsoluteIndex (int index, int neg_index_relative_to)
static int getAbsoluteIndex (TauolaParticle *particle)
static void print ()

Static Private Attributes

static vector< TauolaParticle * > m_particle_list

Detailed Description

Definition at line 37 of file DecayList.h.


Member Function Documentation

void addToEnd ( TauolaParticle new_particle  )  [static]

Adds the new particle to the end of list

Definition at line 71 of file DecayList.cxx.

References DecayList::m_particle_list.

void clear (  )  [static]

clear all entries from the list

Definition at line 81 of file DecayList.cxx.

References DecayList::m_particle_list.

int getAbsoluteIndex ( TauolaParticle particle  )  [static]

Return index (absolute) of "particle"

Definition at line 34 of file DecayList.cxx.

References DecayList::m_particle_list.

int getAbsoluteIndex ( int  index,
int  neg_index_relative_to 
) [static]

Translates index (absolute and relative) to absolute index. If a relative index is given (negative integer) it is taken relative to the parameter "neg_index_relative_to"

Definition at line 15 of file DecayList.cxx.

References Log::Fatal(), and DecayList::m_particle_list.

int getAbsoluteIndex ( int  index  )  [static]

Translates index (absolute and relative) to absolute index. If a relative index is given (negative integer) it is taken relative from the end of the list

Definition at line 11 of file DecayList.cxx.

References DecayList::m_particle_list.

TauolaParticle * getParticle ( int  index  )  [static]

Return the TauolaParticle corresponding to the index (absolute) in the list of particle

Definition at line 43 of file DecayList.cxx.

References DecayList::m_particle_list.

void print (  )  [static]

Print the contents of the list

Definition at line 75 of file DecayList.cxx.

References DecayList::m_particle_list.

void updateList ( TauolaParticle new_particle,
int  index 
) [static]

Adds the new particle into the list and delete the previous particle at the same position if it exists

if(old_particle->production_vertex()) old_particle->production_vertex()->remove_particle(old_particle); if(old_particle->end_vertex()) old_particle->end_vertex()->remove_particle(old_particle); delete old_particle;

Definition at line 47 of file DecayList.cxx.

References DecayList::addToEnd(), DecayList::getParticle(), and DecayList::m_particle_list.


Field Documentation

vector< TauolaParticle * > m_particle_list [static, private]

vector used for TauolaParticle mapping

Definition at line 74 of file DecayList.h.


The documentation for this class was generated from the following files:
Generated on Sun Oct 20 20:24:16 2013 for C++InterfacetoTauola by  doxygen 1.6.3