/** \file Interface class to access the Event Trigger (T3) \author \version $Id: EventTrigger.h 14717 2009-09-17 20:24:36Z lukas $ \date */ #ifndef _sevt_EventTrigger_h_ #define _sevt_EventTrigger_h_ #include #include namespace sevt { /** \class EventTrigger EventTrigger.h sevt/EventTrigger.h \brief Interface class to access the Event Trigger (T3) \author \version $Id: EventTrigger.h 14717 2009-09-17 20:24:36Z lukas $ */ class EventTrigger { public: /// Get Id of the trigger unsigned int GetId() const { return fTriggerId; } /// Set Id of the trigger void SetId(const unsigned int id) { fTriggerId = id; } /// Get Id of the FD trigger that contains data for this event unsigned int GetPreviousId() const { return fPreviousId; } /// Set Id of the FD trigger that contains data for this event void SetPreviousId(const unsigned int id) { fPreviousId = id; } /// Get number of stations in the trigger unsigned int GetNumberOfStations() const { return fNumberOfStations; } /// Set number of stations in the trigger void SetNumberOfStations(const unsigned int num) { fNumberOfStations = num; } // Sender and Algorithm should probably be changed to enumerations with a name lookup /// Get sender of the trigger std::string GetSender() const { return fSender; } /// Set sender of the trigger void SetSender(const std::string& sender) { fSender = sender; } /// Get algorithm of the trigger std::string GetAlgorithm() const { return fAlgorithm; } /// Set algorithm of the trigger void SetAlgorithm(const std::string& algo) { fAlgorithm = algo; } /// Get SDPAngle of the trigger double GetSDPAngle() const { return fSDPAngle; } /// Set SDPAngle of the trigger void SetSDPAngle(const double ang) { fSDPAngle = ang; } /// Get time of the trigger utl::TimeStamp GetTime() const { return fTime; } /// Set time of the trigger void SetTime(const utl::TimeStamp& time) { fTime = time; } bool IsFD() const; private: EventTrigger(); ~EventTrigger() { } unsigned int fTriggerId; unsigned int fPreviousId; unsigned int fNumberOfStations; utl::TimeStamp fTime; std::string fSender; std::string fAlgorithm; double fSDPAngle; friend class SEvent; friend class utl::LameShadowPtr; }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: