Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RRProtocol.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file src/protocols/rotamer_recovery/RRProtocol.cc
11 /// @author Matthew O'Meara (mattjomeara@gmail.com)
12 
13 // Unit Headers
17 
18 // Project Headers
19 // AUTO-REMOVED #include <core/chemical/ResidueType.hh>
20 // AUTO-REMOVED #include <core/conformation/Residue.hh>
21 #include <basic/Tracer.hh>
22 
23 // C++ Headers
24 // AUTO-REMOVED #include <string>
25 
26 #include <utility/vector1.hh>
27 
28 
29 using std::string;
30 using std::endl;
31 using core::Size;
32 using core::Real;
34 using core::pose::Pose;
35 using basic::Tracer;
36 
37 namespace protocols {
38 namespace rotamer_recovery {
39 
40 /// @details Auto-generated virtual destructor
42 
43 static Tracer TR("protocol.moves.RRProtocol");
44 
45 bool
47  RRComparerOP comparer,
48  RRReporterOP reporter,
49  Pose const & pose1,
50  Pose const & pose2,
51  Residue const & res1,
52  Residue const & res2
53 ) {
54 
55  Real score;
56  bool recovered;
57  if(comparer->measure_rotamer_recovery(
58  pose1, pose2, res1, res2, score, recovered)){
59  reporter->report_rotamer_recovery(
60  pose1, pose2, res1, res2, score, recovered );
61  }
62  return recovered;
63 }
64 
65 } // rotamer_recovery
66 } // protocols