1 #ifndef HLTReco_HLTPrescaleTable_h
2 #define HLTReco_HLTPrescaleTable_h
32 std::map<std::string,std::vector<unsigned int> >
table_;
42 unsigned int prescale(
const std::string& trigger)
const {
47 unsigned int prescale(
unsigned int set,
const std::string& trigger)
const {
48 const std::map<std::string,std::vector<unsigned int> >::const_iterator it(
table_.find(trigger));
49 if ((it==
table_.end()) || (set>=it->second.size())) {
52 return it->second[
set];
63 const unsigned int n(
labels_.size());
65 const std::map<std::string,std::vector<unsigned int> >::const_iterator ib(
table_.begin());
66 const std::map<std::string,std::vector<unsigned int> >::const_iterator ie(
table_.end());
67 for (
std::map<std::string,std::vector<unsigned int> >::const_iterator it=ib; it!=ie; ++it) {
68 assert (it->second.size()==
n);
80 const std::map<std::string,std::vector<unsigned int> >&
table()
const {
return table_;}
unsigned int set() const
low-level const accessors for data members
The single EDProduct containing the HLT Prescale Table.
const std::map< std::string, std::vector< unsigned int > > & table() const
const std::vector< std::string > & labels() const
std::map< std::string, std::vector< unsigned int > > table_
prescale sets keyed on trigger path name
unsigned int set_
data members
unsigned int prescale(const std::string &trigger) const
high-level user access method: prescale for given trigger path
bool isProductEqual(const HLTPrescaleTable &that) const
merge rule - just checking equality
unsigned int prescale(unsigned int set, const std::string &trigger) const
high-level user access method: prescale for given trigger path
HLTPrescaleTable(unsigned int set, const std::vector< std::string > &labels, const std::map< std::string, std::vector< unsigned int > > &table)
real constructor taking payload
unsigned int size() const
consistency condition: all vectors must have the same length
HLTPrescaleTable()
default constructor
std::vector< std::string > labels_
names of prescale sets