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
RG_Energy_Fast.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/methods/RG_Energy_Fast.hh
11
/// @brief Statistically derived rotamer pair potential class declaration
12
/// @author James Thompson
13
14
15
#ifndef INCLUDED_core_scoring_methods_RG_Energy_Fast_hh
16
#define INCLUDED_core_scoring_methods_RG_Energy_Fast_hh
17
18
19
// Package headers
20
#include <basic/datacache/CacheableData.hh>
21
22
#include <
core/scoring/methods/WholeStructureEnergy.hh
>
23
#include <
core/scoring/ScoreType.hh
>
24
#include <
core/scoring/ScoreFunction.fwd.hh
>
25
26
// Project headers
27
#include <
core/pose/Pose.fwd.hh
>
28
#include <utility/vector1.fwd.hh>
29
30
#include <utility/vector1.hh>
31
#include <numeric/xyzVector.hh>
32
33
34
// Utility headers
35
36
37
namespace
core {
38
namespace
scoring {
39
namespace
methods {
40
41
class
RG_MinData
:
public
basic::datacache::CacheableData {
42
public
:
43
RG_MinData
():
com
(0,0,0),
rg
(0),
nres_scored
(0) {}
44
45
basic::datacache::CacheableDataOP
clone
()
const
{
46
return
new
RG_MinData
(*
this
);
47
}
48
49
numeric::xyzVector< core::Real >
com
;
50
core::Real
rg
;
51
core::Size
nres_scored
;
52
};
53
54
typedef
utility::pointer::owning_ptr< RG_MinData >
RG_MinDataOP
;
55
56
class
RG_Energy_Fast
:
public
WholeStructureEnergy
{
57
public
:
58
typedef
WholeStructureEnergy
parent
;
59
public
:
60
61
/// @brief Defines a center of mass based RG calculation that is O(n) rather
62
/// than O(n^2).
63
RG_Energy_Fast
();
64
65
/// clone
66
virtual
67
EnergyMethodOP
68
clone
()
const
;
69
70
/////////////////////////////////////////////////////////////////////////////
71
// scoring
72
/////////////////////////////////////////////////////////////////////////////
73
74
void
75
finalize_total_energy
(
76
pose::Pose
& pose,
77
ScoreFunction
const
&,
78
EnergyMap
& totals
79
)
const
;
80
81
82
core::Real
83
calculate_rg_score
(
pose::Pose
const
& pose )
const
;
84
85
core::Real
86
calculate_rg_score
(
87
pose::Pose
const
& pose,
88
utility::vector1< bool >
const
& relevant_residues)
const
;
89
90
// derivatives
91
virtual
void
setup_for_derivatives
(
pose::Pose
& pose,
ScoreFunction
const
& sf)
const
;
92
93
virtual
void
94
eval_atom_derivative
(
95
id::AtomID
const
&
id
,
96
pose::Pose
const
& pose,
97
kinematics::DomainMap
const
&domain_map,
98
ScoreFunction
const
& sfxn,
99
EnergyMap
const
& weights,
100
Vector
& F1,
101
Vector
& F2
102
)
const
;
103
104
105
virtual
106
core::Size
version
()
const
;
107
108
void
109
indicate_required_context_graphs
(
110
utility::vector1< bool >
&
/*context_graphs_required*/
111
)
const
{}
112
113
private
:
114
RG_MinData
const
&
mindata_from_pose
(
pose::Pose
const
& )
const
;
115
RG_MinData
&
nonconst_mindata_from_pose
(
pose::Pose
& )
const
;
116
};
117
118
119
}
120
}
121
}
122
123
#endif // INCLUDED_core_scoring_methods_RG_Energy_Fast_HH
Generated on Sat Jun 1 2013 11:39:04 for Rosetta 3.5 by
1.8.4