1 #ifndef _RdChannelBeaconSuppressor_RdChannelBeaconSuppressor_h_
2 #define _RdChannelBeaconSuppressor_RdChannelBeaconSuppressor_h_
6 #include <fwk/VModule.h>
7 #include <revt/Channel.h>
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)
ResultFlag
Flag returned by module methods to the RunController.
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.