IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
WeightRestraint.h
Go to the documentation of this file.
1
/**
2
* \file isd/WeightRestraint.h
3
* \brief Put description here
4
*
5
* Copyright 2007-2013 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/kernel/Restraint.h
>
14
#include <
IMP/restraint_macros.h
>
15
16
IMPISD_BEGIN_NAMESPACE
17
/** A restraint for in-vivo ensemble FRET data
18
*/
19
20
class
IMPISDEXPORT
WeightRestraint
:
public
kernel::Restraint
21
{
22
kernel::Particle
*w_;
23
Float
wmin_;
24
Float
wmax_;
25
Float
kappa_;
26
27
public
:
28
29
//! Create the restraint.
30
/** kernel::Restraints should store the particles they are to act on,
31
preferably in a Singleton or PairContainer as appropriate.
32
*/
33
34
WeightRestraint
(
kernel::Particle
*w,
Float
wmin,
Float
wmax,
Float
kappa);
35
36
/** This macro declares the basic needed methods: evaluate and show
37
*/
38
virtual
double
39
unprotected_evaluate(
IMP::kernel::DerivativeAccumulator
*accum)
40
const IMP_OVERRIDE;
41
virtual IMP::kernel::
ModelObjectsTemp
do_get_inputs() const IMP_OVERRIDE;
42
IMP_OBJECT_METHODS
(
WeightRestraint
);
43
44
};
45
46
IMPISD_END_NAMESPACE
47
48
#endif
/* IMPISD_WEIGHT_RESTRAINT_H */
IMP::isd::WeightRestraint
Definition:
WeightRestraint.h:20
IMP::kernel::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
kernel/DerivativeAccumulator.h:25
IMP::kernel::ModelObjectsTemp
IMP::base::Vector< IMP::base::WeakPointer< kernel::ModelObject > > ModelObjectsTemp
Definition:
kernel/base_types.h:82
Scale.h
A decorator for scale parameters particles.
restraint_macros.h
Import IMP/kernel/restraint_macros.h in the namespace.
Restraint.h
Abstract base class for all restraints.
IMP::kernel::Restraint
A restraint is a term in an IMP ScoringFunction.
Definition:
kernel/declare_Restraint.h:52
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
base/object_macros.h:25
IMP::kernel::Particle
Class to handle individual model particles.
Definition:
kernel/declare_Particle.h:34
IMP::Float
double Float
Basic floating-point value (could be float, double...)
Definition:
base/types.h:20