11#ifndef IMPNPCTRANSPORT_FG_CHAIN_H
12#define IMPNPCTRANSPORT_FG_CHAIN_H
14#include "npctransport_config.h"
26IMPNPCTRANSPORT_BEGIN_NAMESPACE
55 double rest_length_factor_;
66 void update_bonds_restraint(
Scoring const* scoring_manager);
83 double backbone_k = 0.0,
84 double rest_length_factor = 1.0,
85 std::string name =
"chain %1%")
88 bonds_restraint_(nullptr),
89 bonds_score_(nullptr),
90 backbone_k_(backbone_k),
91 rest_length_factor_(rest_length_factor)
94 " should be positive");
108 "root must be Hierarchy decorated");
116 root_ = root.get_particle();
178 return rest_length_factor_;
228 const ::npctransport_proto::Assignment_FGAssignment &fg_data,
249IMPNPCTRANSPORT_END_NAMESPACE
Return all pairs from a SingletonContainer.
A shared base class to help in debugging and things.
Decorator for helping deal with a hierarchy of molecules.
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Common base class for heavy weight IMP objects.
Object(std::string name)
Construct an object with the given name.
Class to handle individual particles of a Model object.
The standard decorator for manipulating molecular structures.
static bool get_is_setup(Model *m, ParticleIndex p)
Check if the particle has the needed attributes for a cast to succeed.
double get_rest_length_factor() const
IMP::Particle * get_bead(unsigned int i) const
get the i'th bead in the chain (assume valid root)
void set_root(Particle *p)
virtual Restraints get_chain_restraints(Scoring const *scoring_manager)
unsigned int get_number_of_beads() const
get the number of beads in the chain (assume valid root)
FGChain(IMP::Particle *root, double backbone_k=0.0, double rest_length_factor=1.0, std::string name="chain %1%")
IMP::ParticlesTemp get_beads() const
get the beads of the chain (assume valid root)
void set_rest_length_factor(double rlf)
void set_root(atom::Hierarchy root)
double get_backbone_k() const
get the force constant between consecutive chain beads
void set_backbone_k(double k)
IMP::ParticleIndex get_bead_index(unsigned int i) const
get the i'th bead index in the chain (assume valid root)
Scoring associated with a SimulationData object.
Store all parameters for a simulation.
A Score on the distance between a pair of particles.
GenericHierarchies get_leaves(Hierarchy mhd)
Get all the leaves of the bit of hierarchy.
FGChain * get_fg_chain(atom::Hierarchy root)
FGChain * create_fg_chain(IMP::npctransport::SimulationData *sd, atom::Hierarchy parent, const ::npctransport_proto::Assignment_FGAssignment &fg_data, display::Color c)
IMP::Vector< IMP::Pointer< FGChain > > FGChains
Index< ParticleIndexTag > ParticleIndex
IMP::Vector< IMP::Pointer< Restraint > > Restraints
forward declaration of incomplete protobuf files for the main data structures used
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.