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
electron_density
PattersonCorrEnergy.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
11
/// @brief Scoring a structure's fit to a patterson map
12
/// @author Frank DiMaio
13
14
#ifndef INCLUDED_core_scoring_electron_density_PattersonCorrEnergy_hh
15
#define INCLUDED_core_scoring_electron_density_PattersonCorrEnergy_hh
16
17
#include <
core/scoring/methods/ContextDependentLRTwoBodyEnergy.hh
>
18
#include <
core/scoring/ScoreFunction.fwd.hh
>
19
20
#include <
core/pose/Pose.fwd.hh
>
21
22
#include <utility/vector1.hh>
23
24
25
// Utility headers
26
27
namespace
core {
28
namespace
scoring {
29
namespace
electron_density {
30
31
///
32
class
PattersonCorrEnergy
:
public
methods::ContextDependentLRTwoBodyEnergy
{
33
public
:
34
typedef
methods::ContextDependentLRTwoBodyEnergy
parent
;
35
36
public
:
37
38
///
39
PattersonCorrEnergy
();
40
41
42
/// clone
43
virtual
44
methods::EnergyMethodOP
45
clone
()
const
;
46
47
/////////////////////////////////////////////////////////////////////////////
48
// scoring
49
/////////////////////////////////////////////////////////////////////////////
50
51
methods::LongRangeEnergyType
52
long_range_type
()
const
;
53
54
virtual
bool
55
defines_residue_pair_energy
(
56
pose::Pose
const
& pose,
57
Size
res1,
58
Size
res2
59
)
const
;
60
61
virtual
void
62
setup_for_scoring
(
pose::Pose
& pose,
ScoreFunction
const
& )
const
;
63
64
virtual
void
65
setup_for_derivatives
(
pose::Pose
& pose,
ScoreFunction
const
& sfxn )
const
;
66
67
virtual
void
68
finalize_after_derivatives
(
pose::Pose
&,
ScoreFunction
const
& )
const
;
69
70
virtual
bool
71
defines_intrares_energy
(
EnergyMap
const
& )
const
{
return
false
; }
72
73
virtual
void
74
eval_intrares_energy
(
75
conformation::Residue
const
& ,
76
pose::Pose
const
& ,
77
ScoreFunction
const
& ,
78
EnergyMap
&
79
)
const
{ }
80
81
virtual
void
82
setup_for_packing
(
pose::Pose
&,
utility::vector1< bool >
const
&,
utility::vector1< bool >
const
& )
const
{
isRepacking
=
true
; };
83
84
virtual
void
85
update_residue_for_packing
(
86
pose::Pose
&,
87
Size
resid
88
)
const
;
89
90
virtual
void
91
residue_pair_energy
(
92
conformation::Residue
const
& rsd1,
93
conformation::Residue
const
& rsd2,
94
pose::Pose
const
& pose,
95
ScoreFunction
const
& sfxn,
96
EnergyMap
& emap
97
)
const
;
98
99
using
methods::ContextDependentLRTwoBodyEnergy::finalize_total_energy
;
100
101
/// called at the end of energy evaluation
102
virtual
void
103
finalize_total_energy
(
104
pose::Pose
const
& pose,
105
ScoreFunction
const
&,
106
EnergyMap
& totals
107
)
const
;
108
109
110
virtual
void
111
eval_atom_derivative
(
112
id::AtomID
const
&
id
,
113
pose::Pose
const
& pose,
114
kinematics::DomainMap
const
&,
// domain_map,
115
ScoreFunction
const
& sfxn,
116
EnergyMap
const
& weights,
117
Vector
& F1,
118
Vector
& F2
119
)
const
;
120
121
122
virtual
123
void
indicate_required_context_graphs
(
utility::vector1< bool >
& )
const
{};
124
125
/////////////////////////////////////////////////////////////////////////////
126
// data
127
/////////////////////////////////////////////////////////////////////////////
128
129
130
private
:
131
bool
map_loaded
;
132
bool
scoreRepacks
;
133
mutable
bool
isRepacking
;
134
mutable
bool
pose_is_proper
;
135
mutable
double
pcc_structure
;
136
mutable
int
nreses
;
137
virtual
138
core::Size
version
()
const
;
139
};
140
141
142
}
143
}
144
}
145
146
#endif
147
Generated on Sat Jun 1 2013 11:36:38 for Rosetta 3.5 by
1.8.4