Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CarbonHBondPotential.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/carbon_hbonds/CarbonHBondPotential.hh
11 /// @brief Statistically derived rotamer pair potential class declaration
12 /// @author Phil Bradley
13 
14 
15 #ifndef INCLUDED_core_scoring_carbon_hbonds_CarbonHBondPotential_hh
16 #define INCLUDED_core_scoring_carbon_hbonds_CarbonHBondPotential_hh
17 
18 // Unit Headers
20 
21 // Package headers
22 
23 // Project headers
24 #include <core/types.hh>
25 
26 // Utility headers
27 #include <utility/pointer/ReferenceCount.hh>
28 
29 #include <ObjexxFCL/FArray1D.hh>
30 // AUTO-REMOVED #include <ObjexxFCL/FArray2D.hh>
31 
32 // AUTO-REMOVED #include <map>
33 
34 #include <utility/vector1_bool.hh>
35 
36 
37 
38 namespace core {
39 namespace scoring {
40 namespace carbon_hbonds {
41 
43 
44 public:
45 
46  /// @brief ctor, reads data file
48 
49  /// @brief Calculate chbond energies for non-rna atom pairs.
51  Size const & atom_type,
52  Vector const & H_A_vector, //vector of hydrogen to acceptor
53  Vector const & D_H_vector, //vector of donor hv atom to hydrogen
54  Vector const & B_A_vector, //vector of acceptor's base atom to acceptor
55  bool calculate_deriv, // early exit if this is false
56  Vector & deriv_vector
57  ) const;
58 
59  /// @brief Calculate the rna-specific chbond energies. The derivative vector returned is the
60  /// force vector on the acceptor atom. Multiply by -1 to get the force vector on the donor atom
61  Real
63  Vector const & r_H_A,
64  Vector const & z_i /*unit vector pointing from donor to its connected hydrogen*/,
65  bool const & update_deriv,
66  Vector & deriv
67  ) const;
68 
69  ///@brief second declaration to allow skipping deriv; gcc 4.1.3 does not like setting default parameters for a pass-by-reference parameter
71  Size const & atom_type,
72  Vector const & H_A_vector, //vector of hydrogen to acceptor
73  Vector const & D_H_vector, //vector of donor hv atom to hydrogen
74  Vector const & B_A_vector //vector of acceptor's base atom to acceptor
75  ) const;
76 
77  Real max_dis() const {
78  return max_dist_;
79  }
80 
81 private: //data
82 
83  void
85 
86  //Which atoms to loop over during VDW check?
90 
92  Size const num_bins_;
94  // ObjexxFCL::FArray2D < Real > carbon_hbond_deriv_ /*(5, 45)*/;
95 
97  ObjexxFCL::FArray1D < Size > standard_atomtype_to_carbon_donor_index_;
98 
102 
103  };
104 
105 }
106 }
107 }
108 
109 #endif // INCLUDED_core_scoring_ScoreFunction_HH