CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1MuBMSecProcMap Class Reference

#include <L1MuBMSecProcMap.h>

Public Types

typedef std::map< L1MuBMSecProcId, std::unique_ptr< 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 &, std::unique_ptr< 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...
 

Private Attributes

SPmap m_map
 

Detailed Description

Sector Processor container map which contains all sector processors

N. Neumeister CERN EP

Definition at line 40 of file L1MuBMSecProcMap.h.

Member Typedef Documentation

◆ SPmap

typedef std::map<L1MuBMSecProcId, std::unique_ptr<L1MuBMSectorProcessor>, std::less<L1MuBMSecProcId> > L1MuBMSecProcMap::SPmap

Definition at line 42 of file L1MuBMSecProcMap.h.

◆ SPmap_iter

typedef SPmap::iterator L1MuBMSecProcMap::SPmap_iter

Definition at line 43 of file L1MuBMSecProcMap.h.

Constructor & Destructor Documentation

◆ L1MuBMSecProcMap()

L1MuBMSecProcMap::L1MuBMSecProcMap ( )

constructor

Definition at line 43 of file L1MuBMSecProcMap.cc.

43 : m_map() {}

Member Function Documentation

◆ begin()

SPmap_iter L1MuBMSecProcMap::begin ( void  )
inline

return iterator which points to the first entry of the container

Definition at line 58 of file L1MuBMSecProcMap.h.

References m_map.

58 { return m_map.begin(); }

◆ end()

SPmap_iter L1MuBMSecProcMap::end ( void  )
inline

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

Definition at line 61 of file L1MuBMSecProcMap.h.

References m_map.

61 { return m_map.end(); }

◆ insert()

void L1MuBMSecProcMap::insert ( const L1MuBMSecProcId id,
std::unique_ptr< L1MuBMSectorProcessor sp 
)

insert a Sector Processor into the container

Definition at line 64 of file L1MuBMSecProcMap.cc.

References EcalPhiSymFlatTableProducers_cfi::id, m_map, eostools::move(), and sp().

Referenced by L1MuBMTrackFinder::setup().

64  {
65  //SPmap::const_iterator it = m_map.find(id);
66  // if ( it != m_map.end() )
67  // cerr << "Error: More than one Sector Processor with same identifier"
68  // << endl;
69  m_map[id] = std::move(sp);
70 }
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
def move(src, dest)
Definition: eostools.py:511

◆ size()

int L1MuBMSecProcMap::size ( void  ) const
inline

return number of entries present in the container

Definition at line 55 of file L1MuBMSecProcMap.h.

References m_map.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

55 { return m_map.size(); }

◆ sp()

L1MuBMSectorProcessor * L1MuBMSecProcMap::sp ( const L1MuBMSecProcId id) const

return pointer to Sector Processor

Definition at line 52 of file L1MuBMSecProcMap.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_map.

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

52  {
53  SPmap::const_iterator it = m_map.find(id);
54  if (it == m_map.end()) {
55  // cerr << "Error: Sector Processor not in the map" << endl;
56  return nullptr;
57  }
58  return (*it).second.get();
59 }

Member Data Documentation

◆ m_map

SPmap L1MuBMSecProcMap::m_map
private

Definition at line 64 of file L1MuBMSecProcMap.h.

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