RFAFlagExaminer.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 FLAGGING_RFAFLAGEXAMINER_H
00028 #define FLAGGING_RFAFLAGEXAMINER_H
00029
00030 #include <flagging/Flagging/RFAFlagCubeBase.h>
00031 #include <flagging/Flagging/RFASelector.h>
00032 #include <flagging/Flagging/RFDataMapper.h>
00033 #include <casa/Arrays/LogiVector.h>
00034
00035 namespace casa {
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 class RFAFlagExaminer : public RFASelector
00068 {
00069 public:
00070
00071 RFAFlagExaminer ( RFChunkStats &ch,const RecordInterface &parm );
00072 virtual ~RFAFlagExaminer ();
00073
00074 virtual void iterFlag( uInt it );
00075 virtual IterMode iterRow( uInt irow );
00076 virtual Bool newChunk(Int &maxmem);
00077 virtual void endChunk();
00078
00079
00080 virtual void startData(bool verbose){RFAFlagCubeBase::startData(verbose);return;};
00081 virtual void startFlag(bool verbose);
00082 virtual void endFlag();
00083 virtual void finalize();
00084 virtual void initialize();
00085 virtual void initializeIter(uInt it);
00086 virtual void finalizeIter(uInt it);
00087 virtual String getID() {return String("FlagExaminer");};
00088
00089 virtual Record getResult();
00090
00091
00092
00093
00094 private:
00095 void processRow ( uInt ifr,uInt it ) ;
00096 uInt64 totalflags,totalcount;
00097 uInt64 totalrowflags,totalrowcount;
00098
00099
00100 uInt64
00101 accumTotalFlags, accumTotalCount, accumRowFlags,
00102 accumTotalRowCount, accumTotalRowFlags;
00103
00104
00105 uInt64 inTotalFlags, inTotalCount, inTotalRowFlags, inTotalRowCount;
00106 uInt64 outTotalFlags, outTotalCount, outTotalRowFlags, outTotalRowCount;
00107
00108
00109
00110
00111
00112
00113
00114
00115 std::map<std::string, std::map<std::string, uInt64> > accumflags;
00116 std::map<std::string, std::map<std::string, uInt64> > accumtotal;
00117
00118 std::vector<uInt64> accumflags_channel;
00119 std::vector<uInt64> accumtotal_channel;
00120 std::vector<uInt64> accumflags_correlation;
00121 std::vector<uInt64> accumtotal_correlation;
00122
00123 };
00124
00125 }
00126
00127 #ifndef AIPS_NO_TEMPLATE_SRC
00128 #include <flagging/Flagging/RFAFlagExaminer.tcc>
00129 #endif //# AIPS_NO_TEMPLATE_SRC
00130 #endif