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;