#include <L1Trigger/DTTrackFinder/src/L1MuDTSecProcMap.h>
Public Types | |
typedef std::map < L1MuDTSecProcId, L1MuDTSectorProcessor *, std::less< L1MuDTSecProcId > > | SPmap |
typedef SPmap::iterator | SPmap_iter |
Public Member Functions | |
SPmap_iter | begin () |
return iterator which points to the first entry of the container | |
SPmap_iter | end () |
return iterator which points to the one-past-last entry of the container | |
void | insert (const L1MuDTSecProcId &, L1MuDTSectorProcessor *sp) |
insert a Sector Processor into the container | |
L1MuDTSecProcMap () | |
constructor | |
int | size () const |
return number of entries present in the container | |
L1MuDTSectorProcessor * | sp (const L1MuDTSecProcId &) const |
return pointer to Sector Processor | |
virtual | ~L1MuDTSecProcMap () |
destructor | |
Private Attributes | |
SPmap | m_map |
N. Neumeister CERN EP
Definition at line 40 of file L1MuDTSecProcMap.h.
typedef std::map<L1MuDTSecProcId, L1MuDTSectorProcessor*, std::less<L1MuDTSecProcId> > L1MuDTSecProcMap::SPmap |
Definition at line 44 of file L1MuDTSecProcMap.h.
typedef SPmap::iterator L1MuDTSecProcMap::SPmap_iter |
Definition at line 45 of file L1MuDTSecProcMap.h.
L1MuDTSecProcMap::L1MuDTSecProcMap | ( | ) |
L1MuDTSecProcMap::~L1MuDTSecProcMap | ( | ) | [virtual] |
destructor
Definition at line 51 of file L1MuDTSecProcMap.cc.
00051 { 00052 00053 SPmap_iter iter = m_map.begin(); 00054 while ( iter != m_map.end() ) { 00055 delete (*iter).second; 00056 iter++; 00057 } 00058 m_map.clear(); 00059 00060 }
SPmap_iter L1MuDTSecProcMap::begin | ( | void | ) | [inline] |
return iterator which points to the first entry of the container
Definition at line 63 of file L1MuDTSecProcMap.h.
References m_map.
Referenced by L1MuDTTrackFinder::reset(), and L1MuDTTrackFinder::run().
00063 { return m_map.begin(); }
SPmap_iter L1MuDTSecProcMap::end | ( | void | ) | [inline] |
return iterator which points to the one-past-last entry of the container
Definition at line 66 of file L1MuDTSecProcMap.h.
References m_map.
Referenced by L1MuDTTrackFinder::reset(), and L1MuDTTrackFinder::run().
00066 { return m_map.end(); }
void L1MuDTSecProcMap::insert | ( | const L1MuDTSecProcId & | id, | |
L1MuDTSectorProcessor * | sp | |||
) |
insert a Sector Processor into the container
Definition at line 85 of file L1MuDTSecProcMap.cc.
References TestMuL1L2Filter_cff::cerr, lat::endl(), it, and m_map.
Referenced by L1MuDTTrackFinder::setup().
00085 { 00086 00087 SPmap::const_iterator it = m_map.find(id); 00088 if ( it != m_map.end() ) 00089 cerr << "Error: More than one Sector Processor with same identifier" 00090 << endl; 00091 m_map[id] = sp; 00092 00093 }
return number of entries present in the container
Definition at line 60 of file L1MuDTSecProcMap.h.
References m_map.
00060 { return m_map.size(); }
L1MuDTSectorProcessor * L1MuDTSecProcMap::sp | ( | const L1MuDTSecProcId & | id | ) | const |
return pointer to Sector Processor
Definition at line 70 of file L1MuDTSecProcMap.cc.
References TestMuL1L2Filter_cff::cerr, lat::endl(), it, and m_map.
Referenced by L1MuDTTrackFinder::sp().
00070 { 00071 00072 SPmap::const_iterator it = m_map.find(id); 00073 if ( it == m_map.end() ) { 00074 cerr << "Error: Sector Processor not in the map" << endl; 00075 return 0; 00076 } 00077 return (*it).second; 00078 00079 }
SPmap L1MuDTSecProcMap::m_map [private] |
Definition at line 70 of file L1MuDTSecProcMap.h.
Referenced by begin(), end(), insert(), size(), sp(), and ~L1MuDTSecProcMap().