test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1MuBMSecProcMap Class Reference

#include <L1MuBMSecProcMap.h>

Public Types

typedef std::map
< L1MuBMSecProcId,
L1MuBMSectorProcessor
*, std::less< L1MuBMSecProcId > > 
SPmap
 
typedef SPmap::iterator SPmap_iter
 

Public Member Functions

SPmap_iter begin ()
 return iterator which points to the first entry of the container More...
 
SPmap_iter end ()
 return iterator which points to the one-past-last entry of the container More...
 
void insert (const L1MuBMSecProcId &, L1MuBMSectorProcessor *sp)
 insert a Sector Processor into the container More...
 
 L1MuBMSecProcMap ()
 constructor More...
 
int size () const
 return number of entries present in the container More...
 
L1MuBMSectorProcessorsp (const L1MuBMSecProcId &) const
 return pointer to Sector Processor More...
 
virtual ~L1MuBMSecProcMap ()
 destructor More...
 

Private Attributes

SPmap m_map
 

Detailed Description

Sector Processor container map which contains all sector processors

N. Neumeister CERN EP

Definition at line 38 of file L1MuBMSecProcMap.h.

Member Typedef Documentation

Definition at line 42 of file L1MuBMSecProcMap.h.

typedef SPmap::iterator L1MuBMSecProcMap::SPmap_iter

Definition at line 43 of file L1MuBMSecProcMap.h.

Constructor & Destructor Documentation

L1MuBMSecProcMap::L1MuBMSecProcMap ( )

constructor

Definition at line 43 of file L1MuBMSecProcMap.cc.

43 : m_map() {}
L1MuBMSecProcMap::~L1MuBMSecProcMap ( )
virtual

destructor

Definition at line 49 of file L1MuBMSecProcMap.cc.

References m_map.

49  {
50 
51  SPmap_iter iter = m_map.begin();
52  while ( iter != m_map.end() ) {
53  delete (*iter).second;
54  iter++;
55  }
56  m_map.clear();
57 
58 }
SPmap::iterator SPmap_iter

Member Function Documentation

SPmap_iter L1MuBMSecProcMap::begin ( void  )
inline

return iterator which points to the first entry of the container

Definition at line 61 of file L1MuBMSecProcMap.h.

References m_map.

Referenced by L1MuBMTrackFinder::reset(), and L1MuBMTrackFinder::run().

61 { return m_map.begin(); }
SPmap_iter L1MuBMSecProcMap::end ( void  )
inline

return iterator which points to the one-past-last entry of the container

Definition at line 64 of file L1MuBMSecProcMap.h.

References m_map.

Referenced by L1MuBMTrackFinder::reset(), and L1MuBMTrackFinder::run().

64 { return m_map.end(); }
void L1MuBMSecProcMap::insert ( const L1MuBMSecProcId id,
L1MuBMSectorProcessor sp 
)

insert a Sector Processor into the container

Definition at line 83 of file L1MuBMSecProcMap.cc.

References m_map, and sp().

Referenced by BeautifulSoup.PageElement::_invert(), and L1MuBMTrackFinder::setup().

83  {
84 
85  //SPmap::const_iterator it = m_map.find(id);
86  // if ( it != m_map.end() )
87  // cerr << "Error: More than one Sector Processor with same identifier"
88  // << endl;
89  m_map[id] = sp;
90 
91 }
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
int L1MuBMSecProcMap::size ( void  ) const
inline

return number of entries present in the container

Definition at line 58 of file L1MuBMSecProcMap.h.

References m_map.

58 { return m_map.size(); }
L1MuBMSectorProcessor * L1MuBMSecProcMap::sp ( const L1MuBMSecProcId id) const

return pointer to Sector Processor

Definition at line 68 of file L1MuBMSecProcMap.cc.

References m_map.

Referenced by insert(), and L1MuBMTrackFinder::sp().

68  {
69 
70  SPmap::const_iterator it = m_map.find(id);
71  if ( it == m_map.end() ) {
72  // cerr << "Error: Sector Processor not in the map" << endl;
73  return 0;
74  }
75  return (*it).second;
76 
77 }

Member Data Documentation

SPmap L1MuBMSecProcMap::m_map
private

Definition at line 68 of file L1MuBMSecProcMap.h.

Referenced by begin(), end(), insert(), size(), sp(), and ~L1MuBMSecProcMap().