35 #include <numeric/random/random.hh>
37 #include <numeric/xyz.functions.hh>
38 #include <basic/Tracer.hh>
39 #include <basic/basic.hh>
48 static numeric::random::RandomGenerator
RG(956733);
49 static basic::Tracer
TR(
"protocols.simple_moves.oop.OopRandomPuckMover" );
53 using namespace conformation;
54 using namespace chemical;
55 using namespace core::id;
56 using namespace protocols;
57 using namespace protocols::moves;
58 using namespace protocols::simple_moves;
59 using namespace protocols::simple_moves::chiral;
62 namespace simple_moves {
68 TR<<
"in OopRandomPuckMover::apply" << std::endl;
70 for(
Size i = 1; i <= oop_seq_positions_.size(); i++)
72 Size oop_pre_pos = oop_seq_positions_[i];
73 Size oop_post_pos = oop_pre_pos+1;
74 TR<<
"oop_pre_pos:" << oop_pre_pos <<
" oop_post_pos:" << oop_post_pos << std::endl;
82 runtime_assert ( oop_post_pos != 1 );
87 core::Size random_pos = oop_seq_positions_[
int(
RG.uniform()*oop_seq_positions_.size())+1];
90 std::string random_pucker = available_moves_[
int(
RG.uniform()*available_moves_.size())+1];
92 runtime_assert ( random_pucker ==
"OOP_PUCK_PLUS" || random_pucker ==
"OOP_PUCK_MINUS" );
93 TR << random_pucker <<std::endl;
99 if ( random_pucker ==
"OOP_PUCK_PLUS" )
110 else if (random_pucker ==
"OOP_PUCK_MINUS" )
122 oop_mover->apply( pose );
128 OopRandomPuckMover::get_name()
const {
129 return "OopRandomPuckMover";
133 OopRandomPuckMover::OopRandomPuckMover(
141 ):
Mover(), oop_seq_positions_(oop_seq_positions)