Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ElecDensEnergy.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/ElecDensEnergy.hh
11 /// @brief Scoring a structure's fit to electron density
12 /// @author Frank DiMaio
13 
14 #ifndef INCLUDED_core_scoring_electron_density_ElecDensEnergy_hh
15 #define INCLUDED_core_scoring_electron_density_ElecDensEnergy_hh
16 
19 
20 // Project headers
21 #include <core/pose/Pose.fwd.hh>
22 
23 #include <utility/vector1.hh>
24 
25 
26 // Utility headers
27 
28 namespace core {
29 namespace scoring {
30 namespace electron_density {
31 
32 ///
34 public:
36 
37 public:
38 
39  ///
41 
42 
43  /// clone
44  virtual
46  clone() const;
47 
48  /////////////////////////////////////////////////////////////////////////////
49  // scoring
50  /////////////////////////////////////////////////////////////////////////////
51 
53  long_range_type() const;
54 
55 
56  virtual
57  bool
59  pose::Pose const & pose,
60  Size res1,
61  Size res2
62  ) const;
63 
64  virtual
65  void
66  setup_for_scoring( pose::Pose & pose, ScoreFunction const & ) const;
67 
68  virtual
69  void
70  setup_for_derivatives( pose::Pose & pose, ScoreFunction const & sf) const;
71 
72  virtual
73  bool
74  defines_intrares_energy( EnergyMap const & ) const { return true; }
75 
76  /// @brief Evaluate the intra-residue constraint energy for a given residue
77  virtual
78  void
80  conformation::Residue const & rsd,
81  pose::Pose const & pose,
82  ScoreFunction const & sfxn,
83  EnergyMap & emap
84  ) const ;
85 
86 
87  ///
88  virtual
89  void
91  conformation::Residue const & rsd1,
92  conformation::Residue const & rsd2,
93  pose::Pose const & pose,
94  ScoreFunction const & sfxn,
95  EnergyMap & emap
96  ) const;
97 
99 
100  /// called at the end of energy evaluation
101  virtual
102  void
104  pose::Pose const & pose,
105  ScoreFunction const &,
106  EnergyMap & totals
107  ) const;
108 
109 
110  /// called during gradient-based minimization inside dfunc
111  /**
112  F1 and F2 are not zeroed -- contributions from this atom are
113  just summed in
114  **/
115  virtual
116  void
118  id::AtomID const & id,
119  pose::Pose const & pose,
120  kinematics::DomainMap const &, // domain_map,
121  ScoreFunction const & sfxn,
122  EnergyMap const & weights,
123  Vector & F1,
124  Vector & F2
125  ) const;
126 
127 
128  virtual
129  void indicate_required_context_graphs( utility::vector1< bool > & /* context_graphs_required */ ) const {
130  //context_graphs_required[ ten_A_neighbor_graph ] = true;
131  };
132 
133  /////////////////////////////////////////////////////////////////////////////
134  // data
135  /////////////////////////////////////////////////////////////////////////////
136 
137 
138 private:
139  bool map_loaded;
140  mutable bool pose_is_proper;
141  virtual
142  core::Size version() const;
143 };
144 
145 
146 }
147 }
148 }
149 
150 #endif
151