29 #include <numeric/trig.functions.hh>
30 #include <numeric/conversions.hh>
32 #include <utility/exit.hh>
33 #include <ObjexxFCL/string.functions.hh>
35 #include <utility/vector1.hh>
42 namespace constraints {
53 using numeric::conversions::radians;
54 AtomID C0, N1, CA1, C1, N2, CA2;
60 while( in.good() && (in.get() !=
'\n') ) {}
71 Real const two_pi( 6.283185 );
72 Real omega_lower_ = radians( -175.0 );
73 Real omega_upper_ = radians( 175.0 );
75 using ObjexxFCL::string_of;
78 omega_lower_ = radians( -10.0 );
79 omega_upper_ = radians( 10.0 );
81 Real psi_upper_( 0.0 ), psi_lower_( 0.0 );
82 Real phi_upper_( 0.0 ), phi_lower_( 0.0 );
84 phi_lower_ = radians( 0.0 );
85 phi_upper_ = radians( 180.0 );
86 psi_lower_ = radians( -100.0 );
87 psi_upper_ = radians( 100.0 );
88 }
else if (
bin_ ==
'E' ) {
89 phi_lower_ = radians( 0.0 );
90 phi_upper_ = radians( 180.0 );
91 psi_lower_ = radians( 100.0 );
92 psi_upper_ = radians( -90.0 );
93 }
else if (
bin_ ==
'A' ) {
94 phi_lower_ = radians( -180.0 );
95 phi_upper_ = radians( 0.0 );
96 psi_lower_ = radians( -50.0 );
97 psi_upper_ = radians( -30.0 );
98 }
else if (
bin_ ==
'B') {
99 phi_lower_ = radians( -180.0 );
100 phi_upper_ = radians( 0.0 );
101 psi_lower_ = radians( 100.0 );
102 psi_upper_ = radians( 175.0 );
104 utility_exit_with_message(
105 "Error: don't recognize bin " + string_of(
bin_) +
"!"
110 phi_lower_, phi_upper_, sdev_,
"phi_" + string_of(
bin_), two_pi
113 psi_lower_, psi_upper_, sdev_,
"psi_" + string_of(
bin_), two_pi
116 omega_lower_, omega_upper_, sdev_,
"omega_" + string_of(
bin_), two_pi
147 (*it)->score( xyz, weights, emap );
163 (*it)->fill_f1_f2(
id, xyz, F1, F2, weights );