Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Config.cpp
1 #include "cheetah/rfim/sum_threshold/Config.h"
2 
3 
4 namespace ska {
5 namespace cheetah {
6 namespace rfim {
7 namespace sum_threshold {
8 
9 
10 Config::Config()
11  : cheetah::utils::Config("rfim_sum_threshold")
12  , _active(false)
13  , _threshold_sizes{1, 2, 4, 6, 8, 16, 32, 64}
14 {
15 }
16 
17 Config::~Config()
18 {
19 }
20 
21 bool Config::active() const
22 {
23  return _active;
24 }
25 
26 void Config::add_options(OptionsDescriptionEasyInit& add_options)
27 {
28  add_options
29  ("active", boost::program_options::value<bool>(&_active)->default_value(false), "use this algorithm for rfi clipping")
30  ("its_cutoff", boost::program_options::value<float>(&_its_cutoff_threshold)->default_value(6.0), "median cutoff threshold")
31  ("base_sensitivity", boost::program_options::value<float>(&_its_cutoff_threshold)->default_value(1.0), "the sensitivity of the threshold to std deviation")
32  ("window", boost::program_options::value<unsigned>(&_window)->default_value(0U), "restrict area of data sum thresholding takes place (0=all data)");
33 }
34 
35 std::vector<unsigned> const& Config::thresholding_data_sizes() const
36 {
37  return _threshold_sizes;
38 }
39 
40 float Config::its_cutoff_threshold() const
41 {
42  return _its_cutoff_threshold;
43 }
44 
45 unsigned Config::window() const {
46  return _window;
47 }
48 
49 float Config::base_sensitivity() const
50 {
51  return _base_sensitivity;
52 }
53 } // namespace sum_threshold
54 } // namesapce rfim
55 } // namespace cheetah
56 } // namespace ska
Some limits and constants for FLDO.
Definition: Brdz.h:35