24 #include "cheetah/spsift/Config.h" 32 : utils::Config(
"spsift")
33 , _pulse_width_threshold(MsecTimeType(10.0 * cheetah::data::milliseconds))
34 , _sigma_threshold(0.0)
35 , _dm_threshold(0.0 *
pss::astrotypes::units::parsecs_per_cube_cm)
36 , _maximum_candidates(0)
45 void Config::add_options(OptionsDescriptionEasyInit& add_options )
48 (
"active", boost::program_options::value<bool>(&_active)->default_value(_active),
49 "perform SpSift if true" 51 (
"dm_thresh", boost::program_options::value<float>()->default_value(_dm_threshold.value())->notifier(
54 _dm_threshold = f * pss::astrotypes::units::parsecs_per_cube_cm;
55 }),
"DM threshold in cm^-3 pc" 57 (
"sigma_thresh", boost::program_options::value<float>(&_sigma_threshold)->default_value(_sigma_threshold),
58 "S/N threshold for candidates to sift," 60 (
"pulse_width_threshold", boost::program_options::value<float>()->default_value(_pulse_width_threshold.value())->notifier(
63 _pulse_width_threshold = MsecTimeType(f * cheetah::data::milliseconds);
64 }),
"Pulse width threshold in ms" 66 (
"maximum_candidates", boost::program_options::value<std::size_t>(&_maximum_candidates)->default_value(_maximum_candidates),
67 "Threshold for maximum number of candidates. If the number of candidates exceeds the threshold then we resize the list to the threshold. A value of 0 sets the threshold to unlimited." 71 typename Config::Dm Config::dm_threshold()
const 76 void Config::dm_threshold( Dm
const& dm_threshold)
78 _dm_threshold = dm_threshold;
81 typename Config::MsecTimeType Config::pulse_width_threshold()
const 83 return _pulse_width_threshold;
86 void Config::pulse_width_threshold(MsecTimeType
const& pulse_width_threshold)
88 _pulse_width_threshold = pulse_width_threshold;
91 float Config::sigma_threshold()
const 93 return _sigma_threshold;
96 void Config::sigma_threshold(
float const& sigma_threshold)
98 _sigma_threshold = sigma_threshold;
101 std::size_t Config::maximum_candidates()
const 103 return _maximum_candidates;
106 void Config::maximum_candidates(std::size_t
const& maximum_candidates)
108 _maximum_candidates = maximum_candidates;
111 bool Config::active()
const
Some limits and constants for FLDO.