Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RG_Energy_Fast.hh
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 core/scoring/methods/RG_Energy_Fast.hh
11 /// @brief Statistically derived rotamer pair potential class declaration
12 /// @author James Thompson
13 
14 
15 #ifndef INCLUDED_core_scoring_methods_RG_Energy_Fast_hh
16 #define INCLUDED_core_scoring_methods_RG_Energy_Fast_hh
17 
18 
19 // Package headers
20 #include <basic/datacache/CacheableData.hh>
21 
25 
26 // Project headers
27 #include <core/pose/Pose.fwd.hh>
28 #include <utility/vector1.fwd.hh>
29 
30 #include <utility/vector1.hh>
31 #include <numeric/xyzVector.hh>
32 
33 
34 // Utility headers
35 
36 
37 namespace core {
38 namespace scoring {
39 namespace methods {
40 
41 class RG_MinData: public basic::datacache::CacheableData {
42 public:
43  RG_MinData(): com(0,0,0), rg(0), nres_scored(0) {}
44 
45  basic::datacache::CacheableDataOP clone() const {
46  return new RG_MinData(*this);
47  }
48 
52 };
53 
55 
57 public:
59 public:
60 
61  /// @brief Defines a center of mass based RG calculation that is O(n) rather
62  /// than O(n^2).
64 
65  /// clone
66  virtual
68  clone() const;
69 
70  /////////////////////////////////////////////////////////////////////////////
71  // scoring
72  /////////////////////////////////////////////////////////////////////////////
73 
74  void
76  pose::Pose & pose,
77  ScoreFunction const &,
78  EnergyMap & totals
79  ) const;
80 
81 
83  calculate_rg_score( pose::Pose const & pose ) const;
84 
87  pose::Pose const & pose,
88  utility::vector1< bool > const & relevant_residues) const;
89 
90  // derivatives
91  virtual void setup_for_derivatives( pose::Pose & pose, ScoreFunction const & sf) const;
92 
93  virtual void
95  id::AtomID const & id,
96  pose::Pose const & pose,
97  kinematics::DomainMap const &domain_map,
98  ScoreFunction const & sfxn,
99  EnergyMap const & weights,
100  Vector & F1,
101  Vector & F2
102  ) const;
103 
104 
105  virtual
106  core::Size version() const;
107 
108  void
110  utility::vector1< bool > & /*context_graphs_required*/
111  ) const {}
112 
113 private:
114  RG_MinData const & mindata_from_pose( pose::Pose const & ) const;
116 };
117 
118 
119 }
120 }
121 }
122 
123 #endif // INCLUDED_core_scoring_methods_RG_Energy_Fast_HH