14 std::ifstream myfile( textFileName.c_str() );
15 if ( !myfile.is_open() )
16 throw cms::Exception(
"FileAccess") <<
"Unable to open input text file";
22 while ( !myfile.eof() && myfile.good() )
28 firstchar = myfile.peek();
34 else if (firstchar ==
'!'){
37 myfile >> firststring >> structure;
39 getline(myfile,endofline);
40 m_uId.second = alignableObjectId.stringToId(structure.c_str());
43 myfile >> m_uId.first;
49 m_inputs.push_back( tmpInput );
52 getline(myfile,endofline);
56 if ( myfile.fail() )
break;
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