8 m_selections(),m_masks()
12 m_selections(),m_masks()
18 m_selections(),m_masks()
24 m_selections(),m_masks()
27 const std::vector<std::string> selstrings = selconfig.
getUntrackedParameter<std::vector<std::string> >(
"selection");
37 if(selstring.substr(0,2) ==
"0x") {
38 sscanf(selstring.c_str(),
"%x-%x",&mask,&
selection);
41 sscanf(selstring.c_str(),
"%u-%u",&mask,&
selection);
47 LogDebug(
"Selection added") <<
"Selection " << selection <<
" with mask " << mask <<
" added";
53 for(std::vector<std::string>::const_iterator selstring=selstrings.begin();selstring!=selstrings.end();++selstring) {
bool operator()(const DetId &detid) const
T getUntrackedParameter(std::string const &, T const &) const
bool isSelected(const DetId &detid) const
std::vector< unsigned int > m_masks
uint32_t rawId() const
get the raw id
std::vector< unsigned int > m_selections
void addSelection(const std::string &selstring)