9 #ifndef _SdBadStationRejectorKG_SdBadStationRejector_h_
10 #define _SdBadStationRejectorKG_SdBadStationRejector_h_
12 #include <fwk/VModule.h>
13 #include <utl/TimeStamp.h>
25 namespace SdBadStationRejectorKG {
45 typedef std::multimap< utl::TimeStamp, std::pair< utl::TimeStamp, size_t > >
ParentMap;
56 ParentMap::const_iterator it = upper_bound(time);
64 if (it->first <= time && time <= it->
second.first)
65 ids.push_back(it->second.second);
66 }
while (it!=begin());
A TimeStamp holds GPS second and nanosecond for some event.
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
std::vector< size_t > IdCollection
std::multimap< utl::TimeStamp, std::pair< utl::TimeStamp, size_t > > ParentMap
REGISTER_MODULE("SdBadStationRejectorKG", SdBadStationRejector)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)