1 #ifndef HLTReco_HLTPrescaleTable_h 2 #define HLTReco_HLTPrescaleTable_h 30 std::map<std::string,std::vector<unsigned int> >
table_;
37 unsigned int size()
const {
return labels_.size();}
46 const std::map<std::string,std::vector<unsigned int> >::const_iterator it(table_.find(trigger));
47 if ((it==table_.end()) || (
set>=it->second.size())) {
50 return it->second[
set];
59 set_(
set), labels_(labels), table_(
table) {
61 const unsigned int n(labels_.size());
62 assert((((set_==0)&&(
n==0)) || (set_<
n)));
63 const std::map<std::string,std::vector<unsigned int> >::const_iterator
ib(table_.begin());
64 const std::map<std::string,std::vector<unsigned int> >::const_iterator ie(table_.end());
66 assert (it->second.size()==
n);
76 unsigned int set()
const {
return set_;}
78 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