9 #ifndef IMPISD_LOG_WRAPPER_H
10 #define IMPISD_LOG_WRAPPER_H
12 #include <IMP/isd/isd_config.h>
15 #include <cereal/access.hpp>
16 #include <cereal/types/base_class.hpp>
19 IMPISD_BEGIN_NAMESPACE
28 friend class cereal::access;
29 template<
class Archive>
void serialize(Archive &ar) {
30 ar(cereal::base_class<RestraintSet>(
this));
34 void show_it(std::ostream &out)
const;
38 LogWrapper(
Model *m,
double weight,
const std::string &name =
"LogWrapper %1%");
43 const std::string &name =
"LogWrapper %1%");
52 void do_add_score_and_derivatives_moved(
Used to hold a set of related restraints.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Macros to define containers of objects.
Object used to hold a set of restraints.
Class for storing model, its restraints, constraints, and particles.
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
Class for adding up scores during ScoringFunction evaluation.
Calculate the -Log of a list of restraints.
virtual double unprotected_evaluate_moved(DerivativeAccumulator *da, const ParticleIndexes &moved_pis, const ParticleIndexes &reset_pis) const
Return the unweighted score, taking moving particles into account.
double unprotected_evaluate(DerivativeAccumulator *da) const override
Return the unweighted score for the restraint.
Class for adding derivatives from restraints to the model.