/** * \file TransformationCartesianProductSampler.h * \brief Samples all combinations of a transformations on particles. * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #include "IMP/domino/TransformationCartesianProductSampler.h" IMPDOMINO_BEGIN_NAMESPACE TransformationCartesianProductSampler::TransformationCartesianProductSampler( TransformationMappedDiscreteSet *ds,const Particles &ps, bool trans_from_orig):CartesianProductSampler(ds,ps),tu_(ps,trans_from_orig) {} void TransformationCartesianProductSampler::move2state(const CombState *cs) { Particle *p_sampled,*state; for (std::map::const_iterator it = cs->get_data()->begin();it != cs->get_data()->end(); it++) { p_sampled = it->first; state=ds_->get_mapped_state(p_sampled,it->second); IMP_LOG(VERBOSE,"moving particle : " << p_sampled->get_name() << " to state : " << it->second << " (transformation: " << Transformation(state).get_transformation() << ")"<get_name()<<" || "<< ds_->get_number_of_mapped_states(*it)<