casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::CalSet< T > Class Template Reference

#include <CalSet.h>

Public Member Functions

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

Private Member Functions

void inflate ()
 new/delete of cache More...
 
void deflate ()
 
casacore::LogSinklogSink ()
 

Private Attributes

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

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

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

From full shape.

template<class T>
casa::CalSet< T >::CalSet ( const casacore::String calTableName,
const casacore::String select,
const casacore::Int nSpw,
const casacore::Int nPar,
const casacore::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>
casacore::Vector<casacore::Int>& casa::CalSet< T >::fieldId ( const casacore::Int spw)
inline

Definition at line 122 of file CalSet.h.

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

Definition at line 123 of file CalSet.h.

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

Definition at line 135 of file CalSet.h.

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

Definition at line 136 of file CalSet.h.

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

Freq list per spw.

Definition at line 112 of file CalSet.h.

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

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

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

Definition at line 132 of file CalSet.h.

template<class T>
casacore::Matrix<casacore::Float>& casa::CalSet< T >::iFitwt ( const casacore::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 casacore::String type,
const casacore::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 casacore::String file,
const casacore::String select 
)
virtual

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

template<class T>
casacore::LogSink& casa::CalSet< T >::logSink ( )
inlineprivate

Definition at line 207 of file CalSet.h.

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

Definition at line 96 of file CalSet.h.

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

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

Definition at line 97 of file CalSet.h.

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

Definition at line 98 of file CalSet.h.

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

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

Definition at line 95 of file CalSet.h.

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

template<class T>
casacore::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>
casacore::Vector<casacore::Int>& casa::CalSet< T >::nTime ( )
inline

Definition at line 99 of file CalSet.h.

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

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

Definition at line 100 of file CalSet.h.

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

Definition at line 127 of file CalSet.h.

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

Definition at line 126 of file CalSet.h.

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

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

Definition at line 128 of file CalSet.h.

template<class T>
void casa::CalSet< T >::resize ( const casacore::Int nPar,
const casacore::Vector< casacore::Int > &  nChan,
const casacore::Int nElem,
const casacore::Vector< casacore::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 casacore::Vector< casacore::Int > &  startChan)
inline

Temporary method to support current conventions in SVJ.

Definition at line 115 of file CalSet.h.

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

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

Definition at line 103 of file CalSet.h.

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

Definition at line 134 of file CalSet.h.

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

Definition at line 124 of file CalSet.h.

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

Report if solutions available for specified spw.

Definition at line 109 of file CalSet.h.

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

Definition at line 116 of file CalSet.h.

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

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

Access to whole solution caches.

Definition at line 119 of file CalSet.h.

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

Definition at line 120 of file CalSet.h.

template<class T>
virtual void casa::CalSet< T >::store ( const casacore::String file,
const casacore::String type,
const casacore::Bool append,
const casacore::String msname = "" 
)
virtual
template<class T>
casacore::Vector<casacore::Double>& casa::CalSet< T >::time ( const casacore::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>
casacore::String casa::CalSet< T >::calTableName_
private

casacore::Table name

Definition at line 159 of file CalSet.h.

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

Definition at line 187 of file CalSet.h.

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

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

Definition at line 188 of file CalSet.h.

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

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

Definition at line 203 of file CalSet.h.

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

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

Definition at line 204 of file CalSet.h.

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

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

Definition at line 181 of file CalSet.h.

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

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

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

Definition at line 199 of file CalSet.h.

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

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

Definition at line 200 of file CalSet.h.

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

template<class T>
casacore::LogSink casa::CalSet< T >::logSink_p
private

Definition at line 206 of file CalSet.h.

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

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

Per spw, per slot Meta information.

Definition at line 184 of file CalSet.h.

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

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

Definition at line 185 of file CalSet.h.

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

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

Definition at line 186 of file CalSet.h.

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

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

Number of channels.

Definition at line 168 of file CalSet.h.

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

template<class T>
casacore::Int casa::CalSet< T >::nElem_
private

Number of elements (ants or baselines)

Definition at line 171 of file CalSet.h.

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

template<class T>
casacore::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< casacore::Complex >::nPar(), and casa::CalSet< casacore::Complex >::shape().

template<class T>
casacore::Int casa::CalSet< T >::nSpw_
private

Number of Spectral windows.

Definition at line 162 of file CalSet.h.

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

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

Number of time slots.

Definition at line 174 of file CalSet.h.

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

template<class T>
casacore::PtrBlock<casacore::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< casacore::Complex >::par().

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

Definition at line 194 of file CalSet.h.

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

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

Definition at line 193 of file CalSet.h.

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

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

Definition at line 195 of file CalSet.h.

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

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

Definition at line 202 of file CalSet.h.

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

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

Definition at line 189 of file CalSet.h.

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

template<class T>
casacore::Vector<casacore::Bool> casa::CalSet< T >::spwOK_
private
template<class T>
casacore::Vector<casacore::Int> casa::CalSet< T >::startChan_
private

Channel frequencies, etc.

Definition at line 180 of file CalSet.h.

Referenced by casa::CalSet< casacore::Complex >::setStartChan(), and casa::CalSet< casacore::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: