casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::CalSet< T > Class Template Reference

#include <CalSet.h>

List of all members.

Public Member Functions

 CalSet ()
 Null ctor does nothing.
 CalSet (const Int &nSpw)
 Minimal, knows only how many potential spws (solve context)
 CalSet (const Int &nSpw, const Int &nPar, const Vector< Int > &nChan, const Int &nElem, const Vector< Int > &nTime)
 From full shape.
 CalSet (const String &calTableName, const String &select, const Int &nSpw, const Int &nPar, const Int &nElem)
 From existing CalTable (apply context) (for now, we will verify that filled solutions match nPar,nElem,nSpw)
 CalSet (const CalSet &other)
 Copy.
virtual ~CalSet ()
 Assignment virtual CalSet& operator=(const CalSet& other);.
void resize (const Int &nPar, const Vector< Int > &nChan, const Int &nElem, const Vector< Int > &nTime)
 Resize caches.
IntnSpw ()
 Access to shape info:
IntnPar ()
Vector< Int > & nChan ()
IntnChan (const Int &spw)
IntnElem ()
Vector< Int > & nTime ()
IntnTime (const Int &spw)
IPosition shape (const Int &spw)
 IPosition& shape(const Int& spw) { return IPosition(4,nPar(),nChan(spw),nElem(),nTime(spw)); };.
void setSpwOK ()
 Set up spwOK according to solution availability.
Vector< BoolspwOK ()
 Report if solutions available for specified spw.
Vector< Double > & frequencies (const Int &spw)
 Freq list per spw.
void setStartChan (const Vector< Int > &startChan)
 Temporary method to support current conventions in SVJ.
Vector< Int > & startChan ()
Vector< Double > & startTime (const Int &spw)
 Access to whole solution caches.
Vector< Double > & stopTime (const Int &spw)
Vector< Double > & time (const Int &spw)
Vector< Int > & fieldId (const Int &spw)
Vector< String > & fieldName (const Int &spw)
Vector< String > & sourceName (const Int &spw)
Array< T > & par (const Int &spw)
Array< Bool > & parOK (const Int &spw)
Array< Float > & parErr (const Int &spw)
Array< Float > & parSNR (const Int &spw)
Matrix< Float > & iFit (const Int &spw)
 Statistics Matrix<Bool>& iSolutionOK(const Int& spw) { return *iSolutionOK_[spw]; };.
Matrix< Float > & iFitwt (const Int &spw)
Vector< Bool > & solutionOK (const Int &spw)
Vector< Float > & fit (const Int &spw)
Vector< Float > & fitwt (const Int &spw)
virtual void initCalTableDesc (const String &type, const Int &parType)
 Store/Retrieve solutions to/from a table.
virtual void attach ()
virtual void store (const String &file, const String &type, const Bool &append, const String &msname="")
virtual void load (const String &file, const String &select)
 virtual void store(const String& file, const String& type, const String& msname, const Bool& append);

Private Member Functions

void inflate ()
 new/delete of cache
void deflate ()
LogSinklogSink ()

Private Attributes

String calTableName_
 Table name.
Int nSpw_
 Number of Spectral windows.
Int nPar_
 Number of parameters describing this calibration component.
Vector< IntnChan_
 Number of channels.
Int nElem_
 Number of elements (ants or baselines)
Vector< IntnTime_
 Number of time slots.
Vector< BoolspwOK_
 Spw OK?
Vector< IntstartChan_
 Channel frequencies, etc.
PtrBlock< Vector< Double > * > freq_
PtrBlock< Vector< Double > * > MJDStart_
 Per spw, per slot Meta information.
PtrBlock< Vector< Double > * > MJDStop_
PtrBlock< Vector< Double > * > MJDTimeStamp_
PtrBlock< Vector< Int > * > fieldId_
PtrBlock< Vector< String > * > fieldName_
PtrBlock< Vector< String > * > sourceName_
PtrBlock< Array< T > * > par_
 Per spw, per channel, per element, per slot solution generic PARAMETER storage.
PtrBlock< Array< Bool > * > parOK_
PtrBlock< Array< Float > * > parErr_
PtrBlock< Array< Float > * > parSNR_
PtrBlock< Matrix< Float > * > iFit_
 Statistics PtrBlock<Matrix<Bool>*> iSolutionOK_; // [nSpw_](nElem_,nSlots_)
