1 #ifndef _RdStationRejector_RdStationRejector_h_
2 #define _RdStationRejector_RdStationRejector_h_
4 #include <fwk/VModule.h>
6 #include <utl/TimeStamp.h>
7 #include <revt/Station.h>
40 typedef std::multimap<utl::TimeStamp, std::pair<utl::TimeStamp, size_t>>
ParentMap;
50 ParentMap::const_iterator it = upper_bound(time);
57 if (it->first <= time && time <= it->
second.first)
58 ids.push_back(it->second.second);
59 }
while (it != begin());
REGISTER_MODULE("RdStationRejector", RdStationRejector)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
std::multimap< utl::TimeStamp, std::pair< utl::TimeStamp, size_t > > ParentMap
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
std::vector< size_t > IdCollection
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
A TimeStamp holds GPS second and nanosecond for some event.
class to hold data at the radio Station level.
IdCollection GetBadStations(const utl::TimeStamp &time) const
bool fUseStationsInStationList
void ExcludeOrRejectStation(revt::Station &station, unsigned long long int reason)
std::vector< int > fStationList
ResultFlag
Flag returned by module methods to the RunController.
unsigned long long int fBadPeriodReasons