Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
6
m_l1Names
.swap(l1names);
7
m_hltNames
.swap(hltnames);
8
}
9
10
bool
LumiSummaryRunHeader::isProductEqual
(
LumiSummaryRunHeader
const
&
o
)
const
11
{
12
return
m_l1Names
== o.
m_l1Names
&&
m_hltNames
== o.
m_hltNames
;
13
}
14
15
//==============================================================================
16
17
void
LumiSummaryRunHeader::setL1Names
(
const
vstring_t
& l1names)
18
{
19
m_l1Names
.assign(l1names.begin(), l1names.end());
20
}
21
22
void
LumiSummaryRunHeader::setHLTNames
(
const
vstring_t
& hltnames)
23
{
24
m_hltNames
.assign(hltnames.begin(), hltnames.end());
25
}
26
27
void
LumiSummaryRunHeader::swapL1Names
(
vstring_t
& l1names)
28
{
29
m_l1Names
.swap(l1names);
30
}
31
32
void
LumiSummaryRunHeader::swapHLTNames
(
vstring_t
& hltnames)
33
{
34
m_hltNames
.swap(hltnames);
35
}
36
37
//==============================================================================
38
39
unsigned
int
LumiSummaryRunHeader::getL1Index
(
const
std::string
&
name
)
const
40
{
41
const
unsigned
int
size
=
m_l1Names
.size();
42
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
)
43
{
44
if
(
m_l1Names
[
i
] == name)
return
i
;
45
}
46
return
-1;
47
}
48
49
unsigned
int
LumiSummaryRunHeader::getHLTIndex
(
const
std::string
&
name
)
const
50
{
51
const
unsigned
int
size
=
m_hltNames
.size();
52
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
)
53
{
54
if
(
m_hltNames
[
i
] == name)
return
i
;
55
}
56
return
-1;
57
}
i
int i
Definition:
DBlmapReader.cc:9
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:49
LumiSummaryRunHeader::vstring_t
std::vector< std::string > vstring_t
Definition:
LumiSummaryRunHeader.h:24
LumiSummaryRunHeader.h
LumiSummaryRunHeader
Definition:
LumiSummaryRunHeader.h:21
connectstrParser.o
string o
Definition:
connectstrParser.py:70
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
LumiSummaryRunHeader::setHLTNames
void setHLTNames(const vstring_t &hltnames)
Set HLT name vector.
Definition:
LumiSummaryRunHeader.cc:22
LumiSummaryRunHeader::LumiSummaryRunHeader
LumiSummaryRunHeader()
Default constructor.
Definition:
LumiSummaryRunHeader.h:29
LumiSummaryRunHeader::isProductEqual
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
Definition:
LumiSummaryRunHeader.cc:10
LumiSummaryRunHeader::swapL1Names
void swapL1Names(vstring_t &l1names)
Swap L1 name vector.
Definition:
LumiSummaryRunHeader.cc:27
LumiSummaryRunHeader::m_l1Names
vstring_t m_l1Names
Definition:
LumiSummaryRunHeader.h:78
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:39
LumiSummaryRunHeader::m_hltNames
vstring_t m_hltNames
Definition:
LumiSummaryRunHeader.h:79
LumiSummaryRunHeader::swapHLTNames
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
Definition:
LumiSummaryRunHeader.cc:32
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
LumiSummaryRunHeader::setL1Names
void setL1Names(const vstring_t &l1names)
Set L1 name vector.
Definition:
LumiSummaryRunHeader.cc:17
Generated for CMSSW Reference Manual by
1.8.5