24 const double dope_threshold=16;
25 const double spring_constant=1;
32 for (
unsigned int i=0; i< 2; ++i) {
54 for (
unsigned int i=0; i< atoms.size(); ++i) {
55 for (
unsigned int j=0; j< i; ++j) {
56 all_pairs.push_back(IMP::ParticleIndexPair(atoms[i], atoms[j]));
63 int main(
int argc,
char *argv[]) {
68 "Show to to use dope and excluded volume");
75 DopeAndExcludedVolumeDistancePairScore;
79 score=
new DopeAndExcludedVolumeDistancePairScore
80 (Score(IMP::score_functor::Dope(dope_threshold),
81 SoftSphere(Harmonic(spring_constant))));
87 for (
unsigned int i=0; i< pips.size(); ++i) {
88 std::cout <<
"Score is " << score->evaluate_index(model, pips[i],
93 }
catch (
const std::exception &e) {
94 std::cerr <<
"ERROR: " << e.what() << std::endl;