9 vector<TauolaParticle*> DecayList::m_particle_list;
11 int DecayList::getAbsoluteIndex(
int index){
12 return getAbsoluteIndex(index, m_particle_list.size()+1);
15 int DecayList::getAbsoluteIndex(
int index,
16 int neg_index_relative_to){
22 absIndex = index + neg_index_relative_to;
24 if(absIndex < 1 || absIndex > (
int)m_particle_list.size()+1){
25 Log::Error()<<
"Index outside range: "<< absIndex <<
". Range: 1 to "
26 << m_particle_list.size()+1 << endl;
35 for(
int i=0; i < (int) m_particle_list.size(); i++){
36 if(m_particle_list.at(i)==particle)
39 Log::Warning()<<
"Could not find particle in particle_list" << endl;
44 return m_particle_list.at(index-1);
50 if(index > (
int) m_particle_list.size())
52 addToEnd(new_particle);
58 m_particle_list.at(index - 1) = new_particle;
72 m_particle_list.push_back(new_particle);
75 void DecayList::print(){
76 for(
int index=0; index < (int) m_particle_list.size(); index++){
77 Log::Info()<<
"Index: "<< index+1<<
" Object: "<< m_particle_list.at(index)<<endl;
81 void DecayList::clear(){
82 m_particle_list.
clear();
void clear()
Clear/delete all parameters held by this container.