13#ifndef IMPISD_RESIDUE_PROTEIN_PROXIMITY_RESTRAINT_H
14#define IMPISD_RESIDUE_PROTEIN_PROXIMITY_RESTRAINT_H
16#include <IMP/isd/isd_config.h>
23#include <boost/unordered_map.hpp>
36 bool part_of_log_score=
false,
37 std::string name =
"ResidueProteinProximityRestraint_%1%");
52 void set_sigma(
double sigma) { sigma_=sigma; }
54 void set_cutoff(
double cutoff) { cutoff_=cutoff; }
56 void set_max_score(
double max_score) { max_score_=max_score; }
58 void set_yi(
double yi) { yi_=yi; }
60 void set_interpolation_factor(
double interpolation_factor) { interpolation_factor_=interpolation_factor; }
62 void set_part_of_log_score(
bool hey) { part_of_log_score_=hey; }
74 double interpolation_factor_;
76 bool part_of_log_score_;
80 std::vector<IMP::core::XYZRs> coms1_;
81 std::vector<IMP::core::XYZRs> coms2_;
Store a list of ParticleIndexes.
Abstract base class for all restraints.
Decorator for a sphere-like particle.
Class for adding derivatives from restraints to the model.
A shared container for Pairs.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
unsigned get_number_of_contributions() const
Get number of contributions added to the restraint.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
double evaluate_for_contributions(Ints c) const
Evaluate the restraint just for a subset of contribution indexes.
virtual double unprotected_evaluate(DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
ResidueProteinProximityRestraint(Model *m, double cutoff=6.0, double sigma=3.0, double xi=0.5, bool part_of_log_score=false, std::string name="ResidueProteinProximityRestraint_%1%")
Create the restraint.
Macros to define containers of objects.
Various important functionality for implementing decorators.
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::Pointer< PairContainer > > PairContainers
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.