39 *result = strtol(c, &endptr, 0);
40 return !errno && *endptr ==
'\0';
45 const unsigned ind =
static_cast<unsigned>(subdet);
62 vector<string> tokens(istream_iterator<string>{iss},
63 istream_iterator<string>{});
64 if (tokens.size() == 4)
67 int ieta, iphi,
depth;
const char * hcalSubdetectorName(HcalSubdetector subdet)
static const unsigned nSsubdetNames
static bool parseSubdetector(const char *c, HcalSubdetector *result)
HcalDetId parseHcalDetId(const std::string &s)
static bool parse_int(const char *c, int *result)
static const char * subdetNames[]