PtrBlock< Matrix< Float > * > iFitwt_
PtrBlock< Vector< Bool > * > solutionOK_
PtrBlock< Vector< Float > * > fit_
PtrBlock< Vector< Float > * > fitwt_
LogSink logSink_p
CalTableDesc2calTabDesc_
CalTable2calTab_
SolvableCalSetMCol< T > * svjmcol_

Detailed Description

template<class T>
class casa::CalSet< T >

Definition at line 50 of file CalSet.h.


Constructor & Destructor Documentation

template<class T>
casa::CalSet< T >::CalSet ( ) [inline]

Null ctor does nothing.

Definition at line 55 of file CalSet.h.

template<class T>
casa::CalSet< T >::CalSet ( const Int nSpw)

Minimal, knows only how many potential spws (solve context)

template<class T>
casa::CalSet< T >::CalSet ( const Int nSpw,
const Int nPar,
const Vector< Int > &  nChan,
const Int nElem,
const Vector< Int > &  nTime 
)

From full shape.

template<class T>
casa::CalSet< T >::CalSet ( const String calTableName,
const String select,
const Int nSpw,
const Int nPar,
const Int nElem 
)

From existing CalTable (apply context) (for now, we will verify that filled solutions match nPar,nElem,nSpw)

template<class T>
casa::CalSet< T >::CalSet ( const CalSet< T > &  other)

Copy.

template<class T>
virtual casa::CalSet< T >::~CalSet ( ) [virtual]

Assignment virtual CalSet& operator=(const CalSet& other);.

Destructor


Member Function Documentation

template<class T>
virtual void casa::CalSet< T >::attach ( ) [virtual]
template<class T>
void casa::CalSet< T >::deflate ( ) [private]
template<class T>
Vector<Int>& casa::CalSet< T >::fieldId ( const Int spw) [inline]

Definition at line 122 of file CalSet.h.

template<class T>
Vector<String>& casa::CalSet< T >::fieldName ( const Int spw) [inline]

Definition at line 123 of file CalSet.h.

template<class T>
Vector<Float>& casa::CalSet< T >::fit ( const Int spw) [inline]

Definition at line 135 of file CalSet.h.

template<class T>
Vector<Float>& casa::CalSet< T >::fitwt ( const Int spw) [inline]

Definition at line 136 of file CalSet.h.

template<class T>
Vector<Double>& casa::CalSet< T >::frequencies ( const Int spw) [inline]

Freq list per spw.

Definition at line 112 of file CalSet.h.

Referenced by casa::CalInterp::csFreq().

template<class T>
Matrix<Float>& casa::CalSet< T >::iFit ( const Int spw) [inline]

Statistics Matrix<Bool>& iSolutionOK(const Int& spw) { return *iSolutionOK_[spw]; };.

Definition at line 132 of file CalSet.h.

template<class T>
Matrix<Float>& casa::CalSet< T >::iFitwt ( const Int spw) [inline]

Definition at line 133 of file CalSet.h.

template<class T>
void casa::CalSet< T >::inflate ( ) [private]

new/delete of cache

template<class T>
virtual void casa::CalSet< T >::initCalTableDesc ( const String type,
const Int parType 
) [virtual]

Store/Retrieve solutions to/from a table.

(will evolve to use table iteration)

template<class T>
virtual void casa::CalSet< T >::load ( const String file,
const String select 
) [virtual]

virtual void store(const String& file, const String& type, const String& msname, const Bool& append);

template<class T>
LogSink& casa::CalSet< T >::logSink ( ) [inline, private]

Definition at line 207 of file CalSet.h.

template<class T>
Vector<Int>& casa::CalSet< T >::nChan ( ) [inline]

Definition at line 96 of file CalSet.h.

Referenced by casa::CalInterp::nChan().

template<class T>
Int& casa::CalSet< T >::nChan ( const Int spw) [inline]

Definition at line 97 of file CalSet.h.

template<class T>
Int& casa::CalSet< T >::nElem ( ) [inline]

Definition at line 98 of file CalSet.h.

Referenced by casa::CalInterp::nElem().

template<class T>
Int& casa::CalSet< T >::nPar ( ) [inline]

Definition at line 95 of file CalSet.h.

Referenced by casa::CalInterp::nPar().

template<class T>
Int& casa::CalSet< T >::nSpw ( ) [inline]

Access to shape info:

Definition at line 94 of file CalSet.h.

Referenced by casa::CalInterp::nSpw().

template<class T>
Vector<Int>& casa::CalSet< T >::nTime ( ) [inline]

Definition at line 99 of file CalSet.h.

