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
}
LumiSummaryRunHeader
Definition:
LumiSummaryRunHeader.h:21
mps_fire.i
i
Definition:
mps_fire.py:355
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::LumiSummaryRunHeader
LumiSummaryRunHeader()
Default constructor.
Definition:
LumiSummaryRunHeader.h:28
LumiSummaryRunHeader::setL1Names
void setL1Names(const vstring_t &l1names)
Set L1 name vector.
Definition:
LumiSummaryRunHeader.cc:15
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::isProductEqual
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
Definition:
LumiSummaryRunHeader.cc:9
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
LumiSummaryRunHeader::vstring_t
std::vector< std::string > vstring_t
Definition:
LumiSummaryRunHeader.h:23
LumiSummaryRunHeader::setHLTNames
void setHLTNames(const vstring_t &hltnames)
Set HLT name vector.
Definition:
LumiSummaryRunHeader.cc:17
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LumiSummaryRunHeader::swapHLTNames
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
Definition:
LumiSummaryRunHeader.cc:23
LumiSummaryRunHeader::m_l1Names
vstring_t m_l1Names
Definition:
LumiSummaryRunHeader.h:77
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
LumiSummaryRunHeader::swapL1Names
void swapL1Names(vstring_t &l1names)
Swap L1 name vector.
Definition:
LumiSummaryRunHeader.cc:21
LumiSummaryRunHeader::m_hltNames
vstring_t m_hltNames
Definition:
LumiSummaryRunHeader.h:78
LumiSummaryRunHeader.h
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
Generated for CMSSW Reference Manual by
1.8.16