12#ifndef IMPISD_CYSTEINE_CROSS_LINK_RESTRAINT_H
13#define IMPISD_CYSTEINE_CROSS_LINK_RESTRAINT_H
14#include <IMP/isd/isd_config.h>
18#include <cereal/access.hpp>
19#include <cereal/types/vector.hpp>
49 std::vector<ParticleIndexes> pslist1_;
50 std::vector<ParticleIndexes> pslist2_;
61 friend class cereal::access;
63 template<
class Archive>
void serialize(Archive &ar) {
64 ar(cereal::base_class<Restraint>(
this), ps1_, ps2_, pslist1_, pslist2_,
65 beta_, sigma_, epsilon_, weight_, data_, ccldata_, constr_type_,
88 double get_probability()
const;
90 double get_standard_error()
const;
92 Floats get_frequencies()
const;
94 double get_model_frequency()
const;
96 Floats get_distances()
const;
98 double get_truncated_normalization(
double mean,
double sigma)
const;
100 double get_normal_pdf(
double mean,
double sigma,
double x)
const;
107 unsigned get_number_of_contributions()
const;
Normal distribution of Function.
Normal distribution of Function.
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
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.
CysteineCrossLinkRestraint(Model *m, ParticleIndexAdaptor beta, ParticleIndexAdaptor sigma, ParticleIndexAdaptor epsilon, ParticleIndexAdaptor weight, CrossLinkData *data, double fexp)
Create the restraint.
Index< ParticleIndexTag > ParticleIndex
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
#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 ref-counted Object that is a class member.