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
protocols
scoring
methods
SpecialRotamerEnergy.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 protocols/scoring/methods/SpecialRotamerEnergy.hh
11
/// @brief Adds a bonus to any rotamer that is flagged
12
/// @author sthyme, sthyme@gmail.com, Feb 2010
13
14
// Unit headers
15
#include <
protocols/scoring/methods/SpecialRotamerEnergy.hh
>
16
#include <
protocols/scoring/methods/SpecialRotamerEnergyCreator.hh
>
17
18
// Package headers
19
#include <
core/scoring/methods/ContextIndependentOneBodyEnergy.hh
>
20
#include <
core/scoring/EnergyMap.hh
>
21
22
// Project headers
23
#include <
core/conformation/Residue.hh
>
24
25
#include <utility/vector1.hh>
26
27
28
29
namespace
protocols {
30
namespace
scoring {
31
namespace
methods {
32
33
34
/// @details This must return a fresh instance of the SpecialRotamerEnergy class,
35
/// never an instance already in use
36
core::scoring::methods::EnergyMethodOP
37
SpecialRotamerEnergyCreator::create_energy_method
(
38
core::scoring::methods::EnergyMethodOptions
const
&
39
)
const
{
40
return
new
SpecialRotamerEnergy
;
41
}
42
43
core::scoring::ScoreTypes
44
SpecialRotamerEnergyCreator::score_types_for_method
()
const
{
45
core::scoring::ScoreTypes
sts;
46
sts.push_back(
core::scoring::special_rot
);
47
return
sts;
48
}
49
50
51
/// ctor
52
SpecialRotamerEnergy::SpecialRotamerEnergy
() :
53
parent
( new
SpecialRotamerEnergyCreator
)
54
{}
55
56
/// clone
57
core::scoring::methods::EnergyMethodOP
58
SpecialRotamerEnergy::clone
()
const
59
{
60
return
new
SpecialRotamerEnergy
;
61
}
62
63
/////////////////////////////////////////////////////////////////////////////
64
// methods for ContextIndependentOneBodyEnergies
65
/////////////////////////////////////////////////////////////////////////////
66
67
///
68
void
69
SpecialRotamerEnergy::residue_energy
(
70
core::conformation::Residue
const
& rsd,
71
core::pose::Pose
const
& ,
72
core::scoring::EnergyMap
& emap
73
)
const
74
{
75
if
( rsd.
has_variant_type
(
"SPECIAL_ROT"
) ) {
76
emap[
core::scoring::special_rot
] = 1.0;
77
}
78
}
79
80
81
///
82
core::Real
83
SpecialRotamerEnergy::eval_dof_derivative
(
84
core::id::DOF_ID
const
&,
// dof_id,
85
core::id::TorsionID
const
&,
// tor_id
86
core::pose::Pose
const
&,
// pose
87
core::scoring::ScoreFunction
const
&,
//sfxn
88
core::scoring::EnergyMap
const
&
// weights
89
)
const
90
{
91
return
0.0;
92
}
93
94
/// @brief SpecialRotamerEnergy is context independent; indicates that no
95
/// context graphs are required
96
void
97
SpecialRotamerEnergy::indicate_required_context_graphs
(
utility::vector1< bool >
& )
const
98
{}
99
core::Size
100
SpecialRotamerEnergy::version
()
const
101
{
102
return
1;
// Initial versioning
103
}
104
105
106
}
// methods
107
}
// scoring
108
}
// protocols
Generated on Sat Jun 1 2013 12:11:50 for Rosetta 3.5 by
1.8.4