Referenced by casa::CalInterp::nTime(), and casa::CalSet< Complex >::setSpwOK().

template<class T>
Int& casa::CalSet< T >::nTime ( const Int spw) [inline]

Definition at line 100 of file CalSet.h.

template<class T>
Array<T>& casa::CalSet< T >::par ( const Int spw) [inline]
template<class T>
Array<Float>& casa::CalSet< T >::parErr ( const Int spw) [inline]

Definition at line 127 of file CalSet.h.

template<class T>
Array<Bool>& casa::CalSet< T >::parOK ( const Int spw) [inline]

Definition at line 126 of file CalSet.h.

Referenced by casa::CalInterp::csParOK().

template<class T>
Array<Float>& casa::CalSet< T >::parSNR ( const Int spw) [inline]

Definition at line 128 of file CalSet.h.

template<class T>
void casa::CalSet< T >::resize ( const Int nPar,
const Vector< Int > &  nChan,
const Int nElem,
const Vector< Int > &  nTime 
)

Resize caches.

template<class T>
void casa::CalSet< T >::setSpwOK ( ) [inline]

Set up spwOK according to solution availability.

Definition at line 106 of file CalSet.h.

template<class T>
void casa::CalSet< T >::setStartChan ( const Vector< Int > &  startChan) [inline]

Temporary method to support current conventions in SVJ.

Definition at line 115 of file CalSet.h.

template<class T>
IPosition casa::CalSet< T >::shape ( const Int spw) [inline]

IPosition& shape(const Int& spw) { return IPosition(4,nPar(),nChan(spw),nElem(),nTime(spw)); };.

Definition at line 103 of file CalSet.h.

template<class T>
Vector<Bool>& casa::CalSet< T >::solutionOK ( const Int spw) [inline]

Definition at line 134 of file CalSet.h.

template<class T>
Vector<String>& casa::CalSet< T >::sourceName ( const Int spw) [inline]

Definition at line 124 of file CalSet.h.

template<class T>
Vector<Bool> casa::CalSet< T >::spwOK ( ) [inline]

Report if solutions available for specified spw.

Definition at line 109 of file CalSet.h.

template<class T>
Vector<Int>& casa::CalSet< T >::startChan ( ) [inline]

Definition at line 116 of file CalSet.h.

Referenced by casa::CalSet< Complex >::setStartChan().

template<class T>
Vector<Double>& casa::CalSet< T >::startTime ( const Int spw) [inline]

Access to whole solution caches.

Definition at line 119 of file CalSet.h.

template<class T>
Vector<Double>& casa::CalSet< T >::stopTime ( const Int spw) [inline]

Definition at line 120 of file CalSet.h.

template<class T>
virtual void casa::CalSet< T >::store ( const String file,
const String type,
const Bool append,
const String msname = "" 
) [virtual]
template<class T>
Vector<Double>& casa::CalSet< T >::time ( const Int spw) [inline]

Member Data Documentation

template<class T>
CalTable2* casa::CalSet< T >::calTab_ [private]

Definition at line 210 of file CalSet.h.

template<class T>
CalTableDesc2* casa::CalSet< T >::calTabDesc_ [private]

Definition at line 207 of file CalSet.h.

template<class T>
String casa::CalSet< T >::calTableName_ [private]

Table name.

Definition at line 159 of file CalSet.h.

template<class T>
PtrBlock<Vector<Int>*> casa::CalSet< T >::fieldId_ [private]

Definition at line 187 of file CalSet.h.

Referenced by casa::CalSet< Complex >::fieldId().

template<class T>
PtrBlock<Vector<String>*> casa::CalSet< T >::fieldName_ [private]

Definition at line 188 of file CalSet.h.

Referenced by casa::CalSet< Complex >::fieldName().

template<class T>
PtrBlock<Vector<Float>*> casa::CalSet< T >::fit_ [private]

Definition at line 203 of file CalSet.h.

Referenced by casa::CalSet< Complex >::fit().

template<class T>
PtrBlock<Vector<Float>*> casa::CalSet< T >::fitwt_ [private]

Definition at line 204 of file CalSet.h.

Referenced by casa::CalSet< Complex >::fitwt().

template<class T>
PtrBlock<Vector<Double>*> casa::CalSet< T >::freq_ [private]

Definition at line 181 of file CalSet.h.

Referenced by casa::CalSet< Complex >::frequencies().

template<class T>
PtrBlock<Matrix<Float>*> casa::CalSet< T >::iFit_ [private]

Statistics PtrBlock<Matrix<Bool>*> iSolutionOK_; // [nSpw_](nElem_,nSlots_)

Definition at line 199 of file CalSet.h.

Referenced by casa::CalSet< Complex >::iFit().

template<class T>
PtrBlock<Matrix<Float>*> casa::CalSet< T >::iFitwt_ [private]

Definition at line 200 of file CalSet.h.

Referenced by casa::CalSet< Complex >::iFitwt().

template<class T>
LogSink casa::CalSet< T >::logSink_p [private]

Definition at line 206 of file CalSet.h.

Referenced by casa::CalSet< Complex >::logSink().

template<class T>
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDStart_ [private]

Per spw, per slot Meta information.

Definition at line 184 of file CalSet.h.

Referenced by casa::CalSet< Complex >::startTime().

template<class T>
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDStop_ [private]

Definition at line 185 of file CalSet.h.

Referenced by casa::CalSet< Complex >::stopTime().

template<class T>
PtrBlock<Vector<Double>*> casa::CalSet< T >::MJDTimeStamp_ [private]

Definition at line 186 of file CalSet.h.

Referenced by casa::CalSet< Complex >::time().

template<class T>
Vector<Int> casa::CalSet< T >::nChan_ [private]

Number of channels.

Definition at line 168 of file CalSet.h.

Referenced by casa::CalSet< Complex >::nChan(), and casa::CalSet< Complex >::shape().

template<class T>
Int casa::CalSet< T >::nElem_ [private]

Number of elements (ants or baselines)

Definition at line 171 of file CalSet.h.

Referenced by casa::CalSet< Complex >::nElem(), and casa::CalSet< Complex >::shape().

template<class T>
Int casa::CalSet< T >::nPar_ [private]

Number of parameters describing this calibration component.

Definition at line 165 of file CalSet.h.

Referenced by casa::CalSet< Complex >::nPar(), and casa::CalSet< Complex >::shape().

template<class T>
Int casa::CalSet< T >::nSpw_ [private]

Number of Spectral windows.

Definition at line 162 of file CalSet.h.

Referenced by casa::CalSet< Complex >::nSpw().

template<class T>
Vector<Int> casa::CalSet< T >::nTime_ [private]

Number of time slots.

Definition at line 174 of file CalSet.h.

Referenced by casa::CalSet< Complex >::nTime(), and casa::CalSet< Complex >::shape().

template<class T>
PtrBlock<Array<T>*> casa::CalSet< T >::par_ [private]

Per spw, per channel, per element, per slot solution generic PARAMETER storage.

Definition at line 192 of file CalSet.h.

Referenced by casa::CalSet< Complex >::par().

template<class T>
PtrBlock<Array<Float>*> casa::CalSet< T >::parErr_ [private]

Definition at line 194 of file CalSet.h.

Referenced by casa::CalSet< Complex >::parErr().

template<class T>
PtrBlock<Array<Bool>*> casa::CalSet< T >::parOK_ [private]

Definition at line 193 of file CalSet.h.

Referenced by casa::CalSet< Complex >::parOK().

template<class T>
PtrBlock<Array<Float>*> casa::CalSet< T >::parSNR_ [private]

Definition at line 195 of file CalSet.h.

Referenced by casa::CalSet< Complex >::parSNR().

template<class T>
PtrBlock<Vector<Bool>*> casa::CalSet< T >::solutionOK_ [private]

Definition at line 202 of file CalSet.h.

Referenced by casa::CalSet< Complex >::solutionOK().

template<class T>
PtrBlock<Vector<String>*> casa::CalSet< T >::sourceName_ [private]

Definition at line 189 of file CalSet.h.

Referenced by casa::CalSet< Complex >::sourceName().

template<class T>
Vector<Bool> casa::CalSet< T >::spwOK_ [private]

Spw OK?

Definition at line 177 of file CalSet.h.

Referenced by casa::CalSet< Complex >::setSpwOK(), and casa::CalSet< Complex >::spwOK().

template<class T>
Vector<Int> casa::CalSet< T >::startChan_ [private]

Channel frequencies, etc.

Definition at line 180 of file CalSet.h.

Referenced by casa::CalSet< Complex >::setStartChan(), and casa::CalSet< Complex >::startChan().

template<class T>
SolvableCalSetMCol<T>* casa::CalSet< T >::svjmcol_ [private]

Definition at line 211 of file CalSet.h.


The documentation for this class was generated from the following file: