RdChannelNoisePulseCounter.h
Go to the documentation of this file.
1 #ifndef _RdChannelNoisePulseCounter_RdChannelNoisePulseCounter_h_
2 #define _RdChannelNoisePulseCounter_RdChannelNoisePulseCounter_h_
3 
4 #include <string>
5 #include <revt/Station.h>
6 
7 #include <fwk/VModule.h>
8 
9 
10 // you should assign your module to a namespace
11 
13 
24  std::vector<double> SNRs;
25  std::vector<int> GPSsecods;
26  long unsigned int numberOfPulses; // the number of traces that had a pulse above noise threshold
27  long unsigned int numberOfTraces; // the number of traces that has been read in
28  double totalSignalSerachWindow; // the sum of the signal search window of all condidered traces
29 
31 };
32 
33 
34 enum InfoLevel {
35  eNone = 0, eFinal = 1, eIntermediate = 2, eObscure = 3, eDebug = 4
36 };
37 
38 
40 
41 public:
42  // If you define a constructor, you MUST provide an implementation
43  // for it, otherwise the REGISTER_MODULE macro will not register
44  // your module. (Here, implementation is in RdChannelNoisePulseCounter.cc)
46  //virtual ~RdChannelNoisePulseCounter();
47 
51 
52 private:
53  double FindPulse(revt::Station& station);
54 
56  double fSNRThreshold;
58  int fNumberOfEvents; // counts number of events
59  std::string fOutputPath;
60  std::string fOutputFilename;
65  std::map<int, NoisePulseData> fStationNoisePulseData;
66  std::map<int, int> fCoincidentPulses; // number of time coincident pulses in spatially connected stations
67 
68  // The REGISTER_MODULE macro makes the framework aware of your module.
69  // You need to put this macro at the very end of your module class definition.
70  // Give your module a name (first argument) and specify its
71  // class name (second argument). In the ModuleSequenceExample.xml file,
72  // you can see this module being refered to by the name we give it here.
73 
74  REGISTER_MODULE("RdChannelNoisePulseCounter", RdChannelNoisePulseCounter);
75 
76 };
77 
78 }
79 
80 
81 #endif
82 
83 // Configure (x)emacs for this file ...
84 // Local Variables:
85 // mode: c++
86 // compile-command: "make -k"
87 // End:
class to hold data at the radio Station level.
Module interface.
Definition: VModule.h:53
Module which determines the frequency and amplitude of noise pulses on channel level.
REGISTER_MODULE("RdChannelNoisePulseCounter", RdChannelNoisePulseCounter)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)

, generated on Tue Sep 26 2023.