RdChannelBeaconSuppressor.h
Go to the documentation of this file.
1 #ifndef _RdChannelBeaconSuppressor_RdChannelBeaconSuppressor_h_
2 #define _RdChannelBeaconSuppressor_RdChannelBeaconSuppressor_h_
3 
4 #include <vector>
5 
6 #include <fwk/VModule.h>
7 #include <revt/Channel.h>
8 
9 
10 namespace evt {
11  class Event;
12 }
13 
14 namespace revt {
15  class Channel;
16 }
17 
18 namespace RdChannelBeaconSuppressor {
19 
30 
31  public:
32  fwk::VModule::ResultFlag Init() override;
33  fwk::VModule::ResultFlag Run(evt::Event& event) override;
35 
36  private:
38  std::vector<double> fXMLFrequencies;
39 
42 
44  double fSurpressionFactor = 1e-20;
45 
48 
51 
54 
57 
58  REGISTER_MODULE("RdChannelBeaconSuppressor", RdChannelBeaconSuppressor);
59 
60  };
61 
62 }
63 
64 
65 #endif
double fNeighbouringBandwidthToBeSurpressed
Surrounding bandwidth (left + right) to be surpressed in addition to the specified bins...
unsigned int fNeighbouringBinsToBeSurpressed
Surrounding bins (left + right) to be surpressed in addition to the specified bins.
std::vector< double > fXMLFrequencies
Vector of frequencies imported from the XML file.
bool fCompensateTotalSpectrumPower
Compensate total spectrum power.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Supresses the beacon frequencies in the spectrum, and also can surpress other specified frequencies...
REGISTER_MODULE("RdChannelBeaconSuppressor", RdChannelBeaconSuppressor)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
bool fGetBeaconFrequenciesFromDatabase
Flag noting if beacon frequencies should be taken automatically from database.
double fSurpressionFactor
Surpression factor to be multiplied to the spectrum amplitude of the surpressed bins.
void BeaconSuppressor(revt::ChannelFrequencySpectrum &)
Replaces the amplitude of the spectrum by a median amplitude.

, generated on Tue Sep 26 2023.