SIO::RunEventMap Class Reference

Map that holds positions of Run and Event records. More...

#include <SIO/RunEventMap.h>

List of all members.

Public Types

typedef std::map< RunEvent,
long64 > 
MapType
typedef MapType::iterator Map_IT
typedef MapType::const_iterator Map_cIT

Public Member Functions

void add (const RunEvent &re, long64 pos)
 Add a new entry to the event map - if the RunEvent already exists the new position will be stored.
long64 getPosition (const RunEvent &re)
 Return the position of the specified Event record or Run record respectively (if EventNum == -1 ).
long64 getPosition (long64 re)
 Same as getPosition(const RunEvent& re ).
RunEvent minRunEvent ()
RunEvent maxRunEvent ()
int getNumberOfEventRecords () const
int getNumberOfRunRecords () const
size_t size ()
Map_IT begin ()
Map_IT end ()
Map_cIT begin () const
Map_cIT end () const
bool empty () const
template<class InputIterator >
void insert (InputIterator b, InputIterator e)
void clear ()

Static Public Attributes

static const int NPos = -1

Friends

std::ostream & operator<< (std::ostream &os, const RunEventMap &rm)

Detailed Description

Map that holds positions of Run and Event records.

Author:
gaede
Version:
Id
RunEventMap.h,v 1.3 2011-03-03 16:00:12 gaede Exp

Member Function Documentation

long64 SIO::RunEventMap::getPosition ( const RunEvent re  )  [inline]

Return the position of the specified Event record or Run record respectively (if EventNum == -1 ).

Returns RunEventMap::NPos if no record found.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1