IMP  2.1.0
The Integrative Modeling Platform
MinimumQuadScore.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/MinimumQuadScore.h
3  * \brief Define QuadScore.
4  *
5  * This file is generated by a script (tools/make-container).
6  * Do not edit directly.
7  *
8  * Copyright 2007-2013 IMP Inventors. All rights reserved.
9  */
10 
11 #ifndef IMPCONTAINER_MINIMUM_QUAD_SCORE_H
12 #define IMPCONTAINER_MINIMUM_QUAD_SCORE_H
13 
14 #include <IMP/container/container_config.h>
15 #include <IMP/QuadScore.h>
16 #include <IMP/quad_macros.h>
17 
18 IMPCONTAINER_BEGIN_NAMESPACE
19 
20 //! Evaluate the min or max n particle_quad scores of the passed set
21 /** Each of the set of QuadScores is evaluated and the sum of the
22  minimum n is returned.
23 */
24 class IMPCONTAINEREXPORT MinimumQuadScore : public QuadScore {
25  QuadScores scores_;
26  unsigned int n_;
27 
28  public:
29  MinimumQuadScore(const QuadScoresTemp &scores, unsigned int n = 1,
30  std::string name = "QuadScore %1%");
31  virtual double evaluate_index(kernel::Model *m, const ParticleIndexQuad& vt,
32  DerivativeAccumulator *da) const IMP_OVERRIDE;
34  const IMP_OVERRIDE;
37 
38  Restraints do_create_current_decomposition( kernel::Model *m, const ParticleIndexQuad& vt)
39  const IMP_OVERRIDE;
40 };
41 
43 
44 IMPCONTAINER_END_NAMESPACE
45 
46 #endif /* IMPCONTAINER_MINIMUM_QUAD_SCORE_H */
Abstract score function.
Class for adding derivatives from restraints to the model.
Import IMP/kernel/quad_macros.h in the namespace.
IMP::base::Vector< IMP::base::Pointer< Restraint > > Restraints
Evaluate the min or max n particle_quad scores of the passed set.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_QUAD_SCORE_METHODS(Name)
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Import IMP/kernel/QuadScore.h in the namespace.
virtual Restraints do_create_current_decomposition(kernel::Model *m, const ParticleIndexQuad &vt) const
IMP::base::Vector< IMP::base::Pointer< QuadScore > > QuadScores
virtual double evaluate_index(kernel::Model *m, const ParticleIndexQuad &vt, DerivativeAccumulator *da) const
Compute the score and the derivative if needed.
IMP::base::Vector< IMP::base::WeakPointer< QuadScore > > QuadScoresTemp
Class for storing model, its restraints, constraints, and particles.