Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
Luminosity
src
LumiSummaryRunHeader.cc
Go to the documentation of this file.
1
// $Id: LumiSummaryRunHeader.cc,v 1.1 2011/02/22 16:23:57 matevz Exp $
2
3
#include "
DataFormats/Luminosity/interface/LumiSummaryRunHeader.h
"
4
5
LumiSummaryRunHeader::LumiSummaryRunHeader
(
vstring_t
& l1names,
vstring_t
& hltnames)
6
{
7
m_l1Names
.swap(l1names);
8
m_hltNames
.swap(hltnames);
9
}
10
11
bool
LumiSummaryRunHeader::isProductEqual
(
LumiSummaryRunHeader
const
&
o
)
const
12
{
13
return
m_l1Names
== o.
m_l1Names
&&
m_hltNames
== o.
m_hltNames
;
14
}
15
16
//==============================================================================
17
18
void
LumiSummaryRunHeader::setL1Names
(
const
vstring_t
& l1names)
19
{
20
m_l1Names
.assign(l1names.begin(), l1names.end());
21
}
22
23
void
LumiSummaryRunHeader::setHLTNames
(
const
vstring_t
& hltnames)
24
{
25
m_hltNames
.assign(hltnames.begin(), hltnames.end());
26
}
27
28
void
LumiSummaryRunHeader::swapL1Names
(
vstring_t
& l1names)
29
{
30
m_l1Names
.swap(l1names);
31
}
32
33
void
LumiSummaryRunHeader::swapHLTNames
(
vstring_t
& hltnames)
34
{
35
m_hltNames
.swap(hltnames);
36
}
37
38
//==============================================================================
39
40
unsigned
int
LumiSummaryRunHeader::getL1Index
(
const
std::string
&
name
)
const
41
{
42
const
unsigned
int
size
=
m_l1Names
.size();
43
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
)
44
{
45
if
(
m_l1Names
[
i
] == name)
return
i
;
46
}
47
return
-1;
48
}
49
50
unsigned
int
LumiSummaryRunHeader::getHLTIndex
(
const
std::string
&
name
)
const
51
{
52
const
unsigned
int
size
=
m_hltNames
.size();
53
for
(
unsigned
int
i
= 0;
i
<
size
; ++
i
)
54
{
55
if
(
m_hltNames
[
i
] == name)
return
i
;
56
}
57
return
-1;
58
}
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:50
LumiSummaryRunHeader::vstring_t
std::vector< std::string > vstring_t
Definition:
LumiSummaryRunHeader.h:25
LumiSummaryRunHeader.h
LumiSummaryRunHeader
Definition:
LumiSummaryRunHeader.h:22
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:23
LumiSummaryRunHeader::LumiSummaryRunHeader
LumiSummaryRunHeader()
Default constructor.
Definition:
LumiSummaryRunHeader.h:30
LumiSummaryRunHeader::isProductEqual
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
Definition:
LumiSummaryRunHeader.cc:11
LumiSummaryRunHeader::swapL1Names
void swapL1Names(vstring_t &l1names)
Swap L1 name vector.
Definition:
LumiSummaryRunHeader.cc:28
LumiSummaryRunHeader::m_l1Names
vstring_t m_l1Names
Definition:
LumiSummaryRunHeader.h:79
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
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:40
LumiSummaryRunHeader::m_hltNames
vstring_t m_hltNames
Definition:
LumiSummaryRunHeader.h:80
LumiSummaryRunHeader::swapHLTNames
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
Definition:
LumiSummaryRunHeader.cc:33
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:18
Generated for CMSSW Reference Manual by
1.8.5