| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

HepMC::TempParticleMap Class Reference

Used by IO classes for recoverable particle ordering. More...

#include <TempParticleMap.h>

List of all members.


Public Types

typedef std::map< HepMC::GenParticle *,
int > 
TempMap
typedef std::map< int, HepMC::GenParticle * > TempOrderMap
typedef TempMap::iterator TempMapIterator
typedef TempOrderMap::iterator orderIterator

Public Member Functions

 TempParticleMap ()
 ~TempParticleMap ()
TempMapIterator begin ()
TempMapIterator end ()
orderIterator order_begin ()
orderIterator order_end ()
int end_vertex (GenParticle *)
void addEndParticle (GenParticle *, int &)

Private Attributes

TempMap m_particle_to_end_vertex
TempOrderMap m_particle_order

Detailed Description

Used by IO classes for recoverable particle ordering.

Map GenParticle* against both outgoing vertex and particle order.

Definition at line 24 of file TempParticleMap.h.


Member Typedef Documentation

typedef std::map<HepMC::GenParticle*,int> HepMC::TempParticleMap::TempMap

Definition at line 26 of file TempParticleMap.h.

typedef std::map<int,HepMC::GenParticle*> HepMC::TempParticleMap::TempOrderMap

Definition at line 27 of file TempParticleMap.h.

typedef TempMap::iterator HepMC::TempParticleMap::TempMapIterator

Definition at line 28 of file TempParticleMap.h.

typedef TempOrderMap::iterator HepMC::TempParticleMap::orderIterator

Definition at line 29 of file TempParticleMap.h.


Constructor & Destructor Documentation

HepMC::TempParticleMap::TempParticleMap (  )  [inline]

Definition at line 31 of file TempParticleMap.h.

HepMC::TempParticleMap::~TempParticleMap (  )  [inline]

Definition at line 34 of file TempParticleMap.h.

00034 {}


Member Function Documentation

TempMapIterator HepMC::TempParticleMap::begin (  )  [inline]

Definition at line 36 of file TempParticleMap.h.

00036 { return m_particle_to_end_vertex.begin(); }

TempMapIterator HepMC::TempParticleMap::end (  )  [inline]

Definition at line 37 of file TempParticleMap.h.

00037 { return m_particle_to_end_vertex.end(); }

orderIterator HepMC::TempParticleMap::order_begin (  )  [inline]

Definition at line 38 of file TempParticleMap.h.

00038 { return m_particle_order.begin(); }

orderIterator HepMC::TempParticleMap::order_end (  )  [inline]

Definition at line 39 of file TempParticleMap.h.

00039 { return m_particle_order.end(); }

int HepMC::TempParticleMap::end_vertex ( GenParticle  )  [inline]

Definition at line 50 of file TempParticleMap.h.

00051     { 
00052         //return m_particle_to_end_vertex[p]->second; 
00053         TempMapIterator it = m_particle_to_end_vertex.find(p);
00054         if( it == end() ) return 0;
00055         return m_particle_to_end_vertex[p];
00056     }

void HepMC::TempParticleMap::addEndParticle ( GenParticle ,
int &   
) [inline]

Definition at line 58 of file TempParticleMap.h.

00059     {
00060         m_particle_order[p->barcode()] = p;
00061         m_particle_to_end_vertex[p] = end_vtx_code;
00062     }


Member Data Documentation

TempMap HepMC::TempParticleMap::m_particle_to_end_vertex [private]

Definition at line 46 of file TempParticleMap.h.

TempOrderMap HepMC::TempParticleMap::m_particle_order [private]

Definition at line 47 of file TempParticleMap.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:56:45 2011 for HepMC by doxygen 1.4.7