DP3
ComponentInfo.h
Go to the documentation of this file.
1 // ComponentInfo.h: Class for getting information from model component
2 // hierarchies.
3 //
4 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 
7 #ifndef DP3_BASE_COMPONENTINFO_H
8 #define DP3_BASE_COMPONENTINFO_H
9 
10 #include "ModelComponent.h"
11 #include "ModelComponentVisitor.h"
12 #include "Direction.h"
13 #include "Stokes.h"
14 #include <vector>
15 
16 namespace dp3 {
17 namespace base {
18 
20 
22 
24  public:
27 
28  void inspect(const std::shared_ptr<const ModelComponent>& component);
29 
30  double ra_, dec_;
31  double sI_, sQ_, sU_, sV_;
33  std::vector<double> spectrum_ = {0.0, 0.0, 0.0};
34  double f0_;
35 
36  // Only used in Gaussians
37  double g_pa_{0.0}, g_major_{1.0}, g_minor_{1.0};
38 
39  private:
40  void visit(const PointSource&) override;
41  void visit(const GaussianSource&) override;
42 
43  void update(const PointSource& component);
44 };
45 
47 
48 } // namespace base
49 } // namespace dp3
50 
51 #endif
Class for visitors that visit model component to extract information.
Definition: ComponentInfo.h:23
double sU_
Definition: ComponentInfo.h:31
double g_major_
Definition: ComponentInfo.h:37
SourceType
Definition: ComponentInfo.h:25
@ kGaussian
Definition: ComponentInfo.h:25
@ kPoint
Definition: ComponentInfo.h:25
double sV_
Definition: ComponentInfo.h:31
std::vector< double > spectrum_
Definition: ComponentInfo.h:33
double sQ_
Definition: ComponentInfo.h:31
double dec_
Definition: ComponentInfo.h:30
double sI_
Definition: ComponentInfo.h:31
double ra_
Definition: ComponentInfo.h:30
SourceType source_type_
Definition: ComponentInfo.h:32
double g_pa_
Definition: ComponentInfo.h:37
double f0_
Definition: ComponentInfo.h:34
void inspect(const std::shared_ptr< const ModelComponent > &component)
double g_minor_
Definition: ComponentInfo.h:37
Base class for visitors that visit model component hierarchies.
Definition: ModelComponentVisitor.h:20
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53