8 #ifndef IMPPMI_UTILITIES_H
9 #define IMPPMI_UTILITIES_H
11 #include <IMP/pmi/pmi_config.h>
16 IMPPMI_BEGIN_NAMESPACE
24 for (
int n1=0;n1<nps;n1++){
25 for (
int n2=n1+1;n2<nps;n2++){
28 if (dist<dist_cutoff){
33 rs->add_restraint(rx);
Distance restraint between two particles.
Object used to hold a set of restraints.
A smart pointer to a reference counted object.
base::Array< 2, base::WeakPointer< Particle >, Particle * > ParticlePair
#define IMP_NEW(Typename, varname, args)
Declare a ref counted pointer to a new object.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
RestraintSet * create_elastic_network(const Particles &ps, Float dist_cutoff, Float strength)
Create an elastic network restraint set.
A decorator for a particle with x,y,z coordinates.
A Score on the distance between a pair of particles.
double Float
Basic floating-point value (could be float, double...)
Decorator for a sphere-like particle.
kernel::Restraint * create_restraint(Score *s, Container *c, std::string name=std::string())