HLT chain configuration information.
More...
#include <HLTPrescaleSet.h>
|
| HLTPrescaleSet () |
| default constructor More...
|
|
virtual | ~HLTPrescaleSet () override=default |
| destructor More...
|
|
HLTPrescale & | setPrescale (const HLTPrescale &sc, unsigned int chain_counter, HLTLevel level=HLT) |
|
const HLTPrescale & | getPrescale (unsigned int chain_counter, HLTLevel level=HLT) const |
|
bool | hasPrescale (unsigned int counter, TrigConf::HLTLevel level=HLT) const |
|
HLTPrescale & | thePrescale (unsigned int chain_counter, HLTLevel level) |
|
const ScalingMap_t & | getPrescales (HLTLevel level) const |
|
size_t | size (HLTLevel level=HLT) const |
|
void | reset () |
|
void | print (const std::string &indent="", unsigned int detail=1) const override |
| print the prescale set More...
|
|
void | setIOV (uint32_t start_run, uint32_t start_lb, uint32_t end_run, uint32_t end_lb) |
| sets the IOV of the prescale set More...
|
|
void | setIOV (uint64_t start, uint64_t end) |
|
void | getIOV (uint32_t &start_run, uint32_t &start_lb, uint32_t &end_run, uint32_t &end_lb) const |
| gets the IOV of the prescale set More...
|
|
bool | isValid (uint32_t run, uint32_t lb) const |
| checks if run/lb are in the current IOV More...
|
|
std::string | __str__ () const override |
|
int | superMasterTableId () const |
|
unsigned int | smk () const |
|
unsigned int | id () const |
|
const std::string & | name () const |
|
const std::string & | comment () const |
|
unsigned int | version () const |
|
void | setSuperMasterTableId (int id) |
|
void | setSMK (int id) |
|
void | setId (unsigned int id) |
|
void | setName (const std::string &name) |
|
void | setVersion (unsigned int version) |
|
void | setComment (const std::string &c) |
|
void | printNameIdV (const std::string &indent="") const |
|
HLT chain configuration information.
Definition at line 31 of file HLTPrescaleSet.h.
◆ ScalingMap_t
◆ HLTPrescaleSet()
TrigConf::HLTPrescaleSet::HLTPrescaleSet |
( |
| ) |
|
◆ ~HLTPrescaleSet()
virtual TrigConf::HLTPrescaleSet::~HLTPrescaleSet |
( |
| ) |
|
|
overridevirtualdefault |
◆ __str__()
string HLTPrescaleSet::__str__ |
( |
| ) |
const |
|
overridevirtual |
◆ comment()
const std::string& TrigConf::TrigConfData::comment |
( |
| ) |
const |
|
inlineinherited |
◆ getIOV()
void TrigConf::HLTPrescaleSet::getIOV |
( |
uint32_t & |
start_run, |
|
|
uint32_t & |
start_lb, |
|
|
uint32_t & |
end_run, |
|
|
uint32_t & |
end_lb |
|
) |
| const |
◆ getPrescale()
Definition at line 42 of file HLTPrescaleSet.cxx.
44 ScalingMap_t::const_iterator
s = map.find(chain_counter);
46 cerr <<
"HLTPrescaleSet::getPrescale: chain counter " << chain_counter <<
" in level " <<
level <<
" has no prescales" << endl;
47 throw std::runtime_error(
"HLTPrescaleSet::getPrescale: chain has no prescales defined");
◆ getPrescales()
◆ hasPrescale()
bool TrigConf::HLTPrescaleSet::hasPrescale |
( |
unsigned int |
counter, |
|
|
TrigConf::HLTLevel |
level = HLT |
|
) |
| const |
◆ id()
unsigned int TrigConf::TrigConfData::id |
( |
| ) |
const |
|
inlineinherited |
◆ indent()
std::ostream & TrigConfData::indent |
( |
std::ostream & |
o, |
|
|
int |
lvl, |
|
|
int |
size |
|
) |
| const |
|
protectedinherited |
◆ isValid()
bool TrigConf::HLTPrescaleSet::isValid |
( |
uint32_t |
run, |
|
|
uint32_t |
lb |
|
) |
| const |
checks if run/lb are in the current IOV
Definition at line 89 of file HLTPrescaleSet.cxx.
90 unsigned long long iovtime =
run;
◆ name()
const std::string& TrigConf::TrigConfData::name |
( |
| ) |
const |
|
inlineinherited |
◆ print()
void TrigConf::HLTPrescaleSet::print |
( |
const std::string & |
indent = "" , |
|
|
unsigned int |
detail = 1 |
|
) |
| const |
|
overridevirtual |
print the prescale set
Implements TrigConf::TrigConfData.
Definition at line 105 of file HLTPrescaleSet.cxx.
112 cout.unsetf(ios_base::floatfield);
113 for(
unsigned int i=
L2;
i<=
HLT;
i++) {
117 cout <<
indent <<
" " << (
level==
L2?
"L2":
"EF") <<
" prescales:" << endl;
122 auto s_iter = map.find(
cc);
123 if(s_iter==map.end())
continue;
125 cout <<
indent <<
" Chain counter: " << setw(4) <<
cc
126 <<
", prescale: " << setw(4) <<
s.prescale()
127 <<
", pass-through: " << setw(4) <<
s.pass_through();
128 if(
s.getRerunPrescales().size()>0 ) {
129 cout <<
", rerun prescales: ";
130 for( HLTPrescale::PrescaleMap_t::value_type ps:
s.getRerunPrescales())
131 cout << ps.first <<
": " << ps.second <<
", ";
133 if(
s.getStreamPrescales().size()>0 ) {
134 cout <<
", stream prescales: ";
135 for( HLTPrescale::PrescaleMap_t::value_type str_ps:
s.getStreamPrescales())
136 cout << str_ps.first <<
": " << str_ps.second <<
", ";
◆ printNameIdV()
void TrigConfData::printNameIdV |
( |
const std::string & |
indent = "" | ) |
const |
|
inherited |
◆ reset()
void TrigConf::HLTPrescaleSet::reset |
( |
| ) |
|
◆ setComment()
void TrigConf::TrigConfData::setComment |
( |
const std::string & |
c | ) |
|
|
inlineinherited |
◆ setId()
void TrigConf::TrigConfData::setId |
( |
unsigned int |
id | ) |
|
|
inlineinherited |
◆ setIOV() [1/2]
void TrigConf::HLTPrescaleSet::setIOV |
( |
uint32_t |
start_run, |
|
|
uint32_t |
start_lb, |
|
|
uint32_t |
end_run, |
|
|
uint32_t |
end_lb |
|
) |
| |
◆ setIOV() [2/2]
void TrigConf::HLTPrescaleSet::setIOV |
( |
uint64_t |
start, |
|
|
uint64_t |
end |
|
) |
| |
◆ setName()
void TrigConf::TrigConfData::setName |
( |
const std::string & |
name | ) |
|
|
inlineinherited |
◆ setPrescale()
◆ setSMK()
void TrigConf::TrigConfData::setSMK |
( |
int |
id | ) |
|
|
inlineinherited |
◆ setSuperMasterTableId()
void TrigConf::TrigConfData::setSuperMasterTableId |
( |
int |
id | ) |
|
|
inlineinherited |
◆ setVersion()
void TrigConf::TrigConfData::setVersion |
( |
unsigned int |
version | ) |
|
|
inlineinherited |
◆ size()
size_t TrigConf::HLTPrescaleSet::size |
( |
HLTLevel |
level = HLT | ) |
const |
|
inline |
◆ smk()
unsigned int TrigConf::TrigConfData::smk |
( |
| ) |
const |
|
inlineinherited |
◆ superMasterTableId()
int TrigConf::TrigConfData::superMasterTableId |
( |
| ) |
const |
|
inlineinherited |
◆ thePrescale()
◆ version()
unsigned int TrigConf::TrigConfData::version |
( |
| ) |
const |
|
inlineinherited |
◆ operator<<
◆ m_comment
std::string TrigConf::TrigConfData::m_comment |
|
privateinherited |
◆ m_id
unsigned int TrigConf::TrigConfData::m_id |
|
privateinherited |
◆ m_iovend
uint64_t TrigConf::HLTPrescaleSet::m_iovend |
|
private |
◆ m_iovstart
uint64_t TrigConf::HLTPrescaleSet::m_iovstart |
|
private |
◆ m_name
std::string TrigConf::TrigConfData::m_name |
|
privateinherited |
◆ m_scalers
std::array<ScalingMap_t, 3> TrigConf::HLTPrescaleSet::m_scalers |
|
private |
◆ m_smk
unsigned int TrigConf::TrigConfData::m_smk |
|
privateinherited |
◆ m_version
unsigned int TrigConf::TrigConfData::m_version |
|
privateinherited |
The documentation for this class was generated from the following files: