4 #include <utl/TimeStamp.h>
5 #include <utl/IteratorRange.h>
6 #include <boost/iterator/transform_iterator.hpp>
58 {
return pair.second; }
91 typedef boost::transform_iterator<InternalStationFunctor,
101 explicit operator
bool()
const {
return bool(
fTime); }
StationIterator StationsEnd() const
Iterator over the list of T3Stations in T3.
utl::TimeInterval fWindow
void SetAlgorithm(const std::string &algo)
Set the trigger algorithm.
bool HasStation(const int id) const
This class contains the basic information to build a surface event.
void SetTime(const utl::TimeStamp &stamp)
Set the trigger time stamp.
int GetNumberOfStations() const
Get number of T3 stations.
A TimeStamp holds GPS second and nanosecond for some event.
utl::TimeInterval fOffset
utl::TimeStamp GetTime() const
Get the trigger time stamp.
InternalStationMap fParticipants
#define OFFLINE_MAKE_CONST_ITERATOR_RANGE(_ConstIterator_, _NamePrefix_)
const sevt::T3::T3Station & operator()(const InternalStationMap::value_type &pair) const
StationIterator StationsBegin() const
Iterator over the list of T3Stations in T3.
InternalStationMap::const_iterator ConstInternalStationIterator
Class to hold the trigger information for one station in a T3 (based on the t3stat class)...
std::map< int, sevt::T3::T3Station > InternalStationMap
A TimeInterval is used to represent time elapsed between two events.
utl::TimeInterval GetOffset(const int id) const
Get time offset for a specific station.
boost::transform_iterator< InternalStationFunctor, ConstInternalStationIterator, const sevt::T3::T3Station & > StationIterator
StationIterator returns a pointer to a T3Station.
utl::TimeInterval GetWindow(const int id) const
Get time window for a specific station.
void AddStation(const int id, const utl::TimeInterval &offset, const utl::TimeInterval &window)
Add a station to request data, specifying offset and window size.
std::string GetAlgorithm() const
Get the trigger algorithm.