L1Trigger
DemonstratorTools
src
BoardData.cc
Go to the documentation of this file.
1
2
#include "
L1Trigger/DemonstratorTools/interface/BoardData.h
"
3
4
namespace
l1t::demo
{
5
6
BoardData::BoardData
() {}
7
8
BoardData::BoardData
(
const
std::string
&
name
) : name_(
name
) {}
9
10
BoardData::BoardData
(
const
std::string
&
name
,
const
std::vector<size_t>&
channels
,
size_t
length) : name_(
name
) {
11
for
(
const
auto
i
:
channels
)
12
data_
[
i
] =
Channel
(length);
13
}
14
15
const
std::string
&
BoardData::name
()
const
{
return
name_
; }
16
17
std::map<size_t, BoardData::Channel>::const_iterator
BoardData::begin
()
const
{
return
data_
.begin(); }
18
19
std::map<size_t, BoardData::Channel>::iterator
BoardData::begin
() {
return
data_
.begin(); }
20
21
std::map<size_t, BoardData::Channel>::const_iterator
BoardData::end
()
const
{
return
data_
.end(); }
22
23
std::map<size_t, BoardData::Channel>::iterator
BoardData::end
() {
return
data_
.end(); }
24
25
BoardData::Channel
&
BoardData::add
(
size_t
i
) {
26
data_
[
i
] =
Channel
();
27
return
data_
.at(
i
);
28
}
29
30
BoardData::Channel
&
BoardData::add
(
size_t
i
,
const
Channel
&
data
) {
31
data_
[
i
] =
data
;
32
return
data_
.at(
i
);
33
}
34
35
BoardData::Channel
&
BoardData::at
(
size_t
i
) {
return
data_
.at(
i
); }
36
37
const
BoardData::Channel
&
BoardData::at
(
size_t
i
)
const
{
return
data_
.at(
i
); }
38
39
bool
BoardData::has
(
size_t
i
)
const
{
return
data_
.count(
i
) > 0; }
40
41
size_t
BoardData::size
() {
return
data_
.size(); }
42
43
}
// namespace l1t::demo
l1t::demo::BoardData::add
Channel & add(size_t)
Definition:
BoardData.cc:25
mps_fire.i
i
Definition:
mps_fire.py:429
l1t::demo::BoardData::Channel
std::vector< Frame > Channel
Definition:
BoardData.h:15
l1t::demo::BoardData::end
std::map< size_t, Channel >::const_iterator end() const
Definition:
BoardData.cc:21
l1t::demo::BoardData::has
bool has(size_t) const
Definition:
BoardData.cc:39
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ewkTauDQM_cfi.channels
channels
Definition:
ewkTauDQM_cfi.py:14
l1t::demo::BoardData::name_
std::string name_
Definition:
BoardData.h:47
l1t::demo
Definition:
BoardData.h:10
l1t::demo::BoardData::begin
std::map< size_t, Channel >::const_iterator begin() const
Definition:
BoardData.cc:17
l1t::demo::BoardData::name
const std::string & name() const
Definition:
BoardData.cc:15
l1t::demo::BoardData::size
size_t size()
Definition:
BoardData.cc:41
BoardData.h
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
l1t::demo::BoardData::data_
std::map< size_t, Channel > data_
Definition:
BoardData.h:50
l1t::demo::BoardData::BoardData
BoardData()
Definition:
BoardData.cc:6
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
l1t::demo::BoardData::at
Channel & at(size_t)
Definition:
BoardData.cc:35
Generated for CMSSW Reference Manual by
1.8.14