30 std::string::size_type commentPosition = line.find(
'#');
31 if(commentPosition != std::string::npos)
32 line.erase(commentPosition);
35 std::vector<std::string> result;
37 std::istringstream stringIn(line);
42 result.push_back(readWord);
56 std::vector<int> result;
58 for(
unsigned int i = 0; i <
m_numInts; ++i)
64 std::transform(w.begin(), w.end(), w.begin(),
upper);
66 if (w.compare(0,3,
"EMB")==0 || w[0]==
'B')
74 else if (w==
"C" || w==
"c")
80 if(canBeWildcard && w ==
"*")
83 result.push_back(idComponent);
86 (*m_log) << MSG::WARNING <<
"LArBadChannelParser REJECTED line " <<
m_linenumber \
87 <<
" -\t word " << i + 1 <<
" must be a non-negative integer " \
88 << (canBeWildcard ?
"or " :
"and not " ) \
89 <<
"a wildcard: " << words[i] <<
endmsg;