HOPS
HOPS class reference
MHO_SBDTableGenerator.hh
Go to the documentation of this file.
1 #ifndef MHO_SBDTableGenerator_HH__
2 #define MHO_SBDTableGenerator_HH__
3 
4 #include <cmath>
5 #include <complex>
6 
8 #include "MHO_TableContainer.hh"
10 
11 namespace hops
12 {
13 
28 class MHO_SBDTableGenerator: public MHO_TransformingOperator< visibility_type, sbd_type >
29 {
30  public:
32  virtual ~MHO_SBDTableGenerator();
33 
34  protected:
37 
45  virtual bool InitializeImpl(const XArgType1* in, XArgType2* out) override;
53  virtual bool ExecuteImpl(const XArgType1* in, XArgType2* out) override;
54 
55  private:
56  std::size_t fInDims[VIS_NDIM];
57  std::size_t fWorkDims[VIS_NDIM];
58  std::size_t fOutDims[VIS_NDIM];
59 
60  //function to resize the sbd array if needed -- no double-sideband data
67  void ConditionallyResizeOutput(const XArgType1* in, XArgType2* out);
68 
69  bool fInitialized;
70 };
71 
72 } // namespace hops
73 
74 #endif
#define VIS_NDIM
Definition: MHO_BaselineContainers.hh:43
Class MHO_SBDTableGenerator.
Definition: MHO_SBDTableGenerator.hh:29
MHO_SBDTableGenerator()
Definition: MHO_SBDTableGenerator.cc:8
virtual ~MHO_SBDTableGenerator()
Definition: MHO_SBDTableGenerator.cc:10
virtual bool InitializeImpl(const XArgType1 *in, XArgType2 *out) override
Initializes SBD table generator with raw visibilities and resizes output if needed.
Definition: MHO_SBDTableGenerator.cc:12
virtual bool ExecuteImpl(const XArgType1 *in, XArgType2 *out) override
Checks if initialized and returns true if so, false otherwise.
Definition: MHO_SBDTableGenerator.cc:28
Operator which changes one N-D array type into a different N-D array type.
Definition: MHO_TransformingOperator.hh:21
Definition: MHO_AdhocFlagging.hh:18
visibility_type sbd_type
Definition: MHO_BaselineContainers.hh:54
MHO_TableContainer< visibility_element_type, baseline_axis_pack > visibility_type
Definition: MHO_BaselineContainers.hh:52