Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
17 
18 // Package headers
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
48 ) const {
49  return new SurfaceEnergy;
50 }
51 
55  sts.push_back( scoring::surface );
56  return sts;
57 }
58 
59 
62 {}
63 
64 
67  return new SurfaceEnergy();
68 }
69 
70 
71 void
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
92 
93  // don't run if minimizing, non-differentiable
94  if ( ! pose.energies().use_nblist() ) {
95  core::Real surface_score;
97  //TR << "surface score: " << surface_score << std::endl;
98  totals[ scoring::surface ] = surface_score;
99  }
100 
101 }
104 {
105  return 1; // Initial versioning
106 }
107 
108 
109 } // namespace interaction_graph
110 } // pack
111 } // core