Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
19
#include <vector>
20
#include <string>
21
22
class
LumiSummaryRunHeader
23
{
24
public
:
25
typedef
std::vector<std::string>
vstring_t
;
26
27
//----------------------------------------------------------------
28
30
LumiSummaryRunHeader
() {}
31
34
LumiSummaryRunHeader
(
vstring_t
& l1names,
vstring_t
& hltnames);
35
37
~LumiSummaryRunHeader
() {}
38
40
bool
isProductEqual
(
LumiSummaryRunHeader
const
&
o
)
const
;
41
42
//----------------------------------------------------------------
43
45
void
setL1Names
(
const
vstring_t
& l1names);
46
48
void
setHLTNames
(
const
vstring_t
& hltnames);
49
51
void
swapL1Names
(
vstring_t
& l1names);
52
54
void
swapHLTNames
(
vstring_t
& hltnames);
55
56
//----------------------------------------------------------------
57
59
std::string
getL1Name
(
unsigned
int
idx)
const
{
return
m_l1Names
.at(idx); }
60
62
std::string
getHLTName
(
unsigned
int
idx)
const
{
return
m_hltNames
.at(idx); }
63
65
const
vstring_t
&
getL1Names
(
vstring_t
& l1names)
const
{
return
m_l1Names
; }
66
68
const
vstring_t
&
getHLTNames
(
vstring_t
& hltnames)
const
{
return
m_hltNames
; }
69
71
unsigned
int
getL1Index
(
const
std::string&
name
)
const
;
72
74
unsigned
int
getHLTIndex
(
const
std::string&
name
)
const
;
75
76
//----------------------------------------------------------------
77
78
private
:
79
vstring_t
m_l1Names
;
// L1 trigger-name vector.
80
vstring_t
m_hltNames
;
// HLT path-name vector.
81
};
82
83
#endif
LumiSummaryRunHeader::getL1Name
std::string getL1Name(unsigned int idx) const
Get L1 name at given position.
Definition:
LumiSummaryRunHeader.h:59
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
Definition:
LumiSummaryRunHeader.h:22
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
LumiSummaryRunHeader::getHLTName
std::string getHLTName(unsigned int idx) const
Get HLT name at given position.
Definition:
LumiSummaryRunHeader.h:62
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::~LumiSummaryRunHeader
~LumiSummaryRunHeader()
Destructor.
Definition:
LumiSummaryRunHeader.h:37
LumiSummaryRunHeader::getL1Names
const vstring_t & getL1Names(vstring_t &l1names) const
Get L1 name vector.
Definition:
LumiSummaryRunHeader.h:65
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::getHLTNames
const vstring_t & getHLTNames(vstring_t &hltnames) const
Get HLT name vector.
Definition:
LumiSummaryRunHeader.h:68
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
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