10#ifndef IMPISD_AMBIGUOUS_NOE_RESTRAINT_H
11#define IMPISD_AMBIGUOUS_NOE_RESTRAINT_H
13#include <IMP/isd/isd_config.h>
29 void set_chi(
double chi) { chi_ = chi; }
31 friend class cereal::access;
33 template<
class Archive>
void serialize(Archive &ar) {
34 ar(cereal::base_class<Restraint>(
this),
35 pc_, sigma_, gamma_, Vexp_, chi_);
49 double get_probability()
const {
return exp(-unprotected_evaluate(
nullptr)); }
51 double get_chi()
const {
return chi_; }
Abstract base class for all restraints.
A decorator for scale parameters particles.
Class for adding derivatives from restraints to the model.
A shared container for Pairs.
Take Decorator, Particle or ParticleIndex.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
virtual IMP::ModelObjectsTemp do_get_inputs() const override
virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum) const override
Return the unweighted score for the restraint.
AmbiguousNOERestraint(Model *m, PairContainer *pc, ParticleIndexAdaptor sigma, ParticleIndexAdaptor gamma, double Iexp)
Create the restraint.
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a reference counted object.