IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
RigidBodyPackingScore.h
Go to the documentation of this file.
1/**
2 * \file IMP/spb/RigidBodyPackingScore.h
3 * \brief A Score on the crossing angle between two rigid bodies
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPSPB_RIGID_BODY_PACKING_SCORE_H
9#define IMPSPB_RIGID_BODY_PACKING_SCORE_H
10
11#include <IMP/spb/spb_config.h>
12#include <IMP/Pointer.h>
13#include <IMP/PairScore.h>
15#include <IMP/pair_macros.h>
16
17IMPSPB_BEGIN_NAMESPACE
18
19//! Score on the crossing angles between two helices
20class IMPSPBEXPORT RigidBodyPackingScore : public PairScore {
22 Floats omb_, ome_, ddb_, dde_;
23 double kappa_;
24
25 public:
26 RigidBodyPackingScore(core::TableRefiner *tbr, Floats omb, Floats ome,
27 Floats ddb, Floats dde, double kappa);
28
30 DerivativeAccumulator *da) const override;
31
33 IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
34
35 // void show(std::ostream &out) const ;
36
37 IMP_PAIR_SCORE_METHODS(RigidBodyPackingScore);
38 IMP_SHOWABLE(RigidBodyPackingScore);
39};
40
42
43IMPSPB_END_NAMESPACE
44
45#endif /* IMPSPB_RIGID_BODY_PACKING_SCORE_H */
Define PairScore.
A nullptr-initialized pointer to an IMP Object.
A lookup based particle refiner.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Definition Model.h:111
A lookup based particle refiner.
Score on the crossing angles between two helices.
virtual double evaluate_index(IMP::Model *m, const IMP::ParticleIndexPair &p, DerivativeAccumulator *da) const override
Compute the score and the derivative if needed.
virtual IMP::ModelObjectsTemp do_get_inputs(IMP::Model *m, const IMP::ParticleIndexes &pis) const override
Overload this method to specify the inputs.
IMP::Vector< IMP::Pointer< RigidBodyPackingScore > > RigidBodyPackingScores
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
IMP::Vector< Float > Floats
Standard way to pass a bunch of Float values.
Definition types.h:46
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
Macros for various classes.
#define IMP_PAIR_SCORE_METHODS(Name)
Definition pair_macros.h:25
#define IMP_SHOWABLE(Name)
A smart pointer to a ref-counted Object that is a class member.
Definition Pointer.h:144