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
SA_Energy.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/SA_Energy.cc
11
/// @brief sa energy function definition.
12
/// @author James Thompson
13
14
15
// Unit headers
16
#include <
core/scoring/methods/SA_Energy.hh
>
17
#include <
core/scoring/methods/SA_EnergyCreator.hh
>
18
19
// Package headers
20
#include <
core/scoring/sasa.hh
>
21
// AUTO-REMOVED #include <core/scoring/packing/surf_vol.hh>
22
// Project headers
23
// AUTO-REMOVED #include <core/pose/Pose.hh>
24
25
#include <
core/scoring/EnergyMap.hh
>
26
#include <utility/vector1.hh>
27
28
namespace
core {
29
namespace
scoring {
30
namespace
methods {
31
32
33
/// @details This must return a fresh instance of the SA_Energy class,
34
/// never an instance already in use
35
methods::EnergyMethodOP
36
SA_EnergyCreator::create_energy_method
(
37
methods::EnergyMethodOptions
const
&
38
)
const
{
39
return
new
SA_Energy
;
40
}
41
42
ScoreTypes
43
SA_EnergyCreator::score_types_for_method
()
const
{
44
ScoreTypes
sts;
45
sts.push_back(
sa
);
46
return
sts;
47
}
48
49
/// c-tor
50
SA_Energy::SA_Energy
() :
51
parent
( new
SA_EnergyCreator
)
52
{}
53
54
55
/// clone
56
EnergyMethodOP
57
SA_Energy::clone
()
const
58
{
59
return
new
SA_Energy
;
60
}
61
62
/////////////////////////////////////////////////////////////////////////////
63
// scoring
64
/////////////////////////////////////////////////////////////////////////////
65
66
void
67
SA_Energy::finalize_total_energy
(
68
pose::Pose
& pose,
69
ScoreFunction
const
&,
70
EnergyMap
& totals
71
)
const
{
72
using namespace
conformation;
73
74
totals[
sa
] =
calc_total_sasa
( pose, 1.4 );
//default water probe
75
// totals[ sa ] = core::scoring::packing::get_surf_tot(pose, 1.4); //default water probe
76
77
}
// finalize_total_energy
78
core::Size
79
SA_Energy::version
()
const
80
{
81
return
1;
// Initial versioning
82
}
83
84
}
// methods
85
}
// scoring
86
}
// core
Generated on Sat Jun 1 2013 11:39:06 for Rosetta 3.5 by
1.8.4