28 #include <utility/string_util.hh>
31 #include <utility/vector1.hh>
47 using namespace core::scoring;
48 using namespace core::pack::dunbrack;
53 if ( res_rotlib != 0 ) {
56 dynamic_cast< SingleResidueDunbrackLibrary const * >
57 ( res_rotlib.get() ));
59 if ( dun_rotlib == 0 ) {
60 utility_exit_with_message(
"ERROR: Failed to retrieve a Dunbrack rotamer library for AA: " +
61 utility::to_string( restype.
aa() ) +
" named " + restype.
name() );
65 if ( ! dynamic_cast< ProteinBackboneBuildPoint const * > ( & bb_conf ) ) {
66 utility_exit_with_message(
"ERROR: DunbrackSCSampler expects a ProteinBackboneBuildPoint but"
67 "was handed an incompatible type. ScaffoldBuildPoint #" +
68 utility::to_string( bb_conf.
index() ) +
" is of an incompatible type" );
73 static_cast< ProteinBackboneBuildPoint const & >
76 return dun_rotlib->get_all_rotamer_samples( bb.
phi(), bb.
psi() );
80 return one_element_vector;