casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::PlotMSVBAverager Class Reference

A class to average VisBuffers for PlotMS. More...

#include <PlotMSVBAverager.h>

List of all members.

Public Member Functions

 PlotMSVBAverager (Int nAnt, Bool chanDepWt)
 Construct from the number of antennas, the averaging interval and the pre-normalization flag.
 ~PlotMSVBAverager ()
 Null destructor.
void setBlnAveraging (Bool doBln)
 Set up baseline averaging.
void setAntAveraging (Bool doAnt)
 Set up baseline averaging.
void setScalarAve (Bool doScalar)
 Set scalar averaging flag.
void setNoData ()
 Control which data column to average.
void setDoVC ()
void setDoMVC ()
void setDoCVC ()
void setDoUVW ()
void accumulate (VisBuffer &vb)
 Accumulate a VisBuffer.
void finalizeAverage ()
 Finalize averaging, and return the result.
VisBufferaveVisBuff ()
 Return a reference to the result TBD: is it ok to return a CVB as a VB reference? (do I need an explicit cast here?
CalVisBufferaveCalVisBuff ()

Private Member Functions

 PlotMSVBAverager ()
 Prohibit null constructor, copy constructor and assignment for now.
PlotMSVBAverageroperator= (const PlotMSVBAverager &)
 PlotMSVBAverager (const PlotMSVBAverager &)
Intprtlev ()
 Diagnostic printing level.
void initialize (VisBuffer &vb)
 Initialize the next accumulation interval (should this be public?)
void simpAccumulate (VisBuffer &vb)
 Different accumulate versions.
void antAccumulate (VisBuffer &vb)
void verifyCrosshands (VisBuffer &vb)
 Verify zero or two crosshands present (if antAve_p)
Int baseline (const Int &ant1, const Int &ant2)
 Hash function to return the row offset for an interferometer (ant1, ant2)
void convertToAP (Cube< Complex > &d)
 Convert r/i to a/p.

Private Attributes

Int nAnt_p
 Number of antennas, correlations, and channels.
Int nCorr_p
Int nChan_p
Int nBlnMax_p
Bool chanIndepWt_p
 Weights in input VBs are chan-independent.
Vector< BoolblnOK_p
 Validation by baseline (if False, no attempt to accumulate this baseline)
Bool blnAve_p
 Are we averaging baselines together?
Bool antAve_p
 Are we averaging antennas together?
Bool inCoh_p
 Are we incoherently (scalar) averaging?
Double timeRef_p
 Accumulation helpers...
Double minTime_p
Double maxTime_p
Double aveTime_p
Double aveInterval_p
Vector< DoubleblnWtSum_p
Double vbWtSum_p
Int aveScan_p
Bool doVC_p
 Optional averaging triggers.
Bool doMVC_p
Bool doCVC_p
Bool doUVW_p
Bool doWC_p
CalVisBuffer avBuf_p
 Accumulation buffer.
Bool initialized_p
 Keep track of initialization state.
Vector< Intjcor_p
 Correlation list for cross-hand swapping.
Int prtlev_
 Diagnostic print level.

Detailed Description

A class to average VisBuffers for PlotMS.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

This class averages VisBuffers together for PlotMS

Example

Motivation

Thrown Exceptions

To Do

Definition at line 72 of file PlotMSVBAverager.h.


Constructor & Destructor Documentation

Construct from the number of antennas, the averaging interval and the pre-normalization flag.

Null destructor.

Prohibit null constructor, copy constructor and assignment for now.


Member Function Documentation

Accumulate a VisBuffer.

Definition at line 102 of file PlotMSVBAverager.h.

References antAccumulate(), antAve_p, and simpAccumulate().

Referenced by accumulate().

Definition at line 111 of file PlotMSVBAverager.h.

References avBuf_p.

Return a reference to the result TBD: is it ok to return a CVB as a VB reference? (do I need an explicit cast here?

Definition at line 110 of file PlotMSVBAverager.h.

References avBuf_p.

Int casa::PlotMSVBAverager::baseline ( const Int ant1,
const Int ant2 
) [private]

Hash function to return the row offset for an interferometer (ant1, ant2)

void casa::PlotMSVBAverager::convertToAP ( Cube< Complex > &  d) [private]

Convert r/i to a/p.

Finalize averaging, and return the result.

Initialize the next accumulation interval (should this be public?)

PlotMSVBAverager& casa::PlotMSVBAverager::operator= ( const PlotMSVBAverager ) [private]
Int& casa::PlotMSVBAverager::prtlev ( ) [inline, private]

Diagnostic printing level.

Definition at line 120 of file PlotMSVBAverager.h.

References prtlev_.

Set up baseline averaging.

Definition at line 86 of file PlotMSVBAverager.h.

References antAve_p, casa::False, and setBlnAveraging().

Referenced by setBlnAveraging().

Set up baseline averaging.

Definition at line 83 of file PlotMSVBAverager.h.

References blnAve_p, casa::False, and setAntAveraging().

Referenced by setAntAveraging().

Definition at line 98 of file PlotMSVBAverager.h.

References doCVC_p, doWC_p, and casa::True.

Definition at line 97 of file PlotMSVBAverager.h.

References doMVC_p, doWC_p, and casa::True.

Definition at line 99 of file PlotMSVBAverager.h.

References doUVW_p, and casa::True.

Definition at line 96 of file PlotMSVBAverager.h.

References doVC_p, doWC_p, and casa::True.

Control which data column to average.

Definition at line 95 of file PlotMSVBAverager.h.

References doCVC_p, doMVC_p, doUVW_p, doVC_p, doWC_p, and casa::False.

void casa::PlotMSVBAverager::setScalarAve ( Bool  doScalar) [inline]

Set scalar averaging flag.

cout << "Using " << (doScalar ? "SCALAR" : "VECTOR") << " averaging." << endl;

Definition at line 90 of file PlotMSVBAverager.h.

References inCoh_p.

Different accumulate versions.

Referenced by accumulate().

Verify zero or two crosshands present (if antAve_p)


Member Data Documentation

Are we averaging antennas together?

Definition at line 152 of file PlotMSVBAverager.h.

Referenced by accumulate(), and setAntAveraging().

Accumulation buffer.

Definition at line 171 of file PlotMSVBAverager.h.

Referenced by aveCalVisBuff(), and aveVisBuff().

Definition at line 162 of file PlotMSVBAverager.h.

Definition at line 165 of file PlotMSVBAverager.h.

Definition at line 161 of file PlotMSVBAverager.h.

Are we averaging baselines together?

Definition at line 149 of file PlotMSVBAverager.h.

Referenced by setBlnAveraging().

Validation by baseline (if False, no attempt to accumulate this baseline)

Definition at line 146 of file PlotMSVBAverager.h.

Definition at line 163 of file PlotMSVBAverager.h.

Weights in input VBs are chan-independent.

Definition at line 143 of file PlotMSVBAverager.h.

Definition at line 168 of file PlotMSVBAverager.h.

Referenced by setDoCVC(), and setNoData().

Definition at line 168 of file PlotMSVBAverager.h.

Referenced by setDoMVC(), and setNoData().

Definition at line 168 of file PlotMSVBAverager.h.

Referenced by setDoUVW(), and setNoData().

Optional averaging triggers.

Definition at line 168 of file PlotMSVBAverager.h.

Referenced by setDoVC(), and setNoData().

Definition at line 168 of file PlotMSVBAverager.h.

Referenced by setDoCVC(), setDoMVC(), setDoVC(), and setNoData().

Are we incoherently (scalar) averaging?

Definition at line 155 of file PlotMSVBAverager.h.

Referenced by setScalarAve().

Keep track of initialization state.

Definition at line 174 of file PlotMSVBAverager.h.

Correlation list for cross-hand swapping.

Definition at line 177 of file PlotMSVBAverager.h.

Definition at line 160 of file PlotMSVBAverager.h.

Definition at line 159 of file PlotMSVBAverager.h.

Number of antennas, correlations, and channels.

Definition at line 140 of file PlotMSVBAverager.h.

Definition at line 140 of file PlotMSVBAverager.h.

Definition at line 140 of file PlotMSVBAverager.h.

Definition at line 140 of file PlotMSVBAverager.h.

Diagnostic print level.

Definition at line 180 of file PlotMSVBAverager.h.

Referenced by prtlev().

Accumulation helpers...

Definition at line 158 of file PlotMSVBAverager.h.

Definition at line 164 of file PlotMSVBAverager.h.


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