DP3
SetBeam.h
Go to the documentation of this file.
1 // Copyright (C) 2022 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
6 
7 #ifndef DP3_STEPS_SETBEAM_H_
8 #define DP3_STEPS_SETBEAM_H_
9 
10 #include <casacore/measures/Measures/MDirection.h>
11 
12 #include <EveryBeam/beammode.h>
13 
14 #include "base/DPBuffer.h"
15 #include "base/Direction.h"
16 #include "steps/Step.h"
17 
18 #include "common/ParameterSet.h"
19 
20 namespace dp3 {
21 namespace steps {
22 
24 class SetBeam final : public Step {
25  public:
27  explicit SetBeam(const common::ParameterSet& parameters,
28  const std::string& prefix);
29 
30  common::Fields getRequiredFields() const override { return {}; }
31 
32  common::Fields getProvidedFields() const override { return {}; }
33 
34  bool process(std::unique_ptr<base::DPBuffer> buffer) override;
35 
36  void finish() override{};
37 
38  void updateInfo(const base::DPInfo& info) override;
39 
40  void show(std::ostream&) const override;
41 
42  private:
43  std::string name_;
44  std::vector<std::string> direction_strings_;
45  casacore::MDirection direction_;
46  everybeam::BeamMode mode_;
47 };
48 
49 } // namespace steps
50 } // namespace dp3
51 
52 #endif
Buffer holding the data of a timeslot/band.
Class to hold code for virtual base class for Flaggers in DP3.
General info about DP3 data processing attributes like averaging.
Definition: DPInfo.h:35
Definition: Fields.h:16
Implements a map of Key-Value pairs.
Definition: ParameterSet.h:31
DPPP step class to set the beam keywords in a ms.
Definition: SetBeam.h:24
common::Fields getProvidedFields() const override
Definition: SetBeam.h:32
common::Fields getRequiredFields() const override
Get the fields required by the current step.
Definition: SetBeam.h:30
bool process(std::unique_ptr< base::DPBuffer > buffer) override
void updateInfo(const base::DPInfo &info) override
void finish() override
Finish the processing of this step and subsequent steps.
Definition: SetBeam.h:36
void show(std::ostream &) const override
Show the step parameters.
SetBeam(const common::ParameterSet &parameters, const std::string &prefix)
Parameters are obtained from the parset using the given prefix.
Abstract base class for a DP3 step.
Definition: Step.h:52
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53