src
L1Trigger
DTTrackFinder
src
L1MuDTSecProcMap.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: L1MuDTSecProcMap
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/DTTrackFinder/src/L1MuDTSecProcMap.h
"
19
20
//---------------
21
// C++ Headers --
22
//---------------
23
24
#include <iostream>
25
26
//-------------------------------
27
// Collaborating Class Headers --
28
//-------------------------------
29
30
#include "
L1Trigger/DTTrackFinder/interface/L1MuDTSecProcId.h
"
31
#include "
L1Trigger/DTTrackFinder/src/L1MuDTSectorProcessor.h
"
32
33
using namespace
std
;
34
35
// --------------------------------
36
// class L1MuDTSecProcMap
37
//---------------------------------
38
39
//----------------
40
// Constructors --
41
//----------------
42
43
L1MuDTSecProcMap::L1MuDTSecProcMap
() : m_map() {}
44
45
//--------------
46
// Destructor --
47
//--------------
48
49
L1MuDTSecProcMap::~L1MuDTSecProcMap
() =
default
;
50
51
//--------------
52
// Operations --
53
//--------------
54
55
//
56
// return Sector Processor
57
//
58
const
L1MuDTSectorProcessor
*
L1MuDTSecProcMap::sp
(
const
L1MuDTSecProcId
&
id
)
const
{
59
SPmap::const_iterator
it
=
m_map
.find(
id
);
60
if
(
it
==
m_map
.end()) {
61
// cerr << "Error: Sector Processor not in the map" << endl;
62
return
nullptr
;
63
}
64
return
(*it).second.get();
65
}
66
67
//
68
// insert Sector Processor into container
69
//
70
void
L1MuDTSecProcMap::insert
(
const
L1MuDTSecProcId
&
id
, std::unique_ptr<L1MuDTSectorProcessor> sp) {
71
//SPmap::const_iterator it = m_map.find(id);
72
// if ( it != m_map.end() )
73
// cerr << "Error: More than one Sector Processor with same identifier"
74
// << endl;
75
m_map
[
id
] =
std::move
(
sp
);
76
}
L1MuDTSectorProcessor.h
L1MuDTSecProcId.h
std
Definition:
JetResolutionObject.h:76
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:85
L1MuDTSecProcMap::sp
const L1MuDTSectorProcessor * sp(const L1MuDTSecProcId &) const
return pointer to Sector Processor
Definition:
L1MuDTSecProcMap.cc:58
L1MuDTSecProcMap::~L1MuDTSecProcMap
~L1MuDTSecProcMap()
destructor
L1MuDTSecProcId
Definition:
L1MuDTSecProcId.h:40
L1MuDTSecProcMap::L1MuDTSecProcMap
L1MuDTSecProcMap()
constructor
Definition:
L1MuDTSecProcMap.cc:43
L1MuDTSecProcMap.h
L1MuDTSectorProcessor
Definition:
L1MuDTSectorProcessor.h:56
L1MuDTSecProcMap::insert
void insert(const L1MuDTSecProcId &, std::unique_ptr< L1MuDTSectorProcessor > sp)
insert a Sector Processor into the container
Definition:
L1MuDTSecProcMap.cc:70
L1MuDTSecProcMap::m_map
SPmap m_map
Definition:
L1MuDTSecProcMap.h:66
ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it
auto & it
Definition:
splitVertices.h:48
eostools.move
def move(src, dest)
Definition:
eostools.py:511
Generated for CMSSW Reference Manual by
1.8.14