HLT chain configuration information.
More...
#include <HLTPrescaleSet.h>
|
| | HLTPrescaleSet () |
| | default constructor
|
| virtual | ~HLTPrescaleSet () override=default |
| | destructor
|
| 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
|
| 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
|
| 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
|
| bool | isValid (uint32_t run, uint32_t lb) const |
| | checks if run/lb are in the current IOV
|
| 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 |
|
| std::ostream & | indent (std::ostream &o, int lvl, int size) 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.
42 {
44 ScalingMap_t::const_iterator
s = map.find(chain_counter);
45 if(s==map.end()) {
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");
48 }
50}
std::array< ScalingMap_t, 3 > m_scalers
std::unordered_map< unsigned int, HLTPrescale > ScalingMap_t
◆ getPrescales()
◆ hasPrescale()
| bool TrigConf::HLTPrescaleSet::hasPrescale |
( |
unsigned int | counter, |
|
|
TrigConf::HLTLevel | level = HLT ) const |
Definition at line 35 of file HLTPrescaleSet.cxx.
35 {
37 return !map_for_level.empty() && map_for_level.count(counter)>0;
38}
◆ id()
| unsigned int TrigConf::TrigConfData::id |
( |
| ) |
const |
|
inlineinherited |
◆ indent()
| std::ostream & TrigConfData::indent |
( |
std::ostream & | o, |
|
|
int | lvl, |
|
|
int | size ) const |
|
protectedinherited |
Definition at line 23 of file TrigConfData.cxx.
23 {
25 if(
width==0)
return o;
26 o << setw(lvl*size) << " ";
27 return o;
28}
◆ 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.
89 {
90 unsigned long long iovtime =
run;
91 iovtime <<= 32;
93
95}
◆ 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.
105 {
106 if(detail>=1) {
111 if(detail>=3) {
112 cout.unsetf(ios_base::floatfield);
113 for(
unsigned int i=
L2;
i<=
HLT;
i++) {
115 if(
size(level)==0)
continue;
117 cout <<
indent <<
" " << (
level==
L2?
"L2":
"EF") <<
" prescales:" << endl;
118
120
122 auto s_iter = map.find(cc);
123 if(s_iter==map.end()) continue;
124 const HLTPrescale&
s = s_iter->second;
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 <<
", ";
132 }
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 << ", ";
137 }
138 cout << endl;
139 }
140 }
141 }
142 }
143}
size_t size(HLTLevel level=HLT) const
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") const
◆ printNameIdV()
| void TrigConfData::printNameIdV |
( |
const std::string & | indent = "" | ) |
const |
|
inherited |
Definition at line 31 of file TrigConfData.cxx.
31 {
34 cout <<
" (id=" <<
id() <<
"/v=" <<
version() <<
")";
35 cout << endl;
38}
const std::string & name() const
const std::string & comment() const
unsigned int version() const
◆ 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()
Definition at line 22 of file HLTPrescaleSet.cxx.
22 {
24 ScalingMap_t::iterator
s = map.find(chain_counter);
25 if(s==map.end()) {
26 s = map.insert(ScalingMap_t::value_type(chain_counter,
sc)).first;
27 } else {
29 }
31}
◆ 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()
Definition at line 53 of file HLTPrescaleSet.cxx.
53 {
55 ScalingMap_t::iterator
s = map.find(chain_counter);
56 if(s==map.end())
57 s = map.insert(ScalingMap_t::value_type(chain_counter, HLTPrescale())).first;
58
60}
◆ 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: