24 #include "cheetah/data/CandidateWindowConfig.h" 32 CandidateWindowConfig::CandidateWindowConfig()
33 : BaseT(
"candidate_window"),
34 _window(0.0 *
boost::units::si::milli *
boost::units::si::seconds, 0.0 *
boost::units::si::milli *
boost::units::si::seconds)
38 CandidateWindowConfig::~CandidateWindowConfig()
42 void CandidateWindowConfig::add_options(OptionsDescriptionEasyInit& add_options)
45 (
"ms_before", boost::program_options::value<double>()->default_value(static_cast<double>(_window.ms_before().value()))->notifier([
this](
double v){
46 _window.ms_before(v * milliseconds);
48 ,
"the number of milliseconds of data to incclude before the start of the candidate")
49 (
"ms_after", boost::program_options::value<double>()->default_value(static_cast<double>(_window.ms_after().value()))->notifier([
this](
double v) {
50 _window.ms_after(v * milliseconds);
52 ,
"the number of milliseconds of data to incclude before the end of the candidate");
CandidateWindowConfig & operator=(const CandidateWindowConfig &window_config)
assignment operator. This will copy just the CandidateWindow from one object to another ...
MsecTimeType ms_before() const
the milliseconds required before the cnadidate start time
Some limits and constants for FLDO.
Config Module for initialising a CandidateWindow object.
MsecTimeType ms_after() const
the milliseconds required after the candidate end time
CandidateWindow const & window() const
the confugred CandidateWindow
define a window of data surrounding a single pulse candidate