IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
ToroidalPoreSurfaceDepthPairScore.h
Go to the documentation of this file.
1/**
2 * \file IMP/npc/ToroidalPoreSurfaceDepthPairScore.h
3 * \brief a go-like score for a slab with a toroidal pore
4 *
5
6 * Copyright 2007-2018 IMP Inventors. All rights reserved.
7 *
8 */
9
10#ifndef IMPNPC_TOROIDAL_PORE_SURFACE_DEPTH_PAIR_SCORE_H
11#define IMPNPC_TOROIDAL_PORE_SURFACE_DEPTH_PAIR_SCORE_H
12
13#include "npc_config.h"
15#include <IMP/Model.h>
16#include <IMP/Pointer.h>
17#include <IMP/check_macros.h>
18#include <IMP/PairScore.h>
19#include <IMP/pair_macros.h>
20#include "IMP/core/XYZR.h"
21
22IMPNPC_BEGIN_NAMESPACE
23
24//! apply repulsive force to the distance between a particle and the normal to toroidal membrane
25/** The source code is as follows:
26 * \include ToroidalPoreSurfaceDepthPairScore.h
27 * \include ToroidalPoreSurfaceDepthPairScore.cpp
28 */
29
30// scores a go-like harmonic interaction based on normal distance to closest point
31class IMPNPCEXPORT ToroidalPoreSurfaceDepthPairScore : public PairScore {
32double k_;
33
34public:
35/**
36 * Constructs a score over a horizontal slab with a toroidal indent.
37
38 @param k the slab repulsive force constant in kcal/mol/A
39 */
41virtual double evaluate_index(Model *m,
42 const ParticleIndexPair &p,
43 DerivativeAccumulator *da) const override;
44
46 const ParticleIndexes &pis) const override;
47
50
51};
52
54
55IMPNPC_END_NAMESPACE
56
57#endif /* IMPNPC_TOROIDAL_PORE_SURFACE_DEPTH_PAIR_SCORE_H */
Storage of a model, its restraints, constraints and particles.
Define PairScore.
A nullptr-initialized pointer to an IMP Object.
Decorator for a sphere-like particle.
Helper macros for throwing and handling exceptions.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Definition Model.h:111
apply repulsive force to the distance between a particle and the normal to toroidal membrane
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const override
Overload this method to specify the inputs.
virtual double evaluate_index(Model *m, const ParticleIndexPair &p, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
IMP::Vector< IMP::Pointer< ToroidalPoreSurfaceDepthPairScore > > ToroidalPoreSurfaceDepthPairScores
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
A decorator for a particle that's a slab with a toroidal pore.
#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