26 #ifndef MSVIS_VISCHUNKAVERAGER_H
27 #define MSVIS_VISCHUNKAVERAGER_H
87 typedef std::map<casacore::uInt, std::vector<casacore::Int> >
mapuIvIType;
189 const std::vector<casacore::Int>& inrows_for_slot)
const;
~VisChunkAverager()
Null destructor.
A 1-D Specialization of the Array class.
VisChunkAverager & operator=(const VisChunkAverager &)
casacore::Bool findCollision(ROVisibilityIterator &vi, casacore::Double &time_to_break, const casacore::Bool watchObs, const casacore::Bool watchScan, const casacore::Bool watchState)
Check whether any of the unflagged rows in vi's current chunk have the same casacore::MS key (not cou...
casacore::Bool makeHashMap(ROVisibilityIterator &vi)
std::map< casacore::uInt, std::vector< casacore::Int > > mapuIvIType
A class to time average all columns of a VisBuffer.
casacore::uInt maxfeed2p1_p
void initialize(VisBuffer &vb)
Initialize the next accumulation interval.
casacore::uInt maxant2p1_p
casacore::Int nCat_p
The number of flag categories.
CalVisBuffer extends VisBuffer to support storage and recall of associated residual and differentiate...
casacore::Bool doSpWeight_p
Use WEIGHT_SPECTRUM?
casacore::Bool checkForBreak(casacore::Vector< casacore::Int > &firstVals, const casacore::Int i, const casacore::uInt slotnum, const casacore::uInt chunkletNum, const std::vector< casacore::Int > &inrows_for_slot) const
Helper function for findCollision().
void fill_vb(VisBuffer &vb)
Force vb to read all the columns (modified by colEnums_p and doSpWeight_p).
VisBuffer & average(ROVisibilityIterator &vi)
casacore::Time average vi's current chunk, AND advance vi to the end of that chunk.
VisChunkAverager()
Prohibit null constructor, copy constructor and assignment for now.
casacore::Int nCorr_p
Number of correlations and channels.
casacore::Vector< casacore::Matrix< casacore::Int > > chanAveBounds_p
Used for both selecting and averaging channels.
casacore::uInt uIntMax(const casacore::uInt a, const casacore::uInt b) const
max(a, b) in Math.h is so overloaded, and (u)casacore::Int is so promotable, that they're unusable to...
mapuIvIType sphash_to_inprows_p
casacore::uInt maxprocp1_p; Not needed
bool Bool
Define the standard types used by Casacore.
void normalize(const casacore::Double minTime, const casacore::Double maxTime, const casacore::Double firstinterval, const casacore::Double lastinterval)
Normalize the accumulation (finish the average).
casacore::Bool setupHashFunction(ROVisibilityIterator &vi)
These return their success values.
void reset()
Reset the averager.
casacore::uInt hashFunction(const casacore::Int ant1, const casacore::Int ant2, const casacore::Int feed1, const casacore::Int feed2, const casacore::Int procid) const
Hash function to return a unique (within the VisBuffer) key (as defined by the casacore::MS def'n) fo...
static casacore::Bool check_chunk(ROVisibilityIterator &vi, casacore::Double &time_to_break, const casacore::Bool watch_obs, const casacore::Bool watch_scan, const casacore::Bool watch_state)
Checks whether the interval of vi needs to be truncated in order to prevent collisions where two rows...
casacore::uInt maxfeed1p1_p
VisBuffers encapsulate one chunk of visibility data for processing.
casacore::uInt maxant1p1_p
Maxima for hashFunction().
casacore::Bool readyToHash_p
End of initialization list.
ROVisibilityIterator iterates through one or more readonly MeasurementSets.
casacore::Bool haveHashMap_p
Is sphash_to_inprows_p OK?
CalVisBuffer avBuf_p
Averaging buffer.
casacore::Vector< casacore::MS::PredefinedColumns > colEnums_p
Start of initialization list.