Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
scoring
methods
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
15
#include <
core/scoring/methods/WaterAdductIntraEnergy.hh
>
16
#include <
core/scoring/methods/WaterAdductIntraEnergyCreator.hh
>
17
18
// Package headers
19
#include <
core/scoring/methods/ContextIndependentOneBodyEnergy.hh
>
20
//#include <core/scoring/ScoringManager.hh>
21
#include <
core/scoring/EnergyMap.hh
>
22
23
// Project headers
24
#include <
core/conformation/Residue.hh
>
25
// AUTO-REMOVED #include <core/pose/Pose.hh>
26
27
#include <
core/chemical/AtomType.hh
>
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
39
methods::EnergyMethodOP
40
WaterAdductIntraEnergyCreator::create_energy_method
(
41
methods::EnergyMethodOptions
const
&
42
)
const
{
43
return
new
WaterAdductIntraEnergy
;
44
}
45
46
ScoreTypes
47
WaterAdductIntraEnergyCreator::score_types_for_method
()
const
{
48
ScoreTypes
sts;
49
sts.push_back(
h2o_intra
);
50
return
sts;
51
}
52
53
54
/// ctor
55
WaterAdductIntraEnergy::WaterAdductIntraEnergy
() :
56
parent
( new
WaterAdductIntraEnergyCreator
)
57
{}
58
59
/// clone
60
EnergyMethodOP
61
WaterAdductIntraEnergy::clone
()
const
62
{
63
return
new
WaterAdductIntraEnergy
;
64
}
65
66
/////////////////////////////////////////////////////////////////////////////
67
// methods for ContextIndependentOneBodyEnergies
68
/////////////////////////////////////////////////////////////////////////////
69
70
///
71
void
72
WaterAdductIntraEnergy::residue_energy
(
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
87
WaterAdductIntraEnergy::eval_dof_derivative
(
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
101
WaterAdductIntraEnergy::indicate_required_context_graphs
(
utility::vector1< bool >
& )
const
102
{}
103
core::Size
104
WaterAdductIntraEnergy::version
()
const
105
{
106
return
1;
// Initial versioning
107
}
108
109
110
}
// methods
111
}
// scoring
112
}
// core
113
Generated on Sat Jun 1 2013 11:39:18 for Rosetta 3.5 by
1.8.4