Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WaterAdductIntraEnergy.cc
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/WaterAdductIntraEnergy.hh
11 /// @brief Energetic offset/cost for placing a water adduct on an amino or nucleic acid
12 /// @author Jim Havranek
13 
14 // Unit headers
17 
18 // Package headers
20 //#include <core/scoring/ScoringManager.hh>
22 
23 // Project headers
25 // AUTO-REMOVED #include <core/pose/Pose.hh>
26 
28 #include <utility/vector1.hh>
29 
30 
31 
32 namespace core {
33 namespace scoring {
34 namespace methods {
35 
36 
37 /// @details This must return a fresh instance of the WaterAdductIntraEnergy class,
38 /// never an instance already in use
42 ) const {
43  return new WaterAdductIntraEnergy;
44 }
45 
48  ScoreTypes sts;
49  sts.push_back( h2o_intra );
50  return sts;
51 }
52 
53 
54 /// ctor
57 {}
58 
59 /// clone
62 {
63  return new WaterAdductIntraEnergy;
64 }
65 
66 /////////////////////////////////////////////////////////////////////////////
67 // methods for ContextIndependentOneBodyEnergies
68 /////////////////////////////////////////////////////////////////////////////
69 
70 ///
71 void
73  conformation::Residue const & rsd,
74  pose::Pose const & ,
75  EnergyMap & emap
76 ) const
77 {
78  // Sum over all waters
79  for( int atm = 1, atme = rsd.natoms() ; atm <= atme ; ++atm ) {
80  if( rsd.atom_type( atm ).is_h2o() ) emap[ h2o_intra ] += 1.0;
81  }
82 }
83 
84 
85 ///
86 Real
88  id::DOF_ID const &,// dof_id,
89  id::TorsionID const &, // tor_id
90  pose::Pose const &, // pose
91  ScoreFunction const &, //sfxn
92  EnergyMap const & // weights
93 ) const
94 {
95  return 0.0;
96 }
97 
98 /// @brief WaterAdductIntraEnergy is context independent; indicates that no
99 /// context graphs are required
100 void
102 {}
105 {
106  return 1; // Initial versioning
107 }
108 
109 
110 } // methods
111 } // scoring
112 } // core
113