9#ifndef IMPEM_FIT_RESTRAINT_H
10#define IMPEM_FIT_RESTRAINT_H
12#include <IMP/em/em_config.h>
24#include <boost/unordered_map.hpp>
64 float scale = 1,
bool use_rigid_bodies =
true,
65 KernelType kt = GAUSSIAN);
68 void set_scale_factor(
float scale) { scalefac_ = scale; }
69 float get_scale_factor()
const {
return scalefac_; }
80 void store_particles(ParticlesTemp ps);
82 void resample()
const;
84 void initialize_model_density_map(
FloatKey weight_key);
100 bool use_rigid_bodies_;
103 boost::unordered_map<core::RigidBody, Particles> member_map_;
108 core::RigidBodies rbs_;
Perform coarse fitting between two density objects.
Class for handling density maps.
A decorator for particles with mass.
Storage of a model, its restraints, constraints and particles.
Refine a particle into a list of particles.
Abstract base class for all restraints.
Decorator for a sphere-like particle.
Decorator for helping deal with a hierarchy of molecules.
Class for adding derivatives from restraints to the model.
Class to handle individual particles of a Model object.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
An axis-aligned bounding box.
static FloatKey get_mass_key()
Class for handling density maps.
FitRestraint(ParticlesTemp ps, DensityMap *em_map, FloatPair norm_factors=FloatPair(0., 0.), FloatKey weight_key=atom::Mass::get_mass_key(), float scale=1, bool use_rigid_bodies=true, KernelType kt=GAUSSIAN)
Constructor.
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
SampledDensityMap * get_model_dens_map() const
Return the predicted density map of the model.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
Calculates and stores Gaussian kernel parameters.
Class for sampling a density map from particles.
#define IMP_LIST(protection, Ucname, lcname, Data, PluralData)
A macro to provide a uniform interface for storing lists of objects.
IMP::Vector< ReferenceFrame3D > ReferenceFrame3Ds
IMP::Vector< IMP::Pointer< SampledDensityMap > > SampledDensityMaps
Vector< VectorD< 3 > > Vector3Ds
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
std::pair< double, double > FloatPair
A generic pair of floats.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.