19 #ifndef OST_QA_TORSION_POTENTIAL_HH
20 #define OST_QA_TORSION_POTENTIAL_HH
32 #include <boost/shared_ptr.hpp>
33 #include <boost/enable_shared_from_this.hpp>
35 #include <boost/scoped_ptr.hpp>
37 namespace ost {
namespace qa {
61 template <
typename DS>
72 public boost::enable_shared_from_this<TorsionPotential> {
81 bool calculate_average_energy_flag);
93 int GetEnergyCounts()
const;
99 Real next_phi,
Real next_psi)
const {
100 int icenter=this->GetAAIndex(central_aa);
101 return energies_.Get(icenter, prev_phi, prev_psi,
102 central_phi, central_psi,
110 void SaveToFile(
const String& path);
113 template <
typename DS>
127 bool calculate_average_energy_flag);