DataFormats
Luminosity
src
LumiSummaryRunHeader.cc
Go to the documentation of this file.
1
2
#include "
DataFormats/Luminosity/interface/LumiSummaryRunHeader.h
"
3
4
LumiSummaryRunHeader::LumiSummaryRunHeader
(
vstring_t
& l1names,
vstring_t
& hltnames) {
5
m_l1Names
.swap(l1names);
6
m_hltNames
.swap(hltnames);
7
}
8
9
bool
LumiSummaryRunHeader::isProductEqual
(
LumiSummaryRunHeader
const
&
o
)
const
{
10
return
m_l1Names
==
o
.m_l1Names &&
m_hltNames
==
o
.m_hltNames;
11
}
12
13
//==============================================================================
14
15
void
LumiSummaryRunHeader::setL1Names
(
const
vstring_t
& l1names) {
m_l1Names
.assign(l1names.begin(), l1names.end()); }
16
17
void
LumiSummaryRunHeader::setHLTNames
(
const
vstring_t
& hltnames) {
18
m_hltNames
.assign(hltnames.begin(), hltnames.end());
19
}
20
21
void
LumiSummaryRunHeader::swapL1Names
(
vstring_t
& l1names) {
m_l1Names
.swap(l1names); }
22
23
void
LumiSummaryRunHeader::swapHLTNames
(
vstring_t
& hltnames) {
m_hltNames
.swap(hltnames); }
24
25
//==============================================================================
26
27
unsigned
int
LumiSummaryRunHeader::getL1Index
(
const
std::string
&
name
)
const
{
28
const
unsigned
int
size
=
m_l1Names
.size();
29
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
) {
30
if
(
m_l1Names
[
i
] ==
name
)
31
return
i
;
32
}
33
return
-1;
34
}
35
36
unsigned
int
LumiSummaryRunHeader::getHLTIndex
(
const
std::string
&
name
)
const
{
37
const
unsigned
int
size
=
m_hltNames
.size();
38
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
) {
39
if
(
m_hltNames
[
i
] ==
name
)
40
return
i
;
41
}
42
return
-1;
43
}
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
mps_fire.i
i
Definition:
mps_fire.py:429
LumiSummaryRunHeader::getL1Index
unsigned int getL1Index(const std::string &name) const
Get index of given L1 trigger-name. Returns -1 if not found.
Definition:
LumiSummaryRunHeader.cc:27
LumiSummaryRunHeader::vstring_t
std::vector< std::string > vstring_t
Definition:
LumiSummaryRunHeader.h:23
LumiSummaryRunHeader.h
LumiSummaryRunHeader
Definition:
LumiSummaryRunHeader.h:21
LumiSummaryRunHeader::isProductEqual
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
Definition:
LumiSummaryRunHeader.cc:9
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LumiSummaryRunHeader::setHLTNames
void setHLTNames(const vstring_t &hltnames)
Set HLT name vector.
Definition:
LumiSummaryRunHeader.cc:17
LumiSummaryRunHeader::LumiSummaryRunHeader
LumiSummaryRunHeader()
Default constructor.
Definition:
LumiSummaryRunHeader.h:28
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
LumiSummaryRunHeader::swapL1Names
void swapL1Names(vstring_t &l1names)
Swap L1 name vector.
Definition:
LumiSummaryRunHeader.cc:21
LumiSummaryRunHeader::getHLTIndex
unsigned int getHLTIndex(const std::string &name) const
Get index of given HLT path-name. Returns -1 if not found.
Definition:
LumiSummaryRunHeader.cc:36
LumiSummaryRunHeader::m_l1Names
vstring_t m_l1Names
Definition:
LumiSummaryRunHeader.h:77
LumiSummaryRunHeader::m_hltNames
vstring_t m_hltNames
Definition:
LumiSummaryRunHeader.h:78
LumiSummaryRunHeader::swapHLTNames
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
Definition:
LumiSummaryRunHeader.cc:23
LumiSummaryRunHeader::setL1Names
void setL1Names(const vstring_t &l1names)
Set L1 name vector.
Definition:
LumiSummaryRunHeader.cc:15
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14