22 #include <basic/Tracer.hh>
26 #include <basic/resource_manager/ResourceManager.hh>
27 #include <basic/resource_manager/util.hh>
30 #include <utility/exit.hh>
31 #include <utility/vector1.hh>
38 using std::stringstream;
47 namespace rotamer_recovery {
49 static Tracer
TR(
"protocol.rotamer_recovery.RRProtocolReferenceStructure");
58 reference_pose_(reference_pose)
63 reference_pose_(src.reference_pose_)
70 return "RRProtocolReferenceStructure";
95 using namespace basic::resource_manager;
98 if(ResourceManager::get_instance()->
99 has_resource_with_description(
"native")){
102 stringstream err_msg;
104 <<
"Attempting to run the Rotamer Recovery against a Reference Structure, "
105 <<
"but no pose with resource decription could be found.";
106 utility_exit_with_message(err_msg.str());
112 stringstream err_msg;
114 <<
"Attempting to run the Rotamer Recovery against Reference Structure protocol, "
115 <<
"but the saved structure has a different number of residues.";
116 utility_exit_with_message(err_msg.str());