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
dna
DNATorsionEnergy.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/dna/DNATorsionEnergy.hh
11
/// @brief Statistically derived rotamer pair potential class declaration
12
/// @author Rhiju Das
13
/// @author Jim Havranek
14
15
16
#ifndef INCLUDED_core_scoring_dna_DNATorsionEnergy_HH
17
#define INCLUDED_core_scoring_dna_DNATorsionEnergy_HH
18
19
// Unit Headers
20
#include <
core/scoring/dna/DNATorsionEnergy.fwd.hh
>
21
22
// Package headers
23
#include <
core/scoring/methods/ContextIndependentTwoBodyEnergy.hh
>
24
#include <
core/scoring/constraints/ConstraintSet.fwd.hh
>
25
//#include <core/scoring/dna/DNATorsionPotential.fwd.hh>
26
#include <
core/scoring/dna/DNATorsionPotential.hh
>
27
28
// Project headers
29
#include <
core/pose/Pose.fwd.hh
>
30
//#include <core/pack/task/PackerTask.hh>
31
32
#include <map>
33
34
// Utility headers
35
36
37
namespace
core {
38
namespace
scoring {
39
namespace
dna {
40
41
///
42
class
DNATorsionEnergy
:
public
methods::ContextIndependentTwoBodyEnergy
{
43
public
:
44
typedef
ContextIndependentTwoBodyEnergy
parent
;
45
public
:
46
47
///
48
DNATorsionEnergy
();
49
50
/// clone
51
virtual
52
methods::EnergyMethodOP
53
clone
()
const
;
54
55
/////////////////////////////////////////////////////////////////////////////
56
// scoring
57
/////////////////////////////////////////////////////////////////////////////
58
59
virtual
60
void
61
setup_for_scoring
(
pose::Pose
&pose,
ScoreFunction
const
&scfxn )
const
;
62
63
// call the cst setup_for_derivatives wrapper
64
virtual
65
void
66
setup_for_derivatives
(
pose::Pose
&pose,
ScoreFunction
const
&scfxn )
const
;
67
68
//
69
// virtual
70
// void
71
// setup_for_packing( pose::Pose & pose, pack::task::PackerTask const & ) const;
72
73
/// @brief Evaluate the intra-residue constraint energy for a given residue
74
virtual
75
void
76
eval_intrares_energy
(
77
conformation::Residue
const
& rsd,
78
pose::Pose
const
& pose,
79
ScoreFunction
const
& sfxn,
80
EnergyMap
& emap
81
)
const
;
82
83
///
84
virtual
85
void
86
residue_pair_energy
(
87
conformation::Residue
const
& rsd1,
88
conformation::Residue
const
& rsd2,
89
pose::Pose
const
& pose,
90
ScoreFunction
const
&,
91
EnergyMap
& emap
92
)
const
;
93
94
/// called at the end of energy evaluation
95
virtual
96
void
97
finalize_total_energy
(
98
pose::Pose
& pose,
99
ScoreFunction
const
&,
100
EnergyMap
& totals
101
)
const
;
102
103
/// called at the end of energy evaluation
104
virtual
105
void
106
finalize_after_derivatives
(
107
pose::Pose
& pose,
108
ScoreFunction
const
&
109
)
const
;
110
111
112
/// called during gradient-based minimization inside dfunc
113
/**
114
F1 and F2 are not zeroed -- contributions from this atom are
115
just summed in
116
**/
117
virtual
118
void
119
eval_atom_derivative
(
120
id::AtomID
const
&
id
,
121
pose::Pose
const
& pose,
122
kinematics::DomainMap
const
&,
// domain_map,
123
ScoreFunction
const
& sfxn,
124
EnergyMap
const
& weights,
125
Vector
& F1,
126
Vector
& F2
127
)
const
;
128
129
130
/// uses the dof constraints
131
Real
132
eval_dof_derivative
(
133
id::DOF_ID
const
&
id
,
134
id::TorsionID
const
& tor,
135
pose::Pose
const
& pose,
136
ScoreFunction
const
& scorefxn,
137
EnergyMap
const
& weights
138
)
const
;
139
140
141
bool
142
defines_intrares_energy
(
EnergyMap
const
& )
const
{
return
true
; }
143
144
bool
145
defines_residue_pair_energy
(
EnergyMap
const
& )
const
{
return
true
; }
146
147
virtual
148
Distance
149
atomic_interaction_cutoff
()
const
;
150
151
virtual
152
void
indicate_required_context_graphs
(
utility::vector1< bool >
&
/*context_graphs_required*/
)
const
;
153
154
virtual
155
core::Size
version
()
const
;
156
157
/////////////////////////////////////////////////////////////////////////////
158
// data
159
/////////////////////////////////////////////////////////////////////////////
160
161
private
:
162
163
dna::DNATorsionPotential
const
&
dna_torsion_potential_
;
164
165
mutable
constraints::ConstraintSetOP
dna_torsion_constraints_
;
166
mutable
constraints::ConstraintSetOP
dna_sugar_close_constraints_
;
167
mutable
constraints::ConstraintSetOP
dna_base_distance_constraints_
;
168
169
mutable
bool
constraints_ready_
;
170
bool
verbose_
;
171
172
};
173
174
175
}
176
}
177
}
178
179
#endif // INCLUDED_core_scoring_ScoreFunction_HH
Generated on Sat Jun 1 2013 11:36:12 for Rosetta 3.5 by
1.8.4