40 #include <basic/Tracer.hh>
43 #include <utility/exit.hh>
53 #include <utility/vector1.hh>
61 basic::Tracer
TR_PcsInputFile(
"protocols.scoring.methods.pcs.PcsInputFile");
64 filename_(
""), weight_(0)
66 utility_exit_with_message(
"You shouldn't call the empty constructor for PcsInputFile class" );
73 filename_(other.filename_), weight_(other.weight_)
80 if (
this != &other ) {
97 filename_(std::
string(filename)), weight_(my_weight)
108 std::ifstream myfile;
114 if (!myfile.is_open ()){
115 std::cerr <<
"Unable to open the file '" <<
get_filename().c_str() <<
"'" << std::endl;
119 while( getline( myfile, line ) ) {
121 std::istringstream line_stream( line ,std::istringstream::in);
122 if( (line_stream >> residue_num >> atom_name >> PCS_experimental >> PCS_tolerance).fail()){
146 n = pcs_i_l_a.size();
147 out<<
"Found the following " << n <<
" PCS value in the file " << me.
get_filename() << std::endl;
148 for ( it = pcs_i_l_a.begin(); it != pcs_i_l_a.end(); ++it){
150 if( (i == 1) || (i == 2)){