15 const std::vector<std::string> selstrings = selconfig.
getUntrackedParameter<std::vector<std::string> >(
"selection");
23 if (selstring.substr(0, 2) ==
"0x") {
24 sscanf(selstring.c_str(),
"%x-%x", &mask, &
selection);
26 sscanf(selstring.c_str(),
"%u-%u", &mask, &
selection);
32 LogDebug(
"Selection added") <<
"Selection " << selection <<
" with mask " << mask <<
" added";
36 for (std::vector<std::string>::const_iterator selstring = selstrings.begin(); selstring != selstrings.end();
bool operator()(const DetId &detid) const
T getUntrackedParameter(std::string const &, T const &) const
constexpr uint32_t rawId() const
get the raw id
bool isSelected(const DetId &detid) const
std::vector< unsigned int > m_masks
std::vector< unsigned int > m_selections
void addSelection(const std::string &selstring)