Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DNABFormPotential.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 // This file is part of the Rosetta software suite and is made available under license.
5 // The Rosetta software is developed by the contributing members of the Rosetta Commons consortium.
6 // (C) 199x-2009 Rosetta Commons participating institutions and developers.
7 // For more information, see http://www.rosettacommons.org/.
8 
9 /// @file core/scoring/dna/DNABFormPotential.hh
10 /// @brief DNA B-form specific torsion potential class delcaration
11 /// @author Jim Havranek
12 
13 #ifndef INCLUDED_core_scoring_dna_DNABFormPotential_HH
14 #define INCLUDED_core_scoring_dna_DNABFormPotential_HH
15 
16 // Unit Headers
19 
20 // Project Headers
21 #include <core/types.hh>
22 #include <core/pose/Pose.fwd.hh>
25 
26 // Utility Headers
27 #include <utility/pointer/ReferenceCount.hh>
28 #include <utility/vector1.hh>
29 
30 // ObjexxFCL Headers
31 #include <ObjexxFCL/FArray1D.hh>
32 #include <ObjexxFCL/FArray2D.hh>
33 #include <ObjexxFCL/FArray4D.hh>
34 
35 namespace core {
36 namespace scoring {
37 namespace dna {
38 
40 {
41 
42 public:
44  factor_( factor ), periodicity_( periodicity ), phase_( phase ) {}
45 
46  Real compute( Real const torsion_angle, Real & deriv ) const;
47 
48  Real factor() const { return factor_; }
49  Real periodicity() const { return periodicity_; }
50  Real phase() const { return phase_; }
51 
52 private:
53  Real factor_; // The value for Vn/2 - analog to spring constant
54  Real periodicity_; // How many minima for torsion - i.e. two SP3 atoms would have 3
55  Real phase_; // Offset to minimum in potential
56 
57 };
58 
59 
61 {
62 
63 public:
66 
67  void
69  conformation::Residue const & res,
70  Real & score,
71  Real & dscore_dchi,
72  Size const torsion_id
73  ) const;
74 
75  void
77  conformation::Residue const & res,
78  Real & score,
79  Real & dscore_dchi
80  ) const;
81 
82 private:
83 
84  void init_dna_bform_data();
85  int dummy_;
87 
88 };
89 
90 }
91 }
92 }
93 
94 #endif