9#ifndef IMPCORE_RIGID_BODY_TUNNELER_H
10#define IMPCORE_RIGID_BODY_TUNNELER_H
12#include <IMP/core/core_config.h>
17#include <IMP/core/internal/tunneler_helpers.h>
19#include <Eigen/Geometry>
21#include <boost/ptr_container/ptr_vector.hpp>
23IMPCORE_BEGIN_NAMESPACE
64 double move_probability = 1.);
82 unsigned get_number_of_rejected_moves()
const {
return num_rejected_; }
83 unsigned get_number_of_proposed_moves()
const {
return num_proposed_; }
84 unsigned get_number_of_impossible_moves()
const {
return num_impossible_; }
85 unsigned get_number_of_calls()
const {
return num_calls_; }
109 unsigned get_closest_entry_point(
const internal::Coord& x)
const;
114 double k_, move_probability_;
115 unsigned num_calls_, num_proposed_, num_rejected_, num_impossible_;
116 boost::ptr_vector<internal::Transformer> last_transformations_;
117 std::vector<internal::Coord> entries_;
The base class for movers for Monte Carlo optimization.
Simple Monte Carlo optimizer.
static Floats get_reduced_coordinates(Model *m, ParticleIndex target, ParticleIndex ref)
returns center of mass and quaternion of rotation wrt ref
virtual void do_reject() override
Implement reset_proposed_move().
static void set_reduced_coordinates(Model *m, ParticleIndex target, ParticleIndex ref, Floats coords)
sets rigid body coordinates in the reference frame of ref
RigidBodyTunneler(Model *m, ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.)
virtual MonteCarloMoverResult do_propose() override
Implement propose_move().
void reset_stats()
Statistics.
virtual ModelObjectsTemp do_get_inputs() const override
void add_entry_point(Floats fl)
add entry point
static Floats get_reduced_coordinates(Model *m, ParticleIndex pi)
returns center of mass and quaternion of rotation of pi
Index< ParticleIndexTag > ParticleIndex
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
functionality for defining rigid bodies
Return value of the MonteCarloMover::propose() function.