L1Trigger
L1TMuonBarrel
src
L1MuBMSecProcMap.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
12
//
13
//--------------------------------------------------
14
#ifndef L1MUBM_SEC_PROC_MAP_H
15
#define L1MUBM_SEC_PROC_MAP_H
16
17
//---------------
18
// C++ Headers --
19
//---------------
20
21
#include <map>
22
23
//----------------------
24
// Base Class Headers --
25
//----------------------
26
27
//------------------------------------
28
// Collaborating Class Declarations --
29
//------------------------------------
30
31
#include "
DataFormats/L1TMuon/interface/BMTF/L1MuBMSecProcId.h
"
32
33
class
L1MuBMSectorProcessor
;
34
35
// ---------------------
36
// -- Class Interface --
37
// ---------------------
38
39
class
L1MuBMSecProcMap
{
40
public
:
41
typedef
std::map<L1MuBMSecProcId, L1MuBMSectorProcessor*, std::less<L1MuBMSecProcId> >
SPmap
;
42
typedef
SPmap::iterator
SPmap_iter
;
43
45
L1MuBMSecProcMap
();
46
48
virtual
~L1MuBMSecProcMap
();
49
51
L1MuBMSectorProcessor
*
sp
(
const
L1MuBMSecProcId
&)
const
;
52
54
void
insert
(
const
L1MuBMSecProcId
&,
L1MuBMSectorProcessor
*
sp
);
55
57
inline
int
size
()
const
{
return
m_map
.size(); }
58
60
inline
SPmap_iter
begin
() {
return
m_map
.begin(); }
61
63
inline
SPmap_iter
end
() {
return
m_map
.end(); }
64
65
private
:
66
SPmap
m_map
;
67
};
68
69
#endif
L1MuBMSecProcMap::begin
SPmap_iter begin()
return iterator which points to the first entry of the container
Definition:
L1MuBMSecProcMap.h:60
L1MuBMSecProcMap::SPmap
std::map< L1MuBMSecProcId, L1MuBMSectorProcessor *, std::less< L1MuBMSecProcId > > SPmap
Definition:
L1MuBMSecProcMap.h:41
L1MuBMSecProcId
Definition:
L1MuBMSecProcId.h:40
L1MuBMSecProcMap::insert
void insert(const L1MuBMSecProcId &, L1MuBMSectorProcessor *sp)
insert a Sector Processor into the container
Definition:
L1MuBMSecProcMap.cc:77
L1MuBMSecProcMap::~L1MuBMSecProcMap
virtual ~L1MuBMSecProcMap()
destructor
Definition:
L1MuBMSecProcMap.cc:49
L1MuBMSectorProcessor
Definition:
L1MuBMSectorProcessor.h:54
L1MuBMSecProcMap::end
SPmap_iter end()
return iterator which points to the one-past-last entry of the container
Definition:
L1MuBMSecProcMap.h:63
L1MuBMSecProcMap::L1MuBMSecProcMap
L1MuBMSecProcMap()
constructor
Definition:
L1MuBMSecProcMap.cc:43
L1MuBMSecProcMap::size
int size() const
return number of entries present in the container
Definition:
L1MuBMSecProcMap.h:57
L1MuBMSecProcId.h
L1MuBMSecProcMap::sp
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
Definition:
L1MuBMSecProcMap.cc:65
L1MuBMSecProcMap::m_map
SPmap m_map
Definition:
L1MuBMSecProcMap.h:66
L1MuBMSecProcMap::SPmap_iter
SPmap::iterator SPmap_iter
Definition:
L1MuBMSecProcMap.h:42
L1MuBMSecProcMap
Definition:
L1MuBMSecProcMap.h:39
Generated for CMSSW Reference Manual by
1.8.16