#include <LumiSummaryRunHeader.h>
Public Types | |
typedef std::vector< std::string > | vstring_t |
Public Member Functions | |
unsigned int | getHLTIndex (const std::string &name) const |
Get index of given HLT path-name. Returns -1 if not found. More... | |
std::string | getHLTName (unsigned int idx) const |
Get HLT name at given position. More... | |
const vstring_t & | getHLTNames (vstring_t &hltnames) const |
Get HLT name vector. More... | |
unsigned int | getL1Index (const std::string &name) const |
Get index of given L1 trigger-name. Returns -1 if not found. More... | |
std::string | getL1Name (unsigned int idx) const |
Get L1 name at given position. More... | |
const vstring_t & | getL1Names (vstring_t &l1names) const |
Get L1 name vector. More... | |
bool | isProductEqual (LumiSummaryRunHeader const &o) const |
Product compare function. More... | |
LumiSummaryRunHeader () | |
Default constructor. More... | |
LumiSummaryRunHeader (vstring_t &l1names, vstring_t &hltnames) | |
void | setHLTNames (const vstring_t &hltnames) |
Set HLT name vector. More... | |
void | setL1Names (const vstring_t &l1names) |
Set L1 name vector. More... | |
void | swapHLTNames (vstring_t &hltnames) |
Swap HLT name vector. More... | |
void | swapL1Names (vstring_t &l1names) |
Swap L1 name vector. More... | |
~LumiSummaryRunHeader () | |
Destructor. More... | |
Private Attributes | |
vstring_t | m_hltNames |
vstring_t | m_l1Names |
LumiSummaryRunHeader contains LumiSummary data which remains valid during the whole run.
Definition at line 21 of file LumiSummaryRunHeader.h.
typedef std::vector<std::string> LumiSummaryRunHeader::vstring_t |
Definition at line 23 of file LumiSummaryRunHeader.h.
|
inline |
Constructor with names. Vectors are swapped so they are empty on return.
Definition at line 4 of file LumiSummaryRunHeader.cc.
References m_hltNames, and m_l1Names.
|
inline |
unsigned int LumiSummaryRunHeader::getHLTIndex | ( | const std::string & | name | ) | const |
Get index of given HLT path-name. Returns -1 if not found.
Definition at line 36 of file LumiSummaryRunHeader.cc.
References mps_fire::i, m_hltNames, Skims_PA_cff::name, and findQualityFiles::size.
|
inline |
Get HLT name at given position.
Definition at line 60 of file LumiSummaryRunHeader.h.
References training_settings::idx, and m_hltNames.
unsigned int LumiSummaryRunHeader::getL1Index | ( | const std::string & | name | ) | const |
Get index of given L1 trigger-name. Returns -1 if not found.
Definition at line 27 of file LumiSummaryRunHeader.cc.
References mps_fire::i, m_l1Names, Skims_PA_cff::name, and findQualityFiles::size.
Referenced by LumiCalculator::endLuminosityBlock().
|
inline |
Get L1 name at given position.
Definition at line 57 of file LumiSummaryRunHeader.h.
References training_settings::idx, and m_l1Names.
Referenced by LumiCalculator::endLuminosityBlock().
bool LumiSummaryRunHeader::isProductEqual | ( | LumiSummaryRunHeader const & | o | ) | const |
Product compare function.
Definition at line 9 of file LumiSummaryRunHeader.cc.
References m_hltNames, m_l1Names, and EcalTangentSkim_cfg::o.
void LumiSummaryRunHeader::setHLTNames | ( | const vstring_t & | hltnames | ) |
void LumiSummaryRunHeader::setL1Names | ( | const vstring_t & | l1names | ) |
void LumiSummaryRunHeader::swapHLTNames | ( | vstring_t & | hltnames | ) |
void LumiSummaryRunHeader::swapL1Names | ( | vstring_t & | l1names | ) |
|
private |
Definition at line 78 of file LumiSummaryRunHeader.h.
Referenced by getHLTIndex(), getHLTName(), getHLTNames(), isProductEqual(), LumiSummaryRunHeader(), setHLTNames(), and swapHLTNames().
|
private |
Definition at line 77 of file LumiSummaryRunHeader.h.
Referenced by getL1Index(), getL1Name(), getL1Names(), isProductEqual(), LumiSummaryRunHeader(), setL1Names(), and swapL1Names().