IMP logo
IMP Reference Guide  develop.21ec66f3d8,2026/10/03
The Integrative Modeling Platform
DihedralQuadScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/DihedralQuadScore.h
3  * \brief A Score on the dihedral angle between four particles.
4  *
5  * Copyright 2007-2026 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_DIHEDRAL_QUAD_SCORE_H
9 #define IMPCORE_DIHEDRAL_QUAD_SCORE_H
10 
11 #include <IMP/core/core_config.h>
12 #include <IMP/generic.h>
13 #include <IMP/QuadScore.h>
14 #include <IMP/UnaryFunction.h>
15 #include <IMP/Pointer.h>
16 #include <IMP/quad_macros.h>
17 #include <cereal/access.hpp>
18 #include <cereal/types/base_class.hpp>
19 
20 IMPCORE_BEGIN_NAMESPACE
21 
22 //! Apply a function to the dihedral angle between four particles.
23 /** */
24 class IMPCOREEXPORT DihedralQuadScore : public QuadScore {
26 
27  friend class cereal::access;
28 
29  template<class Archive> void serialize(Archive &ar) {
30  ar(cereal::base_class<QuadScore>(this), f_);
31  }
33 
34  public:
35  //! Score the dihedral angle (in radians) using f
38  virtual double evaluate_index(Model *m,
39  const ParticleIndexQuad &pi,
40  DerivativeAccumulator *da) const override;
42  Model *m, const ParticleIndexes &pis) const override;
45 };
46 
47 IMPCORE_END_NAMESPACE
48 
49 #endif /* IMPCORE_DIHEDRAL_QUAD_SCORE_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Single variable function.
Macros for various classes.
A more IMP-like version of the std::vector.
Definition: Vector.h:50
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:86
Abstract class for scoring object(s) of type ParticleIndexQuad.
Definition: QuadScore.h:44
Apply a function to the dihedral angle between four particles.
#define IMP_QUAD_SCORE_METHODS(Name)
Definition: quad_macros.h:25
#define IMP_OBJECT_SERIALIZE_DECL(Name)
Declare methods needed for serialization of Object pointers.
Definition: object_macros.h:95
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:143
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
virtual double evaluate_index(Model *m, const ParticleIndexQuad &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed.
Define QuadScore.
A nullptr-initialized pointer to an IMP Object.
Abstract single variable functor class for score functions.
Definition: UnaryFunction.h:27
Class for adding derivatives from restraints to the model.
Compile-time generic restraint and constraint support.