Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WholeStructureEnergy.hh
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/WholeStructureEnergy.hh
11 /// @brief EnergyMethod that applies to a whole structure and not on a residue-by-residue basis
12 /// @author Andrew Leaver-Fay
13 
14 
15 #ifndef INCLUDED_core_scoring_methods_WholeStructureEnergy_hh
16 #define INCLUDED_core_scoring_methods_WholeStructureEnergy_hh
17 
18 // Unit headers
20 
21 // Package headers
23 
24 // Project headers
25 // AUTO-REMOVED #include <core/conformation/Residue.fwd.hh>
26 #include <core/types.hh>
27 
28 #include <utility/vector1.hh>
29 
30 
31 
32 namespace core {
33 namespace scoring {
34 namespace methods {
35 
36 /// @brief Base class for EnergyMethods which are meaningful only on entire structures,
37 /// for example, the Radius of Gyration. These EnergyMethods do all of their work in
38 /// the "finalize_total_energy" section of score function evaluation.
40 public:
42 
43 public:
44 
45  /// @brief Constructor with EnergyMethodCreator to list the ScoreTypes
46  /// computed by this WholeStructureEnergy.
48 
49  virtual ~WholeStructureEnergy() {}
50 
51  ///
53  method_type() const;
54 
55  /// @brief how far apart must two heavy atoms be to have a zero interaction energy?
56  ///
57  /// @details If hydrogen atoms interact at the same range as heavy atoms, then
58  /// this distance should build-in a 2 * max-bound-h-distance-cutoff buffer.
59  /// There is an improper mixing here between run-time aquired chemical knowledge
60  /// (max-bound-h-distance-cutoff) and compile time aquired scoring knowledge
61  /// (max atom cutoff); this could be resolved by adding a boolean
62  /// uses_hydrogen_interaction_distance() to the SRTBEnergy class along with
63  /// a method of the ChemicalManager max_bound_h_distance_cutoff().
64  ///
65  /// This method allows the WholeStructureEnergy class to define which edges
66  /// should be included in the EnergyGraph so that during the finalize() method
67  /// the Energy class can iterate across the EnergyGraph. This iteration occurrs
68  /// in the SecondaryStructureEnergy class, where the edges must span 12 angstroms
69  /// between the centroids. Arguably, the SecondaryStructureEnergy class could use
70  /// the TwelveANeighborGraph (a context graph) and not require that the EnergyGraph
71  /// span such long distances.
72  virtual
73  Distance
74  atomic_interaction_cutoff() const { return 0.0; }
75 
76 };
77 
78 } // methods
79 } // scoring
80 } // core
81 
82 
83 #endif // INCLUDED_core_scoring_EtableEnergy_HH