1 #ifndef MHO_AdhocFlagging_HH__
2 #define MHO_AdhocFlagging_HH__
63 void SetRefFlagFile(
const std::string& filename) { fFlagFile[0] = filename; }
69 void SetRemFlagFile(
const std::string& filename) { fFlagFile[1] = filename; }
94 static constexpr std::size_t MAX_FLAG_FREQS = 64;
113 static constexpr uint8_t USB_MASK = 0x55u;
114 static constexpr uint8_t LSB_MASK = 0xAAu;
119 std::array< uint8_t, MAX_FLAG_FREQS > bytes;
132 static void DecodeHexToken(
const char* hex_token, std::array< uint8_t, MAX_FLAG_FREQS >& bytes);
140 bool LoadFlagFile(std::size_t stn_idx);
154 const uint8_t* LookupFlagBytes(std::size_t stn_idx,
double ap_center_fpday)
const;
157 MHO_ParameterStore* fParameterStore;
160 std::string fFlagFile[2];
163 std::vector< FlagTableRow > fFlagTable[2];
166 double fScanStartFpDay;
171 std::string fStartKey;
172 std::string fSidebandKey;
Port of the legacy fourfit adhoc_flag() capability into the HOPS4 calibration operator framework.
Definition: MHO_AdhocFlagging.hh:54
void SetParameterStore(MHO_ParameterStore *pstore)
Provide a parameter store so the operator can update /fringe/total_summed_weights after zeroing flagg...
Definition: MHO_AdhocFlagging.hh:85
virtual bool InitializeOutOfPlace(const weight_type *in, weight_type *out) override
Definition: MHO_AdhocFlagging.cc:252
virtual ~MHO_AdhocFlagging()
Definition: MHO_AdhocFlagging.cc:41
MHO_AdhocFlagging()
Definition: MHO_AdhocFlagging.cc:29
void SetRemFlagFile(const std::string &filename)
Set the flag file for the remote station.
Definition: MHO_AdhocFlagging.hh:69
const std::string & GetRemFlagFile() const
Get the flag file path for the remote station.
Definition: MHO_AdhocFlagging.hh:79
virtual bool ExecuteInPlace(weight_type *in) override
Definition: MHO_AdhocFlagging.cc:262
const std::string & GetRefFlagFile() const
Get the flag file path for the reference station.
Definition: MHO_AdhocFlagging.hh:74
virtual bool InitializeInPlace(weight_type *in) override
Definition: MHO_AdhocFlagging.cc:204
void SetRefFlagFile(const std::string &filename)
Set the flag file for the reference station.
Definition: MHO_AdhocFlagging.hh:63
Class MHO_ParameterStore.
Definition: MHO_ParameterStore.hh:52
Class MHO_UnaryOperator.
Definition: MHO_UnaryOperator.hh:24
Definition: MHO_AdhocFlagging.hh:18