void add_NuisanceMover(Particle *p, double dp, core::MonteCarloMovers &mvs) { // put particle in a list Particles ps; ps.push_back(p); // put nuisance floatkey in a list FloatKeys fks; fks.push_back(FloatKey("nuisance")); IMP_NEW(core::NormalMover, mv, (ps, fks, dp)); mvs.push_back(mv); }
FloatKey Weight::get_weight_key(int j) { static FloatKeys kk; if (kk.empty()) { for (int i = 0; i < nstates_max; ++i) { std::stringstream out; out << i; kk.push_back(FloatKey("weight" + out.str())); } } return kk[j]; }
const FloatKeys Voxel::get_keys() { static FloatKeys keys = core::XYZ::get_xyz_keys(); keys.push_back(core::XYZR::get_radius_key()); keys.push_back(Voxel::get_density_key()); return keys; }