casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SolvableMJMRec.h
Go to the documentation of this file.
1 //# SolvableMJMRec.h: SolvableMJones cal_main table record access & creation
2 //# Copyright (C) 1996,1997,1998,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef CALIBRATION_SOLVABLEMJMREC_H
30 #define CALIBRATION_SOLVABLEMJMREC_H
31 
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
36 // <summary>
37 // SolvableMJonesMRec: SolvableMJones cal_main table record access/creation
38 // </summary>
39 
40 // <use visibility=export>
41 
42 // <reviewed reviewer="" date="" tests="" demos="">
43 
44 // <prerequisite>
45 // <li> <linkto class="CalMainRecord">CalMainRecord</linkto> module
46 // <li> <linkto class="MJonesMRec">MJonesMRec</linkto> module
47 // <li> <linkto class="TimeVarMJonesMRec">TimeVarMJonesMRec</linkto> module
48 // </prerequisite>
49 //
50 // <etymology>
51 // From "solvable MJones" and "main record".
52 // </etymology>
53 //
54 // <synopsis>
55 // The SolvableMJonesMRec class allows the creation of records for the
56 // main calibration table of SolvableMJones type, and provides access
57 // to the individual record fields. A specialization for MIfr
58 // calibration table records is provided through inheritance.
59 // </etymology>
60 //
61 // <example>
62 // <srcblock>
63 // </srcblock>
64 // </example>
65 //
66 // <motivation>
67 // Encapsulate access to SolvableMJones calibration table records.
68 // </motivation>
69 //
70 // <todo asof="98/01/01">
71 // (i) Deal with non-standard columns.
72 // </todo>
73 
75 {
76  public:
77  // Default null constructor, and destructor
80 
81  // Construct from an existing record
82  SolvableMJonesMRec (const casacore::Record& inpRec);
83 
84  // Field accessors
85  // Note: uses protected functions defined in CalMainRecord,
86  // as fit parameters are used elsewhere in the inheritance
87  // tree for baseline-based and image plane calibration tables.
88  // a) define
89  void defineTotalSolnOk (const casacore::Bool& totalSolnOk)
90  {dTotalSolnOk (totalSolnOk);};
91  void defineTotalFit (const casacore::Float& totalFit) {dTotalFit (totalFit);};
92  void defineTotalFitWgt (const casacore::Float& totalFitWgt)
93  {dTotalFitWgt (totalFitWgt);};
94  void defineSolnOk (const casacore::Array <casacore::Bool>& solnOk) {dSolnOk (solnOk);};
95  void defineFit (const casacore::Array <casacore::Float>& fit) {dFit (fit);};
96  void defineFitWgt (const casacore::Array <casacore::Float>& fitWgt) {dFitWgt (fitWgt);};
97 
98  // b) get
99  void getTotalSolnOk (casacore::Bool& totalSolnOk) {gTotalSolnOk (totalSolnOk);};
100  void getTotalFit (casacore::Float& totalFit) {gTotalFit (totalFit);};
101  void getTotalFitWgt (casacore::Float& totalFitWgt) {gTotalFitWgt (totalFitWgt);};
105  };
106 
107 // <summary>
108 // MIfrMRec: MIfr cal_main table record access & creation
109 // </summary>
110 
111 // <use visibility=export>
112 
113 // <reviewed reviewer="" date="" tests="" demos="">
114 
115 // <prerequisite>
116 //<li><linkto class="CalMainRecord">CalMainRecord</linkto> module
117 //<li><linkto class="MJonesMRec">MJonesMRec</linkto> module
118 //<li><linkto class="SolvableMJonesMRec">SolvableMJonesMRec</linkto> module
119 // </prerequisite>
120 //
121 // <etymology>
122 // From "MIfr" and "main record".
123 // </etymology>
124 //
125 // <synopsis>
126 // The MIfrMRec class allows the creation of records for the
127 // main calibration table of MIfr type, and provides access
128 // to the individual record fields. MIfr matrices are used to
129 // store diagonal, multiplicative interferometer-based
130 // corrections in the Measurement Equation formalism.
131 // </etymology>
132 //
133 // <example>
134 // <srcblock>
135 // </srcblock>
136 // </example>
137 //
138 // <motivation>
139 // Encapsulate access to MIfr calibration table records.
140 // </motivation>
141 //
142 // <todo asof="98/01/01">
143 // (i) Deal with non-standard columns.
144 // </todo>
145 
147 {
148  public:
149  // Default null constructor, and destructor
150  MIfrMRec();
151  ~MIfrMRec() {};
152 
153  // Construct from an existing record
154  MIfrMRec (const casacore::Record& inpRec);
155 
156 };
157 
158 
159 } //# NAMESPACE CASA - END
160 
161 #endif
162 
163 
164 
void defineTotalFit(const casacore::Float &totalFit)
void defineSolnOk(const casacore::Array< casacore::Bool > &solnOk)
SolvableMJonesMRec: SolvableMJones cal_main table record access/creation.
void gTotalSolnOk(casacore::Bool &totalSolnOk)
b) get
void getSolnOk(casacore::Array< casacore::Bool > &solnOk)
void defineFit(const casacore::Array< casacore::Float > &fit)
MIfrMRec()
Default null constructor, and destructor.
void gTotalFit(casacore::Float &totalFit)
void dTotalSolnOk(const casacore::Bool &totalSolnOk)
Field accessors for fit parameters.
void getTotalFitWgt(casacore::Float &totalFitWgt)
void gFitWgt(casacore::Array< casacore::Float > &fitWgt)
void getFit(casacore::Array< casacore::Float > &fit)
void getTotalSolnOk(casacore::Bool &totalSolnOk)
b) get
MIfrMRec: MIfr cal_main table record access &amp; creation.
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void defineTotalSolnOk(const casacore::Bool &totalSolnOk)
Field accessors Note: uses protected functions defined in CalMainRecord, as fit parameters are used e...
TimeVarMJonesMRec: TimeVarMJones cal_main table record access &amp; creation.
Definition: TimeVarMJMRec.h:73
void gSolnOk(casacore::Array< casacore::Bool > &solnOk)
void dFitWgt(const casacore::Array< casacore::Float > &fitWgt)
float Float
Definition: aipstype.h:54
void gTotalFitWgt(casacore::Float &totalFitWgt)
void gFit(casacore::Array< casacore::Float > &fit)
void dSolnOk(const casacore::Array< casacore::Bool > &solnOk)
void dFit(const casacore::Array< casacore::Float > &fit)
void dTotalFit(const casacore::Float &totalFit)
void defineTotalFitWgt(const casacore::Float &totalFitWgt)
void getTotalFit(casacore::Float &totalFit)
void defineFitWgt(const casacore::Array< casacore::Float > &fitWgt)
SolvableMJonesMRec()
Default null constructor, and destructor.
void dTotalFitWgt(const casacore::Float &totalFitWgt)
void getFitWgt(casacore::Array< casacore::Float > &fitWgt)