IMP logo
IMP Reference Guide  2.6.1
The Integrative Modeling Platform
WeightRestraint.h
Go to the documentation of this file.
1 /**
2  * \file IMP/isd/WeightRestraint.h
3  * \brief Put description here
4  *
5  * Copyright 2007-2016 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPISD_WEIGHT_RESTRAINT_H
10 #define IMPISD_WEIGHT_RESTRAINT_H
11 #include <IMP/isd/Scale.h>
12 #include "isd_config.h"
13 #include <IMP/Restraint.h>
14 
15 IMPISD_BEGIN_NAMESPACE
16 /** A restraint for in-vivo ensemble FRET data
17  */
18 
19 class IMPISDEXPORT WeightRestraint : public Restraint {
20  Particle *w_;
21  Float wmin_;
22  Float wmax_;
23  Float kappa_;
24 
25  public:
26  //! Create the restraint.
27  WeightRestraint(Particle *w, Float wmin, Float wmax, Float kappa);
28 
29  virtual double unprotected_evaluate(IMP::DerivativeAccumulator *accum)
30  const IMP_OVERRIDE;
33 };
34 
35 IMPISD_END_NAMESPACE
36 
37 #endif /* IMPISD_WEIGHT_RESTRAINT_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A decorator for scale parameters particles.
double Float
Basic floating-point value (could be float, double...)
Definition: types.h:20
Class to handle individual model particles.
Definition: Particle.h:37
Abstract base class for all restraints.
virtual ModelObjectsTemp do_get_inputs() const =0
#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.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:52