casa  $Rev:20696$
Public Member Functions | Private Member Functions | Private Attributes | Friends
casa::PlotCalCache Class Reference

#include <PlotCalCache.h>

Inheritance diagram for casa::PlotCalCache:
casa::PlotMSCache

List of all members.

Public Member Functions

 PlotCalCache (PlotMSApp *parent)
 Constructor which takes parent PlotMS.
virtual ~PlotCalCache ()
 Destructor.
PlotMSCache::Type cacheType ()
 Identify myself.
virtual void load (const vector< PMS::Axis > &axes, const vector< PMS::DataColumn > &data, const String &filename, const PlotMSSelection &selection, const PlotMSAveraging &averaging, const PlotMSTransformations &transformations, PlotMSCacheThread *thread=NULL)
 Loads the cache for the given axes and data columns.
virtual void flagToDisk (const PlotMSFlagging &flagging, Vector< Int > &chunks, Vector< Int > &relids, Bool flag)
 Set flags in the Cal table.

Private Member Functions

 PlotCalCache (const PlotCalCache &mc)
 Forbid copy for now.
void openCal (const String &msname, const PlotMSSelection &selection, Bool readonly=True)
 Manage the cal table.
void closeCal ()
void selectCal (const PlotMSSelection &selection)
 Select on the caltable (via MSSelection semantics)
void countCalChunks ()
 Count the chunks required in the cache.
void loadCalChunks (const vector< PMS::Axis > loadAxes, const vector< PMS::DataColumn > loadData, PlotMSCacheThread *thread)
 Iterate over selected cal table, filling the cache.
void reportMeta (Double x, Double y, stringstream &ss)
 Issue meta info report to the given stringstream.
void loadCalAxis (Table &tab, Int vbnum, PMS::Axis axis)
 Loads the specific axis/metadata into the cache using the given VisBuffer.
Vector< IntgetAntIdx (const String &antenna)
 Support MS-oriented selection.
Vector< IntgetFieldIdx (const String &field)
Vector< IntgetSpwIdx (const String &spw)
Vector< IntgetCalDescIds (const Vector< Int > selspws)
Matrix< DoublegetTimeRange (const String &time)
void getFrequencyInfo ()
 Manage freq info we get from the MS.
void deleteFreqInfo ()

Private Attributes

String calname_
 Private data.
String msname_
 A copy of the Data parameters.
Int nCDI_
 Spw index, nchan, startchan for each CAL_DESC_ID index.
Vector< Intcdi_
Vector< IntspwFromCDI_
Vector< IntnchanFromCDI_
Vector< IntstartFromCDI_
PtrBlock< Vector< Double > * > freqFromCDI_
Tabletab_p
 Transient Table objects used when loading/flagging.
Tableseltab_p
TableIteratoriter_p

Friends

class PlotMSData
 Friend class declarations.

Detailed Description

Definition at line 48 of file PlotCalCache.h.


Constructor & Destructor Documentation

casa::PlotCalCache::PlotCalCache ( PlotMSApp parent)

Constructor which takes parent PlotMS.

virtual casa::PlotCalCache::~PlotCalCache ( ) [virtual]

Destructor.

casa::PlotCalCache::PlotCalCache ( const PlotCalCache mc) [private]

Forbid copy for now.


Member Function Documentation

PlotMSCache::Type casa::PlotCalCache::cacheType ( ) [inline]

Identify myself.

Reimplemented from casa::PlotMSCache.

Definition at line 62 of file PlotCalCache.h.

References casa::PlotMSCache::CAL.

void casa::PlotCalCache::closeCal ( ) [private]
void casa::PlotCalCache::countCalChunks ( ) [private]

Count the chunks required in the cache.

void casa::PlotCalCache::deleteFreqInfo ( ) [private]
virtual void casa::PlotCalCache::flagToDisk ( const PlotMSFlagging flagging,
Vector< Int > &  chunks,
Vector< Int > &  relids,
Bool  flag 
) [virtual]

Set flags in the Cal table.

Reimplemented from casa::PlotMSCache.

Vector<Int> casa::PlotCalCache::getAntIdx ( const String antenna) [private]

Support MS-oriented selection.

Vector<Int> casa::PlotCalCache::getCalDescIds ( const Vector< Int selspws) [private]
Vector<Int> casa::PlotCalCache::getFieldIdx ( const String field) [private]
void casa::PlotCalCache::getFrequencyInfo ( ) [private]

Manage freq info we get from the MS.

Vector<Int> casa::PlotCalCache::getSpwIdx ( const String spw) [private]
Matrix<Double> casa::PlotCalCache::getTimeRange ( const String time) [private]
virtual void casa::PlotCalCache::load ( const vector< PMS::Axis > &  axes,
const vector< PMS::DataColumn > &  data,
const String filename,
const PlotMSSelection selection,
const PlotMSAveraging averaging,
const PlotMSTransformations transformations,
PlotMSCacheThread thread = NULL 
) [virtual]

Loads the cache for the given axes and data columns.

IMPORTANT: this method assumes that any currently loaded data is valid for the given VisIter; i.e., if the meta-information or either of the axes are already loaded, then they don't need to be reloaded. If this is not the case, then clear() should be called BEFORE append(). If a PlotMSCacheThreadHelper object is given, it will be used to report progress information.

Reimplemented from casa::PlotMSCache.

void casa::PlotCalCache::loadCalAxis ( Table tab,
Int  vbnum,
PMS::Axis  axis 
) [private]

Loads the specific axis/metadata into the cache using the given VisBuffer.

void casa::PlotCalCache::loadCalChunks ( const vector< PMS::Axis >  loadAxes,
const vector< PMS::DataColumn >  loadData,
PlotMSCacheThread thread 
) [private]

Iterate over selected cal table, filling the cache.

void casa::PlotCalCache::openCal ( const String msname,
const PlotMSSelection selection,
Bool  readonly = True 
) [private]

Manage the cal table.

void casa::PlotCalCache::reportMeta ( Double  x,
Double  y,
stringstream &  ss 
) [private]

Issue meta info report to the given stringstream.

Reimplemented from casa::PlotMSCache.

void casa::PlotCalCache::selectCal ( const PlotMSSelection selection) [private]

Select on the caltable (via MSSelection semantics)


Friends And Related Function Documentation

friend class PlotMSData [friend]

Friend class declarations.

Reimplemented from casa::PlotMSCache.

Definition at line 51 of file PlotCalCache.h.


Member Data Documentation

Private data.

The name of the caltable, associated MS

Definition at line 130 of file PlotCalCache.h.

Definition at line 134 of file PlotCalCache.h.

Definition at line 139 of file PlotCalCache.h.

Definition at line 143 of file PlotCalCache.h.

A copy of the Data parameters.

Reimplemented from casa::PlotMSCache.

Definition at line 130 of file PlotCalCache.h.

Spw index, nchan, startchan for each CAL_DESC_ID index.

Definition at line 133 of file PlotCalCache.h.

Definition at line 136 of file PlotCalCache.h.

Definition at line 142 of file PlotCalCache.h.

Definition at line 135 of file PlotCalCache.h.

Definition at line 137 of file PlotCalCache.h.

Transient Table objects used when loading/flagging.

Definition at line 142 of file PlotCalCache.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines