49 #include <basic/Tracer.hh>
50 #include <basic/prof.hh>
52 #include <utility/file/file_sys_util.hh>
55 #include <utility/vector1.hh>
60 static basic::Tracer
tr(
"protocols.constraints_additional.ConstraintEvaluator");
63 namespace constraints_additional {
66 using namespace scoring;
67 using namespace constraints;
71 constraints_( new ConstraintSet( cst ) ),
72 tried_fullatom_pose_( false ),
73 tried_centroid_pose_( false ),
75 viol_level_ ( viol_level ),
76 threshold_( threshold ),
77 max_seq_sep_( max_seq_sep ),
78 constraints_combine_ratio_( 1 ),
84 constraints_( new ConstraintSet() ),
85 tried_fullatom_pose_( false ),
86 tried_centroid_pose_( false ),
88 viol_level_ ( viol_level ),
89 threshold_( threshold ),
90 max_seq_sep_( max_seq_sep ),
91 constraints_combine_ratio_( 1 ),
94 constraints_->add_constraints( csts );
100 tried_fullatom_pose_( false ),
101 tried_centroid_pose_( false ),
102 file_name_( file_name ),
103 viol_level_ ( viol_level ),
104 threshold_( threshold ),
105 max_seq_sep_( max_seq_sep ),
106 constraints_combine_ratio_( 1 ),
111 utility_exit_with_message(
" could not find file " +
file_name_ );
134 using namespace core::scoring::constraints;
146 now_cst->add_constraints( added_constraints );
148 tr.Warning <<
" cannot use constraint file " <<
file_name_ <<
" on " << ( pose.
is_fullatom() ?
" fullatom " :
" centroid " ) <<
" pose " << std::endl;
149 tr.Warning <<
" because: " << excn << std::endl;
163 runtime_assert( now_cst );
174 new_cst->set_max_seq_sep( ms_set->max_seq_sep() );
208 if ( i == 1 ) {
return name_; }
210 runtime_assert( i <= 1 && i > 0 );