home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.15.0
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
include
IMP
spb
version 2.15.0
TwoStateGoModelRestraint.h
Go to the documentation of this file.
1
/**
2
* \file IMP/spb/TwoStateGoModelRestraint.h
3
* \brief Two-state Go-Model Restraint
4
*
5
* Copyright 2007-2021 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPSPB_TWO_STATE_GO_MODEL_RESTRAINT_H
9
#define IMPSPB_TWO_STATE_GO_MODEL_RESTRAINT_H
10
11
#include "
IMP/Restraint.h
"
12
#include <IMP/spb/spb_config.h>
13
#include <
IMP/Particle.h
>
14
#include <
IMP/base_types.h
>
15
#include <map>
16
#include <string>
17
18
IMPSPB_BEGIN_NAMESPACE
19
20
//! Two-state Go-Model Restraint
21
class
IMPSPBEXPORT
TwoStateGoModelRestraint
:
public
Restraint
{
22
private
:
23
Particles
ps_;
24
Float
Beta_;
25
Float
DeltaV_;
26
std::map<IntPair, Float> native_attrA_;
27
std::map<IntPair, Float> native_attrB_;
28
29
void
set_parameters(
Particles
psA,
Particles
psB,
Float
cutoff);
30
double
get_contribution(
Float
dist,
Float
dist0)
const
;
31
double
get_native_potential(
const
std::map<IntPair, Float>& native)
const
;
32
33
public
:
34
TwoStateGoModelRestraint
(
Particles
ps,
Particles
psA,
Particles
psB,
35
Float
Beta,
Float
Delta,
Float
Cutoff);
36
37
virtual
double
unprotected_evaluate(
IMP::DerivativeAccumulator
* accum)
const
38
IMP_OVERRIDE
;
39
virtual
IMP::ModelObjectsTemp
do_get_inputs
()
const
IMP_OVERRIDE
;
40
41
// IMP_RESTRAINT(TwoStateGoModelRestraint);
42
IMP_OBJECT_METHODS
(
TwoStateGoModelRestraint
);
43
};
44
45
IMPSPB_END_NAMESPACE
46
47
#endif
/* IMPSPB_TWO_STATE_GO_MODEL_RESTRAINT_H */
base_types.h
Basic types used by IMP.
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::Vector< Pointer< Particle > >
Particle.h
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
IMP::Float
double Float
Basic floating-point value (could be float, double...)
Definition:
types.h:20
Restraint.h
Abstract base class for all restraints.
IMP::spb::TwoStateGoModelRestraint
Two-state Go-Model Restraint.
Definition:
TwoStateGoModelRestraint.h:21
IMP::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:78
IMP::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
DerivativeAccumulator.h:24
IMP::Restraint
A restraint is a term in an IMP ScoringFunction.
Definition:
Restraint.h:54