IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
SphericalIndentSurfaceDepthPairScore.h
Go to the documentation of this file.
1/**
2 * \file IMP/npc/SphericalIndentSurfaceDepthPairScore.h
3 * \brief A Score on the distance between a particle and the surface of a spherical indent in a plane.
4 *
5 * Copyright 2007-2018 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPNPC_SPHERICAL_INDENT_SURFACE_DEPTH_PAIR_SCORE_H
9#define IMPNPC_SPHERICAL_INDENT_SURFACE_DEPTH_PAIR_SCORE_H
10
11#include "npc_config.h"
13#include <IMP/core/XYZ.h>
14#include <IMP/PairScore.h>
15#include <IMP/pair_macros.h>
16#include <IMP/UnaryFunction.h>
17#include <IMP/Pointer.h>
18
19IMPNPC_BEGIN_NAMESPACE
20
21//! Applies a harmonic excluded volume restraint between a SlabWithSphericalIndent object
22//! and another Particle
23/** The source code is as follows:
24 \include SphericalIndentSurfaceDepthPairScore.h
25 \include SphericalIndentSurfaceDepthPairScore.cpp
26*/
27class IMPNPCEXPORT SphericalIndentSurfaceDepthPairScore : public PairScore {
28double k_;
29
30//private:
31//inline double get_surface_distance(algebra::Vector3D* out_translation) const;
32
33public:
34//! Constructs a horizontal slab with a toroidal pore,
35//! centered at the z=0 plane
36/**
37 Constructs a score over a horizontal slab with a spherical indent
38
39 @param k the slab repulsive force constant in kcal/mol/A
40*/
42virtual double evaluate_index(Model *m,
43 const ParticleIndexPair &p,
44 DerivativeAccumulator *da) const override;
45
47 Model *m, const ParticleIndexes &pis) const override;
48
51};
52
54
55IMPNPC_END_NAMESPACE
56
57#endif /* IMPNPC_SPHERICAL_INDENT_SURFACE_DEPTH_PAIR_SCORE_H */
Define PairScore.
A nullptr-initialized pointer to an IMP Object.
A decorator for a particle representing a slab with a spherical cap indent.
Single variable function.
Simple XYZ decorator.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Definition Model.h:111
virtual double evaluate_index(Model *m, const ParticleIndexPair &p, 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< IMP::Pointer< SphericalIndentSurfaceDepthPairScore > > SphericalIndentSurfaceDepthPairScores
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Definition base_types.h:199
Array< 2, ParticleIndex > ParticleIndexPair
An ordered pair of particles, each identified by its ParticleIndex.
Definition base_types.h:202
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists 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)
Definition pair_macros.h:25