Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HackAroEnergy.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/HackAroEnergy.hh
11 /// @brief Electrostatics for RNA
12 /// @author Rhiju Das
13 
14 
15 #ifndef INCLUDED_core_scoring_hackaro_HackAroEnergy_hh
16 #define INCLUDED_core_scoring_hackaro_HackAroEnergy_hh
17 
18 /// Unit Headers
22 
24 
25 #include <utility/vector1.hh>
26 
27 
28 namespace core {
29 namespace scoring {
30 namespace hackaro {
31 
32 
33 ///
35 public:
37 
38 public:
39 
40  ///
41  HackAroEnergy();
42 
43  /// clone
44  virtual
46  clone() const;
47 
48  /////////////////////////////////////////////////////////////////////////////
49  // scoring
50  /////////////////////////////////////////////////////////////////////////////
51 
52  virtual
53  void
54  setup_for_scoring( pose::Pose & pose, ScoreFunction const & ) const;
55 
56  virtual
57  void
58  setup_for_derivatives( pose::Pose & pose, ScoreFunction const & ) const;
59 
60  virtual
61  void
63  conformation::Residue const & rsd1,
64  conformation::Residue const & rsd2,
65  pose::Pose const & pose,
66  ScoreFunction const &,
67  EnergyMap & emap
68  ) const;
69 
70 
71  virtual
72  void
74  conformation::Residue const &,
75  pose::Pose const &,
76  ScoreFunction const &,
77  EnergyMap &
78  ) const {}
79 
80 
81  virtual
82  void
84  id::AtomID const & atom_id,
85  pose::Pose const & pose,
86  kinematics::DomainMap const & domain_map,
87  ScoreFunction const & scorefxn,
88  EnergyMap const & weights,
89  Vector & F1,
90  Vector & F2
91  ) const;
92 
93  virtual
94  bool
95  defines_intrares_energy( EnergyMap const & /*weights*/ ) const { return false; }
96 
97  virtual
98  Distance
100 
101  virtual
102  void indicate_required_context_graphs( utility::vector1< bool > & context_graphs_required ) const;
103 
104 private:
105 
106  Vector
107  get_centroid( conformation::Residue const & rsd ) const;
108 
110  get_base_coordinate_system( conformation::Residue const & rsd, Vector const & centroid ) const;
111 
112  core::Real
114  Real const cos_theta,
115  Real & deriv ) const;
116 
117  core::Real
119  Real const dist,
120  Real & deriv ) const;
121 
122  void
124  conformation::Residue const & rsd1,
125  conformation::Residue const & rsd2,
126  EnergyMap & emap) const;
127 
128 
129  void
131  conformation::Residue const & rsd1,
132  conformation::Residue const & rsd2,
133  EnergyMap const & weights,
134  Vector & F1,
135  Vector & F2
136  ) const;
137 virtual
138 core::Size version() const;
139 
140 private:
141 
142 };
143 
144 
145 }
146 }
147 }
148 
149 #endif