3 #include <boost/tokenizer.hpp> 22 boost::char_separator<char> sep(
" \t",
";");
23 typedef boost::tokenizer<boost::char_separator<char> > myTokType;
27 myTokType tok(totaline, sep);
28 int ieta1 = 0,
ieta2 = 0, iphi1 = -1, iphi2 = -1, depth1 = 1, depth2 = 4;
32 for (myTokType::iterator beg = tok.begin(); beg != tok.end() &&
phase >= 0; ++beg) {
38 errors <<
"Expect 1, 5, or 7 arguments, got " <<
phase;
54 ieta1 = atoi(beg->c_str());
57 ieta2 = atoi(beg->c_str());
60 iphi1 = atoi(beg->c_str());
63 iphi2 = atoi(beg->c_str());
68 depth1 = atoi(beg->c_str());
71 depth2 = atoi(beg->c_str());
Log< level::Info, true > LogVerbatim
void excludeSubdetector(HcalSubdetector subdet)
std::string parse(const std::string &line)
static HcalSubdetector determineSubdet(const std::string &item)
void exclude(const HcalDetId &id)
HcalTopologyRestrictionParser(HcalTopology &target)