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
CSD_TorsionEnergy.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/.cc
11
///
12
/// @brief
13
/// @author Ian W. Davis
14
/// @author Kristian Kaufmann
15
16
17
#include <
core/scoring/methods/CSD_TorsionEnergy.hh
>
18
19
#include <
core/chemical/ResidueType.hh
>
20
#include <
core/conformation/Residue.hh
>
21
#include <
core/pose/Pose.hh
>
22
#include <numeric/xyz.functions.hh>
23
24
namespace
core {
25
namespace
scoring {
26
namespace
methods {
27
28
/// @brief THIS CLASS REQUIRES AN EnergyMethodCreator TO WORK PROPERLY
29
CSD_TorsionEnergy::CSD_TorsionEnergy
():
30
ContextIndependentTwoBodyEnergy
()
31
{}
32
33
34
CSD_TorsionEnergy::~CSD_TorsionEnergy
() {}
35
36
37
EnergyMethodOP
38
CSD_TorsionEnergy::clone
()
const
39
{
40
return
new
CSD_TorsionEnergy
();
41
}
42
43
44
void
45
CSD_TorsionEnergy::setup_for_packing
(
pose::Pose
& pose,
pack::task::PackerTask
const
& )
const
46
{
47
pose.
update_residue_neighbors
();
48
}
49
50
51
void
52
CSD_TorsionEnergy::setup_for_scoring
(
pose::Pose
& pose,
ScoreFunction
const
& )
const
53
{
54
pose.
update_residue_neighbors
();
55
}
56
57
58
void
59
CSD_TorsionEnergy::setup_for_derivatives
(
pose::Pose
& pose,
ScoreFunction
const
& )
const
60
{
61
pose.
update_residue_neighbors
();
62
}
63
64
65
bool
66
CSD_TorsionEnergy::defines_intrares_energy
(
EnergyMap
const
& )
const
67
{
68
return
true
;
69
}
70
71
72
void
73
CSD_TorsionEnergy::residue_pair_energy
(
74
conformation::Residue
const
& ,
75
conformation::Residue
const
& ,
76
pose::Pose
const
& ,
77
ScoreFunction
const
& ,
78
EnergyMap
& emap
79
)
const
80
{
81
// add energy to emap (unweighted)
82
emap[ csd_torsion ] += 0;
83
}
84
85
86
void
87
CSD_TorsionEnergy::eval_intrares_energy
(
88
conformation::Residue
const
& ,
89
pose::Pose
const
& ,
90
ScoreFunction
const
& ,
91
EnergyMap
&
92
)
const
93
{
94
}
95
96
97
Real
98
CSD_TorsionEnergy::eval_dof_derivative
(
99
id::DOF_ID
const
&,
// dof_id,
100
id::TorsionID
const
& ,
101
pose::Pose
const
& ,
102
ScoreFunction
const
&,
// sfxn,
103
EnergyMap
const
& weights
104
)
const
105
{
106
// note that the atomtree Oomega dofs are in radians
107
// use degrees since dE/dangle has angle in denominator
108
Real
deriv = 0;
109
return
numeric::conversions::degrees( weights[ csd_torsion ] * deriv );
110
}
111
112
113
Distance
114
CSD_TorsionEnergy::atomic_interaction_cutoff
()
const
115
{
116
return
0.0;
117
}
118
119
120
void
121
CSD_TorsionEnergy::indicate_required_context_graphs
(
utility::vector1< bool >
& )
const
122
{}
123
124
125
}
// namespace methods
126
}
// namespace scoring
127
}
// namespace core
Generated on Sat Jun 1 2013 11:37:41 for Rosetta 3.5 by
1.8.4