Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
17 
18 // Package headers
21 
22 // Project headers
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
39 ) const {
40  return new SpecialRotamerEnergy;
41 }
42 
46  sts.push_back( core::scoring::special_rot );
47  return sts;
48 }
49 
50 
51 /// ctor
54 {}
55 
56 /// clone
59 {
60  return new SpecialRotamerEnergy;
61 }
62 
63 /////////////////////////////////////////////////////////////////////////////
64 // methods for ContextIndependentOneBodyEnergies
65 /////////////////////////////////////////////////////////////////////////////
66 
67 ///
68 void
70  core::conformation::Residue const & rsd,
71  core::pose::Pose const & ,
73 ) const
74 {
75  if ( rsd.has_variant_type("SPECIAL_ROT") ) {
76  emap[ core::scoring::special_rot ] = 1.0;
77  }
78 }
79 
80 
81 ///
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
98 {}
101 {
102  return 1; // Initial versioning
103 }
104 
105 
106 } // methods
107 } // scoring
108 } // protocols