/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Types | Public Member Functions | Private Attributes
HepMC::TempParticleMap Class Reference

TempParticleMap is a temporary GenParticle* container used during input. 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

TempParticleMap is a temporary GenParticle* container used during input.

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

Definition at line 26 of file TempParticleMap.h.

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.

{}

Member Function Documentation

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

Definition at line 36 of file TempParticleMap.h.

{ return m_particle_to_end_vertex.begin(); }
TempMapIterator HepMC::TempParticleMap::end ( ) [inline]

Definition at line 37 of file TempParticleMap.h.

{ return m_particle_to_end_vertex.end(); }
orderIterator HepMC::TempParticleMap::order_begin ( ) [inline]

Definition at line 38 of file TempParticleMap.h.

{ return m_particle_order.begin(); }
orderIterator HepMC::TempParticleMap::order_end ( ) [inline]

Definition at line 39 of file TempParticleMap.h.

{ return m_particle_order.end(); }
int HepMC::TempParticleMap::end_vertex ( GenParticle p) [inline]

Definition at line 50 of file TempParticleMap.h.

    { 
        //return m_particle_to_end_vertex[p]->second; 
        TempMapIterator it = m_particle_to_end_vertex.find(p);
        if( it == end() ) return 0;
        return m_particle_to_end_vertex[p];
    }
void HepMC::TempParticleMap::addEndParticle ( GenParticle p,
int &  end_vtx_code 
) [inline]

Definition at line 58 of file TempParticleMap.h.

    {
        m_particle_order[p->barcode()] = p;
        m_particle_to_end_vertex[p] = end_vtx_code;
    }

Member Data Documentation

Definition at line 46 of file TempParticleMap.h.

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 Fri May 16 2014 09:49:37 for HepMC by doxygen 1.7.4