casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSCacheVolMeter.h
Go to the documentation of this file.
1 //# MSCacheVolMeter.h: Definition of MSCache Volume meter
2 //# Copyright (C) 2009
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $
27 #ifndef MSCACHEVOLMETER_H_
28 #define MSCACHEVOLMETER_H_
29 
32 
33 #include <casa/aips.h>
34 #include <casa/Arrays.h>
35 #include <casa/Containers/Block.h>
36 #include <msvis/MSVis/VisBuffer2.h>
38 
39 namespace casa {
40 
42 
43 public:
44 
45  // Constructor/Destructor
51 
52  // reset (as if default ctor was run)
53  void reset();
54 
55  // add in via a VisBuffer
56  void add(const vi::VisBuffer2* vb);
57 
58  // add in via counts
59  void add(casacore::Int DDID,casacore::Int nRows);
60 
61  // evaluate the volume for specified axes, and complain if
62  casacore::String evalVolume(std::map<PMS::Axis,casacore::Bool> axes,casacore::Vector<casacore::Bool> axesmask);
63  casacore::String evalVolume(std::vector<casacore::IPosition> vbShapes, std::map<PMS::Axis,casacore::Bool> axes);
64 
65 private:
66 
67  // The number of DATA_DESCRIPTIONs
69 
70  // Counters
72 
73  // The number of antennas (max)
75 
76 };
77 
78 }
79 
80 #endif /* MSCACHEVOLMETER_H_ */
A 1-D Specialization of the Array class.
Specifies averaging parameters for an MS.
int Int
Definition: aipstype.h:50
casacore::Vector< casacore::uInt64 > nChanPerDDID_
casacore::Vector< casacore::uInt64 > nPerDDID_
Counters.
casacore::Int nDDID_
The number of DATA_DESCRIPTIONs.
casacore::Vector< casacore::uInt64 > nCorrPerDDID_
MSCacheVolMeter()
Constructor/Destructor.
void add(const vi::VisBuffer2 *vb)
add in via a VisBuffer
A Table intended to hold astronomical data (a set of Measurements).
void reset()
reset (as if default ctor was run)
VisBuffer2s encapsulate one chunk of visibility data for processing.
Definition: VisBuffer2.h:141
casacore::Vector< casacore::uInt64 > nRowsPerDDID_
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Int nAnt_
The number of antennas (max)
casacore::String evalVolume(std::map< PMS::Axis, casacore::Bool > axes, casacore::Vector< casacore::Bool > axesmask)
evaluate the volume for specified axes, and complain if