RdChannelUpsampler.h
Go to the documentation of this file.
1 #ifndef _RdChannelUpsampler_RdChannelUpsampler_h_
2 #define _RdChannelUpsampler_RdChannelUpsampler_h_
3 
4 #include <fwk/VModule.h>
5 #include <utl/AugerUnits.h>
6 
7 
8 namespace RdChannelUpsampler {
9 
20 
21  public:
22  fwk::VModule::ResultFlag Init() override;
23  fwk::VModule::ResultFlag Run(evt::Event& event) override;
25 
26  private:
28  unsigned int fUpsamplingFactor = 1;
29 
32  double fTargetFrequency = 1800 * utl::MHz;
33 
35  bool fRemoveOffset = false;
36 
38  bool fUseTargetFrequency = false;
39 
40  REGISTER_MODULE("RdChannelUpsampler", RdChannelUpsampler);
41  };
42 
43 }
44 
45 #endif
46 
constexpr double MHz
Definition: AugerUnits.h:159
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
bool fRemoveOffset
A DC offset is removed in the process, but retained afterwards if fRemoveOffset = false...
unsigned int fUpsamplingFactor
The total number of samples after upsampling will be 2^fUpsamplingExponent.
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
Upsamples a radio trace to a total trace length of 2^n (with upsampling exponent n) ...
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
bool fUseTargetFrequency
Indicate using or not of fTargetFrequency.
REGISTER_MODULE("RdChannelUpsampler", RdChannelUpsampler)

, generated on Tue Sep 26 2023.