/*! \file \version $Id: TAGmbsEventInfo.icc,v 1.3 2001/12/10 21:29:44 mueller Exp $ \brief Implementation (inline) of TATOFmbsEventInfo */ //------------------------------------------+----------------------------------- //! Default constructor. inline TATOFmbsEventInfo::TATOFmbsEventInfo() : fiTypId(0), fiTime(-1) {} //------------------------------------------+----------------------------------- //! Construct with event id \a i_id, trigger type \a i_typ and time \a i_time . inline TATOFmbsEventInfo::TATOFmbsEventInfo(Int_t i_id, Int_t i_trig, Int_t i_time) : fiTypId((i_trig<<28) | (i_id & 0x0fffffff)), fiTime(i_time) {} //------------------------------------------+----------------------------------- //! Returns event id. inline Int_t TATOFmbsEventInfo::RawId() const { return fiTypId & 0x0ffffff; } //------------------------------------------+----------------------------------- //! Returns trigger type. inline Int_t TATOFmbsEventInfo::Trigger() const { return (fiTypId>>28) & 0xf; } //------------------------------------------+----------------------------------- //! Returns event creation time. inline TATOFtimestamp TATOFmbsEventInfo::Time() const { return TATOFtimestamp(fiTime); } //------------------------------------------+----------------------------------- //! Clear event info. inline void TATOFmbsEventInfo::Clear() { fiTypId = 0; fiTime = -1; return; } //------------------------------------------+----------------------------------- /*! \relates TATOFmbsEventInfo \brief Returns true of event infos \a lhs and \a rhs are equal */ inline bool operator==(const TATOFmbsEventInfo& lhs, const TATOFmbsEventInfo& rhs) { return lhs.fiTypId==rhs.fiTypId && lhs.fiTime==rhs.fiTime; }