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;
73 result =
HcalDetId(subdet, ieta, iphi, depth);
static const unsigned nSsubdetNames
static bool parseSubdetector(const char *c, HcalSubdetector *result)
const char * hcalSubdetectorName(HcalSubdetector subdet)
static bool parse_int(const char *c, int *result)
HcalDetId parseHcalDetId(const std::string &s)
static const char * subdetNames[]