18 #include <basic/Tracer.hh>
21 #include <utility/exit.hh>
34 #include <utility/vector1.hh>
37 namespace hotspot_hashing {
39 static basic::Tracer
TR(
"protocols.hotspot_hashing.SearchPatternRotSetOp" );
42 protocols::toolbox::rotamer_set_operations::RigidBodyMoveBaseRSO(),
43 search_stubs_(pattern->Searchpoints())
47 protocols::toolbox::rotamer_set_operations::RigidBodyMoveBaseRSO(),
48 search_stubs_(other.search_stubs_)
69 TR.Debug <<
"Setting rigid body confs for residue: " << residue_index <<
" " << source_residue->name() << std::endl;
71 TR.Trace <<
"Generated target residue centroid frame: ";
85 if (
TR.Trace.visible())
88 TR.Trace <<
"Generated alt rb residue: " << search_residue->name() << std::endl;
89 TR.Trace <<
"Generated alt rb residue residue centroid frame: ";
96 TR.Debug <<
"Rigid body confs count: " << result_residues.size() << std::endl;
98 return result_residues;
109 TR.Debug <<
"Increasing packer residue radius for residue: " << residue_index <<
" " << source_residue->name() << std::endl;
112 Vector centroid_nbr_location = centroid_frame.
global2local(source_residue->xyz(source_residue->nbr_atom()));
119 core::Real sq_dist = (centroid_nbr_location - search_nbr_location).length_squared();
121 if( sq_dist > max_sq_dist )
123 max_sq_dist = sq_dist;
127 core::Real max_distance = std::sqrt( max_sq_dist );
130 TR.Debug <<
"Increased packer residue radius size: " << max_distance << std::endl;
137 target_residue_(target_residue),
153 utility_exit_with_message(
"Can not parse tag for add search pattern rot set op.");