1 #ifndef DQMOFFLINE_TRIGGER_EGHLTTRIGCODES 2 #define DQMOFFLINE_TRIGGER_EGHLTTRIGCODES 27 std::vector<std::pair<std::string, TrigBitSet> >
codeDefs_;
46 void setCode(
const char* descript,
int bitNr);
49 static bool keyComp(
const std::pair<std::string, TrigBitSet>& lhs,
const std::pair<std::string, TrigBitSet>& rhs);
50 void sort() { std::sort(codeDefs_.begin(), codeDefs_.end(),
keyComp); }
51 size_t size()
const {
return codeDefs_.size(); }
TrigBitSet getCode(const char *descript) const
void setCode(const char *descript, TrigBitSet code)
TrigBitSet getCode(const std::string &descript) const
static TrigCodes * makeCodes(std::vector< std::string > &filterNames)
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
TrigCodes & operator=(const TrigCodes &)=delete
static const int maxNrBits_
void getCodeName(TrigBitSet code, std::string &id) const
std::bitset< maxNrBits_ > TrigBitSet
static bool keyComp(const std::pair< std::string, TrigBitSet > &lhs, const std::pair< std::string, TrigBitSet > &rhs)