Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OmegaTether.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/OmegaTether.hh
11 /// @brief OmegaTether potential class delcaration
12 /// @author Andrew Leaver-Fay (leaverfa@email.unc.edu)
13 
14 #ifndef INCLUDED_core_scoring_OmegaTether_hh
15 #define INCLUDED_core_scoring_OmegaTether_hh
16 
17 // Unit Headers
19 
20 // Project Headers
21 #include <core/types.hh>
22 #include <core/pose/Pose.fwd.hh>
24 
25 // Utility Headers
26 #include <utility/pointer/ReferenceCount.hh>
27 #include <utility/io/izstream.hh>
28 
29 #include <core/chemical/AA.hh>
31 #include <utility/vector1.hh>
32 #include <ObjexxFCL/FArray2D.hh>
33 
34 #include <numeric/interpolation/spline/Bicubic_spline.hh>
35 
36 namespace core {
37 namespace scoring {
38 
39 
40 
42 {
43 public:
44  typedef pose::Pose Pose;
45  typedef chemical::AA AA;
46 
47 public:
48  OmegaTether();
50 
51  Real
53  AA const res_aa,
54  Real const omega,
55  Real const phi,
56  Real const psi
57  ) const;
58 
59  void
61  conformation::Residue const & res,
62  Real & energy,
63  Real & denergy_domega,
64  Real & denergy_dphi,
65  Real & denergy_dpsi
66  ) const;
67 
68  void
70  AA const res_aa,
71  Real const omega,
72  Real const phi,
73  Real const psi,
74  Real & energy,
75  Real & denergy_domega,
76  Real & denergy_dphi,
77  Real & denergy_dpsi
78  ) const;
79 
80 
81  void
83  Pose & pose,
84  ScoreFunction const & scorefxn
85  ) const;
86 
87 
88 private:
89 
90  void read_omega_tables();
91  void read_table_from_stream( utility::io::izstream &, ObjexxFCL::FArray2D< Real > &, ObjexxFCL::FArray2D< Real > &);
92  void setup_interpolation( ObjexxFCL::FArray2D< Real > &, numeric::interpolation::spline::BicubicSpline &);
93 
94  // phi-psi dependent only
98 };
99 
100 }
101 }
102 
103 #endif