MSCacheVolMeter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef MSCACHEVOLMETER_H_
00028 #define MSCACHEVOLMETER_H_
00029
00030 #include <plotms/PlotMS/PlotMSConstants.h>
00031 #include <plotms/PlotMS/PlotMSAveraging.h>
00032
00033 #include <casa/aips.h>
00034 #include <casa/Arrays.h>
00035 #include <casa/Containers/Block.h>
00036 #include <msvis/MSVis/VisBuffer2.h>
00037 #include <ms/MeasurementSets/MeasurementSet.h>
00038
00039 namespace casa {
00040
00041 class MSCacheVolMeter {
00042
00043 public:
00044
00045
00046 MSCacheVolMeter();
00047 MSCacheVolMeter(const MeasurementSet& ms, const PlotMSAveraging ave,
00048 const Vector<Vector<Slice> >& chansel,
00049 const Vector<Vector<Slice> >& corrsel);
00050 ~MSCacheVolMeter();
00051
00052
00053 void reset();
00054
00055
00056 void add(const vi::VisBuffer2* vb);
00057
00058
00059 void add(Int DDID,Int nRows);
00060
00061
00062 String evalVolume(std::map<PMS::Axis,Bool> axes,Vector<Bool> axesmask);
00063 String evalVolume(std::vector<IPosition> vbShapes, std::map<PMS::Axis,Bool> axes);
00064
00065 private:
00066
00067
00068 Int nDDID_;
00069
00070
00071 Vector<uInt64> nPerDDID_,nRowsPerDDID_,nChanPerDDID_,nCorrPerDDID_;
00072
00073
00074 Int nAnt_;
00075
00076 };
00077
00078 }
00079
00080 #endif