1 #ifndef _RdChannelSelector_RdChannelSelector_h_
2 #define _RdChannelSelector_RdChannelSelector_h_
4 #include <fwk/VModule.h>
6 #include <revt/Station.h>
7 #include <revt/Channel.h>
9 #include <rdet/RDetector.h>
10 #include <rdet/Channel.h>
13 #include <boost/optional.hpp>
41 bool IsClose(
const double a,
const double b,
const double tolerance);
set saturated channels as inactive if another channel with same orientation is present. saturation status on the station level is not touched in this module but set by RdAntennaChannelToStationConverter depending on the saturation status of the finally used channels
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
boost::optional< revt::Channel & > GetLowGainChannel(revt::Station &station, const rdet::RDetector &rDetector, const rdet::Channel &detChannel, const double tolerance)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Detector description interface for Channel-related data.
Detector description interface for RDetector-related data.
class to hold data at the radio Station level.
bool fUseLowGainIfHighGainIsSaturated
ResultFlag
Flag returned by module methods to the RunController.
REGISTER_MODULE("RdChannelSelector", RdChannelSelector)
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
bool IsClose(const double a, const double b, const double tolerance)