9#ifndef IMPEXAMPLE_CREATING_RESTRAINTS_H
10#define IMPEXAMPLE_CREATING_RESTRAINTS_H
12#include <IMP/example/example_config.h>
20IMPEXAMPLE_BEGIN_NAMESPACE
35 double scale =
core::XYZR(m, ps[0]).get_radius();
37 (length_factor * 2.0 * scale, k,
"chain linker %1%"));
42 (m, ps, name +
" consecutive pairs"));
54 double scale =
core::XYZR(m, ps[0]).get_radius();
56 (m, ps, name +
" list"));
66IMPEXAMPLE_END_NAMESPACE
Return all pairs from a SingletonContainer.
Return all pairs from a SingletonContainer.
Store a list of ParticleIndexes.
A score on the distance between the surfaces of two spheres.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Class for storing model, its restraints, constraints, and particles.
A restraint is a term in an IMP ScoringFunction.
Return all close unordered pairs of particles taken from the SingletonContainer.
Store a list of ParticleIndexes.
Score distance between two particle centers using a harmonic function.
A decorator for a particle with x,y,z coordinates and a radius.
Various important functionality for implementing decorators.
A Score on the distance between a pair of particles.
Restraint * create_restraint(Score *s, Container *c, std::string name=std::string())
Restraint * create_excluded_volume(Model *m, const ParticleIndexes &ps, double k, std::string name)
Restraint * create_chain_restraint(Model *m, const ParticleIndexes &ps, double length_factor, double k, std::string name)
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
#define IMP_NEW(Typename, varname, args)
Declare a ref counted pointer to a new object.
A smart pointer to a reference counted object.