RdSimulationRadioTrigger.h
Go to the documentation of this file.
1 #ifndef _RdSimulationRadioTrigger_RdSimulationRadioTrigger_h_
2 #define _RdSimulationRadioTrigger_RdSimulationRadioTrigger_h_
3 
4 #include <fwk/VModule.h>
5 #include <revt/Channel.h>
6 
7 
8 namespace RdSimulationRadioTrigger {
9 
21 
22  public:
23  fwk::VModule::ResultFlag Init() override;
24  fwk::VModule::ResultFlag Run(evt::Event& event) override;
26 
27  private:
30 
33 
35 
37 
38  void GetTraceWithoutDCOffset(revt::ChannelTimeSeries& currTrace, const revt::Channel& channel);
39 
40  static bool AbsValue(double a , double b);
41 
42  REGISTER_MODULE("RdSimulationRadioTrigger", RdSimulationRadioTrigger);
43  };
44 
45 }
46 
47 
48 #endif
49 
void GetTraceWithoutDCOffset(revt::ChannelTimeSeries &currTrace, const revt::Channel &channel)
REGISTER_MODULE("RdSimulationRadioTrigger", RdSimulationRadioTrigger)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Class that holds the data associated to an individual radio channel.
Checks for RD trigger and pushes them to the SD.

, generated on Tue Sep 26 2023.