31 #include <basic/options/option.hh>
37 #include <basic/Tracer.hh>
38 #include <basic/prof.hh>
39 static basic::Tracer
tr(
"protocols.evalution.Score");
45 #include <basic/options/keys/constraints.OptionKeys.gen.hh>
46 #include <basic/options/keys/in.OptionKeys.gen.hh>
50 #include <utility/vector1.hh>
61 namespace simple_filters {
66 evaluation::SingleValuePoseEvaluator<
Real >( ( !fullname ? (
"score"+tag) : tag ) ),
71 utility_exit_with_message(
"Score evaluator score function is NULL");
75 tr.Info <<
"ScoreEvaluator: " <<
"score" << tag <<
" " << std::endl;
76 scorefxn->show(
tr.Info );
97 core::Real val = scorefxn( nochainbreak_pose );
98 return val + chainbreaks_scfxn( chainbreak_pose );
105 return (!fa && !centroid) || ( pose_fa && fa && !centroid ) || ( !pose_fa && centroid && !fa );
115 selection_( selection ),
120 if (
tr.Trace.visible() ) {
121 for ( core::scoring::ResidueSelectionVector::const_iterator it = selection.begin(); it != selection.end(); ++it ) {
122 tr.Trace << *it <<
" ";
124 tr.Trace << std::endl;
125 scorefxn->show(
tr.Trace );
136 PROF_START( basic::TRUNCATED_SCORE_EVALUATOR );
139 tr.Trace <<
"no scorefunction specified in TruncatedScoreEvaluator... make appropriate standard score " << std::endl;
149 scorefxn->set_weight(
scoring::angle_constraint, basic::options::option[ basic::options::OptionKeys::constraints::cst_weight ]() );
171 tr.Debug <<
"compute score without using these residues: ";
173 tr.Debug << std::endl;
174 (*scorefxn)( nochainbreak_pose );
176 PROF_STOP( basic::TRUNCATED_SCORE_EVALUATOR );
178 val += chainbreaks_scfxn( chainbreak_pose );