2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
6 // inline implementations
8 inline const std::vector<uint32_t>& ROIB::Trailer::trailer() const {
12 inline int ROIB::Trailer::size() const {
13 return m_trailer.size();
16 inline uint32_t ROIB::Trailer::errorStatus() const {
17 return m_trailer.empty() ? 0 : m_trailer[ 0 ];
20 inline uint32_t ROIB::Trailer::statusInfo() const {
21 return m_trailer.empty() ? 0 : m_trailer[ 1 ];
24 inline uint32_t ROIB::Trailer::numStatusWords() const {
25 return m_trailer.empty() ? 0 : m_trailer[ 2 ];
28 inline uint32_t ROIB::Trailer::numDataWords() const {
29 return m_trailer.empty() ? 0 : m_trailer[ 3 ];
32 inline uint32_t ROIB::Trailer::statusPosition() const {
33 return m_trailer.empty() ? 0 : m_trailer[ 4 ];
36 inline void ROIB::Trailer::setSimulationError() {
37 if ( ! m_trailer.empty() ) m_trailer[ 0 ] = 0xFFFF0000;
40 inline void ROIB::Trailer::setNumDataWords( const unsigned int i ) {
41 if ( ! m_trailer.empty() ) m_trailer[ 3 ] = i;