Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
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 
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
38 ) const {
39  return new SA_Energy;
40 }
41 
44  ScoreTypes sts;
45  sts.push_back( sa );
46  return sts;
47 }
48 
49 /// c-tor
52 {}
53 
54 
55 /// clone
58 {
59  return new SA_Energy;
60 }
61 
62 /////////////////////////////////////////////////////////////////////////////
63 // scoring
64 /////////////////////////////////////////////////////////////////////////////
65 
66 void
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
80 {
81  return 1; // Initial versioning
82 }
83 
84 } // methods
85 } // scoring
86 } // core