![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
26 s = map.insert(ScalingMap_t::value_type(chain_counter,
sc)).
first;
37 return !map_for_level.empty() && map_for_level.count(
counter)>0;
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");
66 m_iovstart = start_run; m_iovstart <<= 32; m_iovstart += start_lb;
67 m_iovend = end_run; m_iovend <<= 32; m_iovend +=
end_lb;
81 start_lb = m_iovstart & 0xFFFFFFFF;
82 start_run = m_iovstart>>32;
83 end_lb = m_iovend & 0xFFFFFFFF;
84 end_run = m_iovend>>32;
90 unsigned long long iovtime =
run;
94 return iovtime >= m_iovstart && iovtime<m_iovend;
100 for(
unsigned int i = 0;
i<3; ++
i )
107 cout <<
indent <<
"HLTPrescaleSet "; printNameIdV();
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 <<
", ";
149 o <<
"HLTPrescaleSet " <<
c.name();
150 if(
c.id()>0 ||
c.version()>0) o <<
" (id=" <<
c.id() <<
"/v=" <<
c.version() <<
")";
152 if(
c.comment()!=
"") o <<
"Comment : " <<
c.comment() << endl;
156 if(
c.size(
level)==0)
continue;
158 for(
const TrigConf::HLTPrescaleSet::ScalingMap_t::value_type&
sc:
c.getPrescales(
level)) {
159 o <<
"Chain counter: " << setw(4) <<
sc.first
160 <<
", prescale: " << setw(4) <<
sc.second.prescale()
161 <<
", pass-through: " << setw(4) <<
sc.second.pass_through()
165 o <<
"---------------------------------------------------------- " << endl;
JetConstituentVector::iterator iterator
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
bool hasPrescale(unsigned int counter, TrigConf::HLTLevel level=HLT) const
HLTPrescaleSet()
default constructor
void print(const std::string &indent="", unsigned int detail=1) const override
print the prescale set
int run(int argc, char *argv[])
HLTPrescale & setPrescale(const HLTPrescale &sc, unsigned int chain_counter, HLTLevel level=HLT)
HLTPrescale & thePrescale(unsigned int chain_counter, HLTLevel level)
Forward iterator to traverse the main components of the trigger configuration.
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
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
const HLTPrescale & getPrescale(unsigned int chain_counter, HLTLevel level=HLT) const
HLT chain configuration information.
bool isValid(uint32_t run, uint32_t lb) const
checks if run/lb are in the current IOV
std::unordered_map< unsigned int, HLTPrescale > ScalingMap_t
def end_lb(lumiBlock, lbEventList=[], rateHists=[], totalRateHist=0)
CLASS TO FILL RATE HISTOGRAMS W/ NUMBER OF PASSING EVENTS PER LUMIBLOCK ## lumiblock = specific lumib...
std::string __str__() const override
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