DataFormats
Luminosity
interface
LumiSummaryRunHeader.h
Go to the documentation of this file.
1
#ifndef DataFormats_Luminosity_LumiSummaryRunHeader_h
2
#define DataFormats_Luminosity_LumiSummaryRunHeader_h
3
18
#include <vector>
19
#include <string>
20
21
class
LumiSummaryRunHeader
{
22
public
:
23
typedef
std::vector<std::string>
vstring_t
;
24
25
//----------------------------------------------------------------
26
28
LumiSummaryRunHeader
() {}
29
32
LumiSummaryRunHeader
(
vstring_t
& l1names,
vstring_t
& hltnames);
33
35
~LumiSummaryRunHeader
() {}
36
38
bool
isProductEqual
(
LumiSummaryRunHeader
const
&
o
)
const
;
39
40
//----------------------------------------------------------------
41
43
void
setL1Names
(
const
vstring_t
& l1names);
44
46
void
setHLTNames
(
const
vstring_t
& hltnames);
47
49
void
swapL1Names
(
vstring_t
& l1names);
50
52
void
swapHLTNames
(
vstring_t
& hltnames);
53
54
//----------------------------------------------------------------
55
57
std::string
getL1Name
(
unsigned
int
idx
)
const
{
return
m_l1Names
.at(
idx
); }
58
60
std::string
getHLTName
(
unsigned
int
idx
)
const
{
return
m_hltNames
.at(
idx
); }
61
63
const
vstring_t
&
getL1Names
(
vstring_t
& l1names)
const
{
return
m_l1Names
; }
64
66
const
vstring_t
&
getHLTNames
(
vstring_t
& hltnames)
const
{
return
m_hltNames
; }
67
69
unsigned
int
getL1Index
(
const
std::string
&
name
)
const
;
70
72
unsigned
int
getHLTIndex
(
const
std::string
&
name
)
const
;
73
74
//----------------------------------------------------------------
75
76
private
:
77
vstring_t
m_l1Names
;
// L1 trigger-name vector.
78
vstring_t
m_hltNames
;
// HLT path-name vector.
79
};
80
81
#endif
LumiSummaryRunHeader
Definition:
LumiSummaryRunHeader.h:21
LumiSummaryRunHeader::getL1Name
std::string getL1Name(unsigned int idx) const
Get L1 name at given position.
Definition:
LumiSummaryRunHeader.h:57
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::getHLTName
std::string getHLTName(unsigned int idx) const
Get HLT name at given position.
Definition:
LumiSummaryRunHeader.h:60
LumiSummaryRunHeader::isProductEqual
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
Definition:
LumiSummaryRunHeader.cc:9
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
heavyIonCSV_trainingSettings.idx
idx
Definition:
heavyIonCSV_trainingSettings.py:5
LumiSummaryRunHeader::getL1Names
const vstring_t & getL1Names(vstring_t &l1names) const
Get L1 name vector.
Definition:
LumiSummaryRunHeader.h:63
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
LumiSummaryRunHeader::getHLTNames
const vstring_t & getHLTNames(vstring_t &hltnames) const
Get HLT name vector.
Definition:
LumiSummaryRunHeader.h:66
LumiSummaryRunHeader::~LumiSummaryRunHeader
~LumiSummaryRunHeader()
Destructor.
Definition:
LumiSummaryRunHeader.h:35
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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
Generated for CMSSW Reference Manual by
1.8.16