8#ifndef IMPNPC_MINIMUM_SPHERE_DISTANCE_PAIR_SCORE_H
9#define IMPNPC_MINIMUM_SPHERE_DISTANCE_PAIR_SCORE_H
11#include <IMP/npc/npc_config.h>
16#include <cereal/access.hpp>
17#include <cereal/types/base_class.hpp>
31class IMPNPCEXPORT MinimumSphereDistancePairScore :
public PairScore {
35 friend class cereal::access;
36 template<
class Archive>
void serialize(Archive &ar) {
37 ar(cereal::base_class<PairScore>(
this), f_, transforms_);
44 : f_(f), transforms_(transforms) {}
46 MinimumSphereDistancePairScore() {}
Single variable function.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Abstract single variable functor class for score functions.
virtual double evaluate_index(Model *m, const ParticleIndexPair &pi, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
IMP::Vector< Transformation3D > Transformation3Ds
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its 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.
Macros for various classes.
#define IMP_PAIR_SCORE_METHODS(Name)
A smart pointer to a ref-counted Object that is a class member.