Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ElecDensCenEnergy.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_ElecDensCenEnergy_hh
15 #define INCLUDED_core_scoring_electron_density_ElecDensCenEnergy_hh
16 
17 
18 // AUTO-REMOVED #include <core/scoring/electron_density/ElecDensEnergies.fwd.hh>
19 
20 // Unit Headers
21 // AUTO-REMOVED #include <utility/vector1.hh>
22 // AUTO-REMOVED #include <numeric/xyzMatrix.fwd.hh>
23 // AUTO-REMOVED #include <numeric/xyzVector.io.hh>
24 // AUTO-REMOVED #include <numeric/xyzVector.hh>
25 // AUTO-REMOVED #include <numeric/xyz.functions.hh>
26 // AUTO-REMOVED #include <utility/exit.hh>
27 
28 // Package headers
31 
32 // AUTO-REMOVED #include <core/scoring/methods/ContextIndependentLRTwoBodyEnergy.hh>
33 // AUTO-REMOVED #include <core/scoring/methods/WholeStructureEnergy.hh>
34 // AUTO-REMOVED #include <core/scoring/electron_density/ElectronDensity.hh>
35 
36 // Project headers
37 #include <core/pose/Pose.fwd.hh>
38 
39 #include <utility/vector1.hh>
40 
41 
42 // Utility headers
43 
44 namespace core {
45 namespace scoring {
46 namespace electron_density {
47 
48 ///
50 public:
52 
53 public:
54 
55  ///
57 
58  /// clone
59  virtual
61  clone() const;
62 
63  /////////////////////////////////////////////////////////////////////////////
64  // scoring
65  /////////////////////////////////////////////////////////////////////////////
66 
68  long_range_type() const;
69 
70 
71  virtual bool defines_residue_pair_energy(
72  pose::Pose const & pose,
73  Size res1,
74  Size res2
75  ) const;
76 
77  virtual void setup_for_scoring( pose::Pose & pose, ScoreFunction const & ) const;
78 
79  virtual void setup_for_derivatives( pose::Pose & pose, ScoreFunction const & sf) const;
80 
81  virtual bool defines_intrares_energy( EnergyMap const & ) const { return true; }
82 
83  /// @brief Evaluate the intra-residue constraint energy for a given residue
84  virtual void eval_intrares_energy(
85  conformation::Residue const & rsd,
86  pose::Pose const & pose,
87  ScoreFunction const & sfxn,
88  EnergyMap & emap
89  ) const ;
90 
91 
92  ///
93  virtual void residue_pair_energy(
94  conformation::Residue const & rsd1,
95  conformation::Residue const & rsd2,
96  pose::Pose const & pose,
97  ScoreFunction const & sfxn,
98  EnergyMap & emap
99  ) const;
100 
102 
103  /// called at the end of energy evaluation
104  virtual void finalize_total_energy(
105  pose::Pose const & pose,
106  ScoreFunction const &,
107  EnergyMap & totals
108  ) const;
109 
110 
111  /// called during gradient-based minimization inside dfunc
112  virtual void eval_atom_derivative(
113  id::AtomID const & id,
114  pose::Pose const & pose,
115  kinematics::DomainMap const &, // domain_map,
116  ScoreFunction const & sfxn,
117  EnergyMap const & weights,
118  Vector & F1,
119  Vector & F2
120  ) const;
121 
122 
123  virtual void indicate_required_context_graphs( utility::vector1< bool > & /*context_graphs_required*/ ) const {};
124 
125  /////////////////////////////////////////////////////////////////////////////
126  // data
127  /////////////////////////////////////////////////////////////////////////////
128 
129 
130 private:
131  bool map_loaded;
132  mutable bool pose_is_proper;
133  mutable double structure_score;
134  mutable int nreses;
135 virtual
136 core::Size version() const;
137 };
138 
139 
140 }
141 }
142 }
143 
144 #endif
145