1 #ifndef DQMOFFLINE_TRIGGER_EGHLTTRIGCODES 2 #define DQMOFFLINE_TRIGGER_EGHLTTRIGCODES 29 std::vector<std::pair<std::string,TrigBitSet> >
codeDefs_;
38 TrigBitSet
getCode(
const char *descript)
const;
47 void setCode(
const char *descript,TrigBitSet code);
48 void setCode(
const char *descript,
int bitNr);
51 static bool keyComp(
const std::pair<std::string,TrigBitSet>& lhs,
const std::pair<std::string,TrigBitSet>& rhs);
52 void sort(){std::sort(codeDefs_.begin(),codeDefs_.end(),
keyComp);}
53 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)
TrigCodes & operator=(const TrigCodes &)=delete
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
static const int maxNrBits_
void getCodeName(TrigBitSet code, std::string &id) const
static bool keyComp(const std::pair< std::string, TrigBitSet > &lhs, const std::pair< std::string, TrigBitSet > &rhs)
std::bitset< maxNrBits_ > TrigBitSet