2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
6 // inline implementations
8 inline const std::vector<uint32_t>& ROIB::Header::header() const {
12 inline int ROIB::Header::size() const {
13 return m_header.size();
16 inline uint32_t ROIB::Header::headerMarker() const {
17 return m_header.empty() ? 0 : m_header[ 0 ];
20 inline uint32_t ROIB::Header::headerSize() const {
21 return m_header.size() <= 1 ? 0 : m_header[ 1 ];
24 inline uint32_t ROIB::Header::formatVersion() const {
25 return m_header.size() <= 2 ? 0 : m_header[ 2 ];
28 inline uint32_t ROIB::Header::sourceID() const {
29 return m_header.size() <= 3 ? 0 : m_header[ 3 ];
32 inline uint32_t ROIB::Header::runNumber() const {
33 // xxx needs to be completed
37 inline uint32_t ROIB::Header::L1ID() const {
38 return m_header.empty() ? 0 : m_header[ 4 ];
41 inline uint32_t ROIB::Header::BCID() const {
42 return m_header.empty() ? 0 : m_header[ 5 ];
45 inline uint32_t ROIB::Header::triggerType() const {
46 return m_header.empty() ? 0 : m_header[ 6 ];
49 inline uint32_t ROIB::Header::eventType() const {
50 return m_header.empty() ? 0 : m_header[ 7 ];
53 inline void ROIB::Header::setRunNumber( const uint32_t /*i*/ ) {
54 // xxx needs to be added
58 inline void ROIB::Header::setL1ID( const uint32_t i ) {
59 if ( m_header.size() > 4 ) m_header[ 4 ] = i;
62 inline void ROIB::Header::setBCID( const uint32_t i ) {
63 if ( m_header.size() > 5 ) m_header[ 5 ] = i;
66 inline void ROIB::Header::setTriggerType( const uint32_t i ) {
67 if ( m_header.size() > 6 ) m_header[ 6 ] = i;
70 inline void ROIB::Header::setEventType( const uint32_t i ) {
71 if ( m_header.size() > 7 ) m_header[ 7 ] = i;