IMP logo
IMP Reference Guide  2.6.0
The Integrative Modeling Platform
LowestRefinedPairScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/misc/LowestRefinedPairScore.h
3  * \brief Score on the lowest scoring pair of the refined pairs.
4  *
5  * Copyright 2007-2016 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPMISC_LOWEST_REFINED_PAIR_SCORE_H
9 #define IMPMISC_LOWEST_REFINED_PAIR_SCORE_H
10 
11 #include <IMP/misc/misc_config.h>
12 #include <IMP/PairScore.h>
13 #include <IMP/UnaryFunction.h>
14 #include <IMP/Pointer.h>
15 #include <IMP/Refiner.h>
16 #include <IMP/pair_macros.h>
17 
18 IMPMISC_BEGIN_NAMESPACE
19 
20 //! Refine both particles with the refiner and score on the lowest pair.
21 /** Score on the lowest of the pairs defined by refining the two particles.
22  */
23 class IMPMISCEXPORT LowestRefinedPairScore : public PairScore {
26 
27  public:
28  /** \param[in] r The Refiner to call on each particle
29  \param[in] f The pair score to apply to the generated pairs
30  */
32  double evaluate_index(Model *m, const ParticleIndexPair &p,
35  Model *m, const ParticleIndexes &pis) const;
38  ;
39 };
40 
41 IMPMISC_END_NAMESPACE
42 
43 #endif /* IMPMISC_LOWEST_REFINED_PAIR_SCORE_H */
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:37
Macros for various classes.
#define IMP_PAIR_SCORE_METHODS(Name)
Definition: pair_macros.h:25
A class to store an fixed array of same-typed values.
Definition: Array.h:33
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Single variable function.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Refine a particle into a list of particles.
Define PairScore.
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:146
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
A nullptr-initialized pointer to an IMP Object.
Abstract class to implement hierarchical methods.
Definition: Refiner.h:34
Refine both particles with the refiner and score on the lowest pair.
virtual double evaluate_index(Model *m, const ParticleIndexPair &vt, DerivativeAccumulator *da) const =0
Compute the score and the derivative if needed.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.