12 std::ifstream myfile(textFileName.c_str());
13 if (!myfile.is_open())
14 throw cms::Exception(
"FileAccess") <<
"Unable to open input text file";
20 while (!myfile.eof() && myfile.good()) {
25 firstchar = myfile.peek();
27 if (firstchar ==
'#') {
29 getline(myfile, line);
30 }
else if (firstchar ==
'!') {
33 myfile >> firststring >> structure;
35 getline(myfile, endofline);
36 m_uId.second = alignableObjectId.stringToId(structure.c_str());
38 myfile >> m_uId.first;
43 m_inputs.push_back(tmpInput);
46 getline(myfile, endofline);
void readFile(const std::string &textFileName)
Read given text file.
std::vector< Scalar > Scalars
Allows conversion between type and name, and vice-versa.
std::pair< UniqueId, align::Scalars > PairType
std::pair< align::ID, align::StructureType > UniqueId