CARMA C++
BlankFlagStage.h
1 
2 #ifndef CARMA_PIPELINE_BLANKFLAGSTAGE_H
3 #define CARMA_PIPELINE_BLANKFLAGSTAGE_H
4 
5 #include "carma/monitor/PipelineCommon.h"
6 #include "carma/pipeline/pipelineUtils.h"
7 #include "carma/pipeline/Stage.h"
9 
10 namespace carma {
11 
12 namespace correlator {
13 namespace lib {
14  class CorrelatorData;
15 } } // namespace correlator::lib
16 
17 namespace monitor {
18  class PipelineSubsystem;
19  class PipelineMonitorInput;
20 } // namespace monitor
21 
22 namespace pipeline {
23 
24  class BlankFlag : public Stage {
25  public:
26 
30  explicit BlankFlag( carma::monitor::PipelineSubsystem & monitor,
31  carma::monitor::AstroSubsystem & astroMonitor,
32  const carma::monitor::PipelineMonitorInput & plmi,
33  carma::pipeline::PipelineType plType );
34 
38  virtual ~BlankFlag( );
39 
40  private:
41 
42  void preprocess( const carma::correlator::lib::CorrelatorDataPtr cd );
43 
44  void processBand( carma::correlator::lib::CorrelatorBand * cb );
45 
46  carma::correlator::lib::CorrelatorDataPtr
47  postprocess( carma::correlator::lib::CorrelatorDataPtr cd );
48 
49  void fillMonitorData();
50 
51  int blankCount_;
52  int flagCount_;
53  int totalDataCount_;
54 
55  int pctBlanked_;
56  int pctFlagged_;
57 
58  // Swept volume and baseline shadowed ants - both are
59  // Carma ant idx based per ShadowingCalculator interface.
60  std::vector<bool> svShadowedAnts_;
61  std::vector<bool> blShadowedAnts_;
62 
63  const carma::monitor::PipelineMonitorInput & plmi_;
64  carma::monitor::PipelineSubsystem & monitorData_;
65  carma::monitor::AstroSubsystem & astroMonitor_;
66  ShadowingCalculator shadowing_;
67  const carma::pipeline::PipelineType plType_;
68 
69  }; // class BlankFlag
70 
71 } } // namespace carma::pipeline
72 #endif // #ifndef CARMA_PIPELINE_BLANKFLAGSTAGE_H
Tagged: Fri Oct 7 13:14:58 PDT 2011.
Class to hold a Band of Correlator Data.
Tagged: Wed Jun 29 11:00:27 PDT 2005.
Abstract base class for retrieving pipeline monitor system components common between the spectral lin...