13 for (
size_t i=0;
i<filterNames.size();
i++) {
28 edm::LogWarning(
"TrigCodes::TrigBitSetMap") <<
" Warning, trying to store at bit "<<bitNr<<
" but max nr bits is "<<
maxNrBits_;
38 if(!found)
codeDefs_.push_back(std::pair<std::string,TrigBitSet>(descript,code));
47 char localDescript[512];
48 strcpy(localDescript,descript);
51 char* codeKey = strtok(localDescript,
":");
65 codeKey = strtok(
NULL,
":");
71 bool TrigCodes::keyComp(
const std::pair<std::string,TrigBitSet>& lhs,
const std::pair<std::string,TrigBitSet>& rhs)
73 return lhs.first < rhs.first;
81 if(!
id.
empty())
id+=
":";
91 std::ostringstream
msg;
92 msg <<
" trig bits defined: "<<std::endl;
TrigBitSet getCode(const char *descript) const
void setCode(const char *descript, TrigBitSet code)
static TrigCodes * makeCodes(std::vector< std::string > &filterNames)
U second(std::pair< T, U > const &p)
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