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
pack
interaction_graph
SurfaceEnergy.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/SurfaceEnergy.cc
11
/// @author Ron Jacak
12
13
14
// Unit headers
15
#include <
core/pack/interaction_graph/SurfaceEnergy.hh
>
16
#include <
core/pack/interaction_graph/SurfaceEnergyCreator.hh
>
17
18
// Package headers
19
#include <
core/pack/interaction_graph/SurfacePotential.hh
>
20
//#include <core/scoring/ScoringManager.hh>
21
22
// Project headers
23
#include <
core/pose/Pose.hh
>
24
// AUTO-REMOVED #include <core/conformation/Residue.hh>
25
#include <
core/scoring/Energies.hh
>
26
27
// Utility headers
28
#include <basic/Tracer.hh>
29
30
#include <utility/vector1.hh>
31
32
33
static
basic::Tracer
TR
(
"core.pack.interaction_graph.SurfaceEnergy"
);
34
35
// C++ headers
36
37
38
namespace
core {
39
namespace
pack {
40
namespace
interaction_graph {
41
42
43
/// @details This must return a fresh instance of the SurfaceEnergy class,
44
/// never an instance already in use
45
scoring::methods::EnergyMethodOP
46
SurfaceEnergyCreator::create_energy_method
(
47
scoring::methods::EnergyMethodOptions
const
&
48
)
const
{
49
return
new
SurfaceEnergy
;
50
}
51
52
scoring::ScoreTypes
53
SurfaceEnergyCreator::score_types_for_method
()
const
{
54
scoring::ScoreTypes
sts;
55
sts.push_back(
scoring::surface
);
56
return
sts;
57
}
58
59
60
SurfaceEnergy::SurfaceEnergy
() :
61
parent
( new
SurfaceEnergyCreator
)
62
{}
63
64
65
scoring::methods::EnergyMethodOP
66
SurfaceEnergy::clone
()
const
{
67
return
new
SurfaceEnergy
();
68
}
69
70
71
void
72
SurfaceEnergy::setup_for_scoring
(
pose::Pose
&
/*pose*/
,
scoring::ScoreFunction
const
&
/*sf*/
)
const
{
73
// since this is a fake EnergyMethod, don't do anything here
74
// is it even necessary to implement this method as empty?
75
}
76
77
78
void
79
SurfaceEnergy::residue_energy
(
conformation::Residue
const
&
/*rsd*/
,
pose::Pose
const
&
/*pose*/
,
scoring::EnergyMap
&
/*emap*/
)
const
{
80
81
// if this were a real term, the code here might look like the following
82
//Real surface_score( 0.0 );
83
//surface_score = evaluate_env_score( pose, rsd )
84
//emap [ surface ] += surface_score
85
86
}
87
88
// SurfaceEnergy is non-pairwise decomposable, so it can only be calculated all at once, not on a residue by residue
89
// basis. For packing, it uses a specialized InteractionGraph that updates the score efficiently for substitutions.
90
void
91
SurfaceEnergy::finalize_total_energy
(
pose::Pose
& pose,
scoring::ScoreFunction
const
&,
scoring::EnergyMap
& totals )
const
{
92
93
// don't run if minimizing, non-differentiable
94
if
( ! pose.
energies
().
use_nblist
() ) {
95
core::Real
surface_score;
96
SurfacePotential::get_instance
()->
compute_pose_surface_energy
( pose, surface_score );
97
//TR << "surface score: " << surface_score << std::endl;
98
totals[
scoring::surface
] = surface_score;
99
}
100
101
}
102
core::Size
103
SurfaceEnergy::version
()
const
104
{
105
return
1;
// Initial versioning
106
}
107
108
109
}
// namespace interaction_graph
110
}
// pack
111
}
// core
Generated on Sat Jun 1 2013 11:33:38 for Rosetta 3.5 by
1.8.4