IMP
2.3.1
The Integrative Modeling Platform
IMP Mainpage
Modules
Applications
Related Pages
Groups
Classes
Files
Examples
Indexes
File List
File Members
NOERestraint.h
Go to the documentation of this file.
1
/**
2
* \file IMP/isd/NOERestraint.h
3
* \brief A lognormal restraint that uses the ISPA model to model NOE-derived
4
* distance fit.
5
*
6
* Copyright 2007-2014 IMP Inventors. All rights reserved.
7
*
8
*/
9
10
#ifndef IMPISD_NOE_RESTRAINT_H
11
#define IMPISD_NOE_RESTRAINT_H
12
13
#include <IMP/isd/isd_config.h>
14
#include <
IMP/SingletonScore.h
>
15
#include <
IMP/core/XYZ.h
>
16
#include <
IMP/kernel/Restraint.h
>
17
#include <
IMP/PairContainer.h
>
18
#include <
IMP/PairScore.h
>
19
20
IMPISD_BEGIN_NAMESPACE
21
22
//! Apply an NOE distance restraint between two particles.
23
class
IMPISDEXPORT
NOERestraint
:
public
kernel::Restraint
{
24
base::Pointer<kernel::Particle>
p0_;
25
base::Pointer<kernel::Particle>
p1_;
26
base::Pointer<kernel::Particle>
sigma_;
27
base::Pointer<kernel::Particle>
gamma_;
28
double
Vexp_;
29
double
chi_;
30
void
set_chi(
double
chi) { chi_ = chi; }
31
32
public
:
33
//! Create the restraint.
34
/** kernel::Restraints should store the particles they are to act on,
35
preferably in a Singleton or PairContainer as appropriate.
36
*/
37
NOERestraint
(
kernel::Model
*m,
Particle
*p0,
Particle
*p1,
Particle
*sigma,
38
Particle
*gamma,
double
Iexp);
39
40
/* call for probability */
41
double
get_probability()
const
{
return
exp(-unprotected_evaluate(
nullptr
)); }
42
43
double
get_chi()
const
{
return
chi_; }
44
45
virtual
double
unprotected_evaluate(
IMP::kernel::DerivativeAccumulator
*accum)
46
const
IMP_OVERRIDE
;
47
virtual
IMP::kernel::ModelObjectsTemp
do_get_inputs
()
const
IMP_OVERRIDE
;
48
IMP_OBJECT_METHODS
(
NOERestraint
);
49
};
50
51
IMPISD_END_NAMESPACE
52
53
#endif
/* IMPISD_NOE_RESTRAINT_H */
IMP::kernel::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
kernel/DerivativeAccumulator.h:25
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::base::Pointer
A smart pointer to a reference counted object.
Definition:
Pointer.h:87
IMP::base::Vector
Definition:
Vector.h:37
XYZ.h
Simple XYZ decorator.
PairContainer.h
Import IMP/kernel/PairContainer.h in the namespace.
Restraint.h
Abstract base class for all restraints.
IMP::isd::NOERestraint
Apply an NOE distance restraint between two particles.
Definition:
NOERestraint.h:23
PairScore.h
Import IMP/kernel/PairScore.h in the namespace.
IMP::kernel::Restraint
A restraint is a term in an IMP ScoringFunction.
Definition:
kernel/Restraint.h:52
IMP::kernel::Particle
Class to handle individual model particles.
Definition:
kernel/Particle.h:37
SingletonScore.h
Import IMP/kernel/SingletonScore.h in the namespace.
IMP::kernel::ModelObject::do_get_inputs
virtual ModelObjectsTemp do_get_inputs() const =0
IMP_OVERRIDE
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Definition:
compiler_macros.h:75
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/Model.h:73