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