28 #ifndef MSVIS_VISBUFFACCUMULATOR_H
29 #define MSVIS_VISBUFFACCUMULATOR_H
115 throw_err(
"outToInRow",
"The output to input row map is unreliable");
void initialize(const casacore::Bool ©data)
Initialize the next accumulation interval.
casacore::Bool firstInterval_p
Flag to mark the first accumulation interval.
casacore::Vector< casacore::Int > outToInRow_p
A map from avBuf_p's row numbers to row numbers in the VisBuffer used to fill avBuf_p.
casacore::Bool prenorm_p
Pre-normalization flag.
casacore::Int nAnt_p
Number of antennas.
CalVisBuffer extends VisBuffer to support storage and recall of associated residual and differentiate...
casacore::Bool fillModel_p
VisBuffer & aveVisBuff()
Return a reference to the result TBD: is it ok to return a CVB as a VB reference? (do I need an expli...
A class to average VisBuffers in time.
void throw_err(const casacore::String &origin, const casacore::String &msg)
Shuffle error handling elsewhere in an attempt to let the calling function be efficient and inlinable...
casacore::Int hashFunction(const casacore::Int &ant1, const casacore::Int &ant2)
Hash function to return the row offset for an interferometer (ant1, ant2)
casacore::Double & timeStampWt()
void reset()
Reset the averager.
casacore::Double aveTimeWt_p
VisBuffAccumulator()
Prohibit null constructor, copy constructor and assignment for now.
casacore::Double tStart_p
Start time and row of current accumulation.
void normalize()
Normalize the current accumulation.
CalVisBuffer avBuf_p
Averaging buffer.
void accumulate(const VisBuffer &vb)
Accumulate a VisBuffer.
casacore::Int nCorr_p
Number of correlations and channels.
casacore::Int & prtlev()
Diagnostic printing level.
bool Bool
Define the standard types used by Casacore.
casacore::Int prtlev_
Diagnostic print level.
casacore::uInt nBuf_p
How many VisBuffers have been accumulated.
casacore::Double & timeStamp()
Global timestamp info.
casacore::uInt nBuf()
The number of VisBuffers that have been accumulated.
void finalizeAverage()
Finalize averaging, and return the result.
virtual Origin origin() const =0
ABSTRACT METHODS //.
casacore::Double aveTime_p
End of initialization list.
~VisBuffAccumulator()
Null destructor.
casacore::Double globalTime_p
Global timestamp average.
void setTVIDebug(bool debug)
String: the storage and methods of handling collections of characters.
VisBuffers encapsulate one chunk of visibility data for processing.
const casacore::Vector< casacore::Int > & outToInRow(const casacore::Bool hurl=true)
Return a map from row numbers in the VisBuffer returned by aveVisBuff() or aveCalVisBuff() to row num...
casacore::Double globalTimeWt_p
casacore::Double interval_p
Averaging interval.
VisBuffAccumulator & operator=(const VisBuffAccumulator &)
CalVisBuffer & aveCalVisBuff()