2 #include<boost/tokenizer.hpp>
19 boost::char_separator<char>
sep(
" \t",
";");
20 typedef boost::tokenizer<boost::char_separator<char> > myTokType;
23 myTokType tok(totaline, sep);
24 int ieta1=0, ieta2=0, iphi1=-1, iphi2=-1, depth1=1, depth2=4;
28 for (myTokType::iterator beg=tok.begin(); beg!=tok.end() && phase>=0; ++beg){
29 std::cout << phase <<
" : <" << *beg <<
">\n";
31 if (phase==0)
continue;
32 if (phase!=1 && phase!=5 && phase!=7) {
33 errors <<
"Expect 1, 5, or 7 arguments, got " << phase;
46 case (1) : ieta1=atoi(beg->c_str());
break;
47 case (2) : ieta2=atoi(beg->c_str());
break;
48 case (3) : iphi1=atoi(beg->c_str());
break;
49 case (4) : iphi2=atoi(beg->c_str()); depth1=1; depth2=4;
break;
50 case (5) : depth1=atoi(beg->c_str());
break;
51 case (6) : depth2=atoi(beg->c_str());
break;
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)