Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Config.h
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2016 The SKA organisation
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef SKA_CHEETAH_FLDO_CUDA_CONFIG_H
25 #define SKA_CHEETAH_FLDO_CUDA_CONFIG_H
26 
27 #include "panda/ConfigActive.h"
28 #include "panda/Error.h"
29 #include "panda/Log.h"
30 
31 namespace ska {
32 namespace cheetah {
33 namespace fldo {
34 namespace cuda {
35 
41 class Config : public panda::ConfigActive
42 {
43  typedef panda::ConfigActive BaseT;
44 
45  public:
46  Config();
47 
48  bool const& enable_split() const;
49 
53  size_t const& phases() const;
54 
64  void phases(size_t n);
65 
70  size_t const& nsubints() const;
71 
80  void nsubints(size_t n);
81 
86  size_t const& nsubbands() const;
87 
96  void nsubbands(size_t n);
97 
106 
107  protected:
108  void add_options(OptionsDescriptionEasyInit& add_options) override;
109 
110  private:
111  bool _enable_split; // to enable/disable the folding phase shift
112  size_t _nsubints; // the number of sub-integrations (default 64)
113  size_t _nsubbands; // the number of frequency sub-bands (default 64)
114  size_t _phases; // the number of phase bins (default 128)
115 
116 };
117 
118 
119 } // namespace cuda
120 } // namespace fldo
121 } // namespace cheetah
122 } // namespace ska
123 
124 #endif // SKA_CHEETAH_FLDO_CUDA_CONFIG_H
size_t const & nsubints() const
return the number of sub-integrations used in the sum-up data
Definition: Config.cpp:59
int fldo_input_check(const fldo::cuda::Config &)
verify input config parameter are inside the bounds defined in CommonDefs.h.
Definition: Config.cpp:121
size_t const & nsubbands() const
return the number of frequency sub-bands summed up
Definition: Config.cpp:64
size_t const & phases() const
return the number of phase bins
Definition: Config.cpp:54
Some limits and constants for FLDO.
Definition: Brdz.h:35