SDPointingHandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef MS_SDPOINTINGHANDLER_H
00030 #define MS_SDPOINTINGHANDLER_H
00031
00032 #include <casacore/casa/aips.h>
00033 #include <casacore/casa/Containers/RecordField.h>
00034 #include <casacore/measures/Measures/MDirection.h>
00035 #include <casacore/casa/Arrays/Matrix.h>
00036
00037 namespace casacore {
00038
00039
00040 class MeasurementSet;
00041 class MSPointing;
00042 class MSPointingColumns;
00043 class Record;
00044
00045 template <class T> class Vector;
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 class SDPointingHandler
00090 {
00091 public:
00092
00093 SDPointingHandler();
00094
00095
00096 SDPointingHandler(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row);
00097
00098
00099 SDPointingHandler(const SDPointingHandler &other);
00100
00101 ~SDPointingHandler() {clearAll();}
00102
00103
00104 SDPointingHandler &operator=(const SDPointingHandler &other);
00105
00106
00107 void attach(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row);
00108
00109
00110 void resetRow(const Record &);
00111
00112
00113
00114
00115
00116
00117
00118
00119 void fill(const Record &row, Int antennaId, Double time, const Vector<Double> &timeRange,
00120 const MDirection &direction, const MeasFrame &frame);
00121
00122
00123
00124 Int nrow() {return rownr_p+1;}
00125 const String &name() {return name_p;}
00126 Int directionRefType() {return dirColRef_p.getType();}
00127 const Matrix<Double> &directionPoly() {return directionPoly_p;}
00128 Double time() {return time_p;}
00129 private:
00130 MSPointing *msPointing_p;
00131 MSPointingColumns *msPointingCols_p;
00132
00133 Double time_p;
00134
00135 Int antId_p;
00136 MDirection direction_p;
00137 Matrix<Double> directionPoly_p;
00138 Vector<Double> directionRate_p;
00139 String name_p;
00140
00141 Int rownr_p;
00142
00143 MDirection::Ref dirColRef_p;
00144
00145 RORecordFieldPtr<String> objectField_p;
00146
00147
00148
00149 RORecordFieldPtr<Array<Double> > pointingDirRateField_p;
00150 RORecordFieldPtr<Double> intervalField_p, timeField_p;
00151 RORecordFieldPtr<String> nameField_p;
00152 RORecordFieldPtr<Bool> trackingField_p;
00153
00154
00155 void clearAll();
00156
00157
00158 void clearRow();
00159
00160
00161 void initAll(MeasurementSet &ms, Vector<Bool> &handledCols, const Record &row);
00162
00163
00164 void initRow(Vector<Bool> &handledCols, const Record &row);
00165 };
00166
00167
00168 }
00169
00170 #endif
00171
00172