18 string subname =
name_.substr(
pos, 2);
22 if (subname.substr(0, 1) ==
"L")
23 layer = stoi(subname.substr(1, 1));
24 else if (subname.substr(0, 1) ==
"D")
25 disk = stoi(subname.substr(1, 1));
27 throw cms::Exception(
"BadConfig") << __FILE__ <<
" " << __LINE__ <<
" name = " <<
name_ <<
" subname = " << subname
28 <<
" " << layer <<
" " << disk;
47 static const std::set<char> overlapset = {
48 'X',
'Y',
'W',
'Q',
'R',
'S',
'T',
'Z',
'x',
'y',
'w',
'q',
'r',
's',
't',
'z'};
49 overlap = overlapset.find(subname) != overlapset.end();
51 static const std::set<char> extraset = {
'I',
'J',
'K',
'L'};
52 extra = extraset.find(subname) != extraset.end();
54 static const std::set<char> extendedset = {
55 'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'x',
'y',
'z',
'w',
'q',
'r',
's',
't'};
56 extended = extendedset.find(subname) != extendedset.end();
61 size_t pos =
data.find(toSearch);
64 while (
pos != std::string::npos) {
66 data.replace(
pos, toSearch.size(), replaceStr);
68 pos =
data.find(toSearch,
pos + replaceStr.size());
97 out_.open(
fname.c_str(), std::ofstream::app);
100 out_ <<
"BX = " << (bitset<3>)
bx_ <<
" Event : " <<
event_ << endl;
109 size_t found_pos = haystack.find(needle,
pos);
110 if (0 == nth || string::npos == found_pos)
112 return find_nth(haystack, found_pos + 1, needle, nth - 1);