24 const double dope_threshold = 16;
25 const double spring_constant = 1;
32 for (
unsigned int i = 0; i < 2; ++i) {
52 for (
unsigned int i = 0; i < atoms.size(); ++i) {
53 for (
unsigned int j = 0; j < i; ++j) {
61 int main(
int argc,
char *argv[]) {
66 "Show to to use dope and excluded volume");
73 DopeAndExcludedVolumeDistancePairScore;
77 new DopeAndExcludedVolumeDistancePairScore(
79 SoftSphere(Harmonic(spring_constant))));
85 for (
unsigned int i = 0; i < pips.size(); ++i) {
86 std::cout <<
"Score is " << score->evaluate_index(
87 model, pips[i], IMP_NULLPTR) << std::endl;
91 catch (
const std::exception & e) {
92 std::cerr <<
"ERROR: " << e.what() << std::endl;
static Residue setup_particle(kernel::Model *m, ParticleIndex pi, ResidueType t, int index, int insertion_code)
A Score on the distance between a pair of particles.
A Score on the distance between a pair of particles.
void add_child(Hierarchy o)
Add a child and check that the types are appropriate.
static Atom setup_particle(kernel::Model *m, ParticleIndex pi, Atom other)
A Score on the distance between a pair of particles.
A smart pointer to a ref-counted Object that is a class memeber.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
static XYZ setup_particle(kernel::Model *m, ParticleIndex pi)
ParticleIndex add_particle(std::string name)
Add particle to the model.
A Score on the distance between a pair of particles.
static Chain setup_particle(kernel::Model *m, ParticleIndex pi, char id)
Create efficient distance-based pair scores.
A class to store an fixed array of same-typed values.
Define functions to add bonds and radii to atoms.
Various general useful macros for IMP.
A decorator for a particle representing an atom.
A decorator for Residues.
A Score on the distance between a pair of particles.
A decorator for a residue.
Provide a nullptr keyword analog.
Various general useful macros for IMP.
void add_dope_score_data(atom::Hierarchy h)
Store info for a chain of a protein.
void setup_from_argv(int argc, char **argv, std::string description)
Decorator for a sphere-like particle.
Class for storing model, its restraints, constraints, and particles.