src
L1Trigger
L1TMuonBarrel
src
L1MuBMSecProcMap.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: L1MuBMSecProcMap
4
//
5
// Description: Sector Processor container
6
//
7
//
8
//
9
// Author :
10
// N. Neumeister CERN EP
11
//
12
//--------------------------------------------------
13
14
//-----------------------
15
// This Class's Header --
16
//-----------------------
17
18
#include "
L1Trigger/L1TMuonBarrel/interface/L1MuBMSecProcMap.h
"
19
20
//---------------
21
// C++ Headers --
22
//---------------
23
24
#include <iostream>
25
26
//-------------------------------
27
// Collaborating Class Headers --
28
//-------------------------------
29
30
#include "
DataFormats/L1TMuon/interface/BMTF/L1MuBMSecProcId.h
"
31
#include "
L1Trigger/L1TMuonBarrel/src/L1MuBMSectorProcessor.h
"
32
33
using namespace
std
;
34
35
// --------------------------------
36
// class L1MuBMSecProcMap
37
//---------------------------------
38
39
//----------------
40
// Constructors --
41
//----------------
42
43
L1MuBMSecProcMap::L1MuBMSecProcMap
() : m_map() {}
44
45
//--------------
46
// Operations --
47
//--------------
48
49
//
50
// return Sector Processor
51
//
52
L1MuBMSectorProcessor
*
L1MuBMSecProcMap::sp
(
const
L1MuBMSecProcId
&
id
)
const
{
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
}
60
61
//
62
// insert Sector Processor into container
63
//
64
void
L1MuBMSecProcMap::insert
(
const
L1MuBMSecProcId
&
id
, std::unique_ptr<L1MuBMSectorProcessor> sp) {
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.h
L1MuBMSecProcId
Definition:
L1MuBMSecProcId.h:40
L1MuBMSecProcMap::L1MuBMSecProcMap
L1MuBMSecProcMap()
constructor
Definition:
L1MuBMSecProcMap.cc:43
L1MuBMSecProcMap::m_map
SPmap m_map
Definition:
L1MuBMSecProcMap.h:64
L1MuBMSecProcMap::sp
L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
return pointer to Sector Processor
Definition:
L1MuBMSecProcMap.cc:52
L1MuBMSectorProcessor
Definition:
L1MuBMSectorProcessor.h:58
std
Definition:
JetResolutionObject.h:76
L1MuBMSecProcMap.h
L1MuBMSecProcId.h
L1MuBMSecProcMap::insert
void insert(const L1MuBMSecProcId &, std::unique_ptr< L1MuBMSectorProcessor > sp)
insert a Sector Processor into the container
Definition:
L1MuBMSecProcMap.cc:64
EcalPhiSymFlatTableProducers_cfi.id
id
Definition:
EcalPhiSymFlatTableProducers_cfi.py:11
ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it
auto & it
Definition:
splitVertices.h:27
eostools.move
def move(src, dest)
Definition:
eostools.py:511
Generated for CMSSW Reference Manual by
1.8.14