RdChannelBandstopFilter.h
Go to the documentation of this file.
1 #ifndef _RdChannelBandstopFilter_RdChannelBandstopFilter_h_
2 #define _RdChannelBandstopFilter_RdChannelBandstopFilter_h_
3 
4 #include <fwk/VModule.h>
5 
6 #include <revt/Channel.h>
7 #include <rdet/Channel.h>
8 
9 #include <utl/AugerUnits.h>
10 
11 
12 namespace RdChannelBandstopFilter {
13 
24 
25  public:
26  fwk::VModule::ResultFlag Init() override;
27  fwk::VModule::ResultFlag Run(evt::Event& event) override;
29 
30  private:
31  //xml settings
32  std::vector<double> fLowerBoundsNS;
33  std::vector<double> fUpperBoundsNS;
34  std::vector<double> fLowerBoundsEW;
35  std::vector<double> fUpperBoundsEW;
36 
40 
41  // needed to assign channels with vectors of frequencies to cut
42  const double fTolerance = 2 * utl::deg;
43  const double fNorthSouth = 1.51006;
44  const double fEastWest = -0.0607375;
45 
46  bool CloseTo(const double a, const double b, const double tolerance);
47  void CutNoiseFrequencies(revt::Channel& channel, const rdet::Channel& detChannel);
48 
49  REGISTER_MODULE("RdChannelBandstopFilter", RdChannelBandstopFilter);
50  };
51 }
52 
53 #endif
void CutNoiseFrequencies(revt::Channel &channel, const rdet::Channel &detChannel)
Detector description interface for Channel-related data.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Applies a notch filter to the channel time series to cut out narrowband noise transmitters.
constexpr double deg
Definition: AugerUnits.h:140
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
bool CloseTo(const double a, const double b, const double tolerance)
Module interface.
Definition: VModule.h:53
REGISTER_MODULE("RdChannelBandstopFilter", RdChannelBandstopFilter)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Class that holds the data associated to an individual radio channel.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)

, generated on Tue Sep 26 2023.