20 #include <basic/Tracer.hh>
27 #include <utility/tag/Tag.hh>
29 #include <utility/exit.hh>
30 #include <ObjexxFCL/FArray1D.hh>
31 #include <ObjexxFCL/FArray1D.fwd.hh>
32 #include <ObjexxFCL/format.hh>
38 #include <utility/excn/Exceptions.hh>
43 namespace simple_filters {
46 using namespace core::scoring;
47 using namespace ObjexxFCL::fmt;
68 using namespace core::scoring;
75 if( ! tag->hasOption(
"threshold" ) )
throw utility::excn::EXCN_RosettaScriptsOption(
"Must specify 'threshold' for ScoreTypeFilter.");
81 utility::lua::LuaObject
const & score_fxns,
82 utility::lua::LuaObject
const & ) {
83 using namespace core::scoring;
85 if( def[
"scorefxn"] ) {
92 if( ! def[
"threshold"] ) utility_exit_with_message(
"Must specify 'threshold' for ScoreTypeFilter.");
124 using namespace core::pose;
125 using namespace core::scoring;
134 if( in_pose->is_fullatom() ) {
139 if( in_pose->is_centroid() ) {
144 (*scorefxn_)( *in_pose );
150 return( weighted_score );