15 #ifndef CUTS_RANDOM_CUT_H 16 #define CUTS_RANDOM_CUT_H 1 20 #include <boost/random/mersenne_twister.hpp> 21 #include <boost/random/uniform_real.hpp> 22 #include <boost/random/variate_generator.hpp> 59 double _accept_probability_;
60 boost::scoped_ptr<base_generator_type> _bg_;
61 boost::scoped_ptr<boost::uniform_real<> > _uni_dist_;
62 boost::scoped_ptr<boost::variate_generator<base_generator_type&, boost::uniform_real<> > > _uni_;
71 #endif // CUTS_RANDOM_CUT_H
The cut abstract base class (interface)
Definition: i_cut.h:62
virtual int _accept()
Selection.
Top-level namespace of the Bayeux/cuts module library.
Definition: accept_cut.h:21
random_cut(datatools::logger::priority a_logging_priority=datatools::logger::PRIO_FATAL)
Constructor.
virtual void initialize(const datatools::properties &, datatools::service_manager &, cuts::cut_handle_dict_type &)
Initialization.
#define CUT_REGISTRATION_INTERFACE(T)
Definition: i_cut.h:411
virtual ~random_cut()
Destructor.
virtual void reset()
Reset.
std::map< std::string, cut_entry_type > cut_handle_dict_type
Alias type of a dictionary of cut entry.
Definition: cut_tools.h:175
boost::mt19937 base_generator_type
Definition: random_cut.h:34
A cut that randomly accepts.
Definition: random_cut.h:30