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 |
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.
|
private |
|
private |
typedef boost::transform_iterator<InternalStationFunctor, ConstInternalStationIterator, const sevt::T3::T3Station&> sevt::T3::StationIterator |
void sevt::T3::AddStation | ( | const int | id, |
const utl::TimeInterval & | offset, | ||
const utl::TimeInterval & | window | ||
) |
Add a station to request data, specifying offset and window size.
Definition at line 13 of file T3.cc.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), io::T3_ROOT::operator>>(), DummyCentralTriggerNS::DummyCentralTrigger::Run(), CentralTriggerSimulatorXb::CentralTriggerSimulator::Run(), and testSEventImpl::testSEventSimData().
|
inline |
Get the trigger algorithm.
Definition at line 72 of file T3.h.
References fAlgorithm.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().
|
inline |
|
inline |
Get time offset for a specific station.
Definition at line 83 of file T3.h.
References fParticipants.
|
inline |
Get the trigger time stamp.
Definition at line 66 of file T3.h.
References fTime.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().
|
inline |
Get time window for a specific station.
Definition at line 87 of file T3.h.
References fParticipants.
|
inline |
Definition at line 80 of file T3.h.
References fParticipants.
Referenced by CentralTriggerSimulatorXb::CentralTriggerSimulator::Run().
|
inlineexplicit |
|
inline |
Set the trigger algorithm.
Definition at line 69 of file T3.h.
References fAlgorithm.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), DummyCentralTriggerNS::DummyCentralTrigger::Run(), CentralTriggerSimulatorXb::CentralTriggerSimulator::Run(), and testSEventImpl::testSEventSimData().
|
inline |
Set the trigger time stamp.
Definition at line 63 of file T3.h.
References fTime.
Referenced by DummyCentralTriggerNS::DummyCentralTrigger::Run(), CentralTriggerSimulatorXb::CentralTriggerSimulator::Run(), and testSEventImpl::testSEventSimData().
|
inline |
Iterator over the list of T3Stations in T3.
Definition at line 96 of file T3.h.
References fParticipants.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().
|
inline |
Iterator over the list of T3Stations in T3.
Definition at line 98 of file T3.h.
References fParticipants.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent().
|
private |
Definition at line 106 of file T3.h.
Referenced by GetAlgorithm(), and SetAlgorithm().
|
private |
Definition at line 104 of file T3.h.
Referenced by GetNumberOfStations(), GetOffset(), GetWindow(), HasStation(), StationsBegin(), and StationsEnd().
|
private |
Definition at line 105 of file T3.h.
Referenced by GetTime(), operator bool(), and SetTime().