List of all members | Classes | Public Types | Public Member Functions | Private Types | Private Attributes
sevt::T3 Class Reference

This class contains the basic information to build a surface event. More...

#include "sevt/T3.h"

Classes

struct  InternalStationFunctor
 
class  T3Station
 Class to hold the trigger information for one station in a T3 (based on the t3stat class). This is the information necessary to request data from a station. This includes the station ID, the offset (offset from the T3s time stamp) and window size. More...
 

Public Types

typedef
boost::transform_iterator
< InternalStationFunctor,
ConstInternalStationIterator,
const sevt::T3::T3Station & > 
StationIterator
 StationIterator returns a pointer to a T3Station. More...
 

Public Member Functions

void AddStation (const int id, const utl::TimeInterval &offset, const utl::TimeInterval &window)
 Add a station to request data, specifying offset and window size. More...
 
std::string GetAlgorithm () const
 Get the trigger algorithm. More...
 
int GetNumberOfStations () const
 Get number of T3 stations. More...
 
utl::TimeInterval GetOffset (const int id) const
 Get time offset for a specific station. More...
 
utl::TimeStamp GetTime () const
 Get the trigger time stamp. More...
 
utl::TimeInterval GetWindow (const int id) const
 Get time window for a specific station. More...
 
bool HasStation (const int id) const
 
 operator bool () const
 
void SetAlgorithm (const std::string &algo)
 Set the trigger algorithm. More...
 
void SetTime (const utl::TimeStamp &stamp)
 Set the trigger time stamp. More...
 
StationIterator StationsBegin () const
 Iterator over the list of T3Stations in T3. More...
 
StationIterator StationsEnd () const
 Iterator over the list of T3Stations in T3. More...
 

Private Types

typedef
InternalStationMap::const_iterator 
ConstInternalStationIterator
 
typedef std::map< int,
sevt::T3::T3Station
InternalStationMap
 

Private Attributes

std::string fAlgorithm
 
InternalStationMap fParticipants
 
utl::TimeStamp fTime
 

Detailed Description

This class contains the basic information to build a surface event.

A T3 contains a list of T3Stations. The list of T3Stations include the stations that had a T2 in the cluster found by the central trigger. It also contains a list of stations to which data requests are to be sent. Each of these stations has an ID, an offset that should determine the time around which the time window is set and the window size. The usual case is that stations in the cluster have a zero-width window centered around the time of the T2 and the others have a window of plus/minus 30 microsecond around the T3 time stamp.

This class is essentially the same as the t3 class, but with names that make sense. It uses the T3Station structure which is based on t3stat, but using the offline classes and unit conventions.

Author
Javier Gonzalez
Date
17 May 2007

Definition at line 36 of file T3.h.

Member Typedef Documentation

typedef InternalStationMap::const_iterator sevt::T3::ConstInternalStationIterator
private

Definition at line 54 of file T3.h.

typedef std::map<int, sevt::T3::T3Station> sevt::T3::InternalStationMap
private

Definition at line 53 of file T3.h.

StationIterator returns a pointer to a T3Station.

Definition at line 93 of file T3.h.

Member Function Documentation

void sevt::T3::AddStation ( const int  id,
const utl::TimeInterval offset,
const utl::TimeInterval window 
)
std::string sevt::T3::GetAlgorithm ( ) const
inline

Get the trigger algorithm.

Definition at line 72 of file T3.h.

References fAlgorithm.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().

int sevt::T3::GetNumberOfStations ( ) const
inline

Get number of T3 stations.

Definition at line 75 of file T3.h.

References fParticipants.

utl::TimeInterval sevt::T3::GetOffset ( const int  id) const
inline

Get time offset for a specific station.

Definition at line 83 of file T3.h.

References fParticipants.

utl::TimeStamp sevt::T3::GetTime ( ) const
inline

Get the trigger time stamp.

Definition at line 66 of file T3.h.

References fTime.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().

utl::TimeInterval sevt::T3::GetWindow ( const int  id) const
inline

Get time window for a specific station.

Definition at line 87 of file T3.h.

References fParticipants.

bool sevt::T3::HasStation ( const int  id) const
inline

Definition at line 80 of file T3.h.

References fParticipants.

Referenced by CentralTriggerSimulatorXb::CentralTriggerSimulator::Run().

sevt::T3::operator bool ( ) const
inlineexplicit

Definition at line 101 of file T3.h.

References fTime.

void sevt::T3::SetAlgorithm ( const std::string &  algo)
inline
void sevt::T3::SetTime ( const utl::TimeStamp stamp)
inline
StationIterator sevt::T3::StationsBegin ( ) const
inline

Iterator over the list of T3Stations in T3.

Definition at line 96 of file T3.h.

References fParticipants.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().

StationIterator sevt::T3::StationsEnd ( ) const
inline

Iterator over the list of T3Stations in T3.

Definition at line 98 of file T3.h.

References fParticipants.

Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().

Member Data Documentation

std::string sevt::T3::fAlgorithm
private

Definition at line 106 of file T3.h.

Referenced by GetAlgorithm(), and SetAlgorithm().

InternalStationMap sevt::T3::fParticipants
private

Definition at line 104 of file T3.h.

Referenced by GetNumberOfStations(), GetOffset(), GetWindow(), HasStation(), StationsBegin(), and StationsEnd().

utl::TimeStamp sevt::T3::fTime
private

Definition at line 105 of file T3.h.

Referenced by GetTime(), operator bool(), and SetTime().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.