ATLAS Offline Software
Loading...
Searching...
No Matches
Header.icc
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// inline implementations
7
8inline const std::vector<uint32_t>& ROIB::Header::header() const {
9 return m_header;
10}
11
12inline int ROIB::Header::size() const {
13 return m_header.size();
14}
15
16inline uint32_t ROIB::Header::headerMarker() const {
17 return m_header.empty() ? 0 : m_header[ 0 ];
18}
19
20inline uint32_t ROIB::Header::headerSize() const {
21 return m_header.size() <= 1 ? 0 : m_header[ 1 ];
22}
23
24inline uint32_t ROIB::Header::formatVersion() const {
25 return m_header.size() <= 2 ? 0 : m_header[ 2 ];
26}
27
28inline uint32_t ROIB::Header::sourceID() const {
29 return m_header.size() <= 3 ? 0 : m_header[ 3 ];
30}
31
32inline uint32_t ROIB::Header::runNumber() const {
33 // xxx needs to be completed
34 return 0;
35}
36
37inline uint32_t ROIB::Header::L1ID() const {
38 return m_header.empty() ? 0 : m_header[ 4 ];
39}
40
41inline uint32_t ROIB::Header::BCID() const {
42 return m_header.empty() ? 0 : m_header[ 5 ];
43}
44
45inline uint32_t ROIB::Header::triggerType() const {
46 return m_header.empty() ? 0 : m_header[ 6 ];
47}
48
49inline uint32_t ROIB::Header::eventType() const {
50 return m_header.empty() ? 0 : m_header[ 7 ];
51}
52
53inline void ROIB::Header::setRunNumber( const uint32_t /*i*/ ) {
54 // xxx needs to be added
55}
56
57
58inline void ROIB::Header::setL1ID( const uint32_t i ) {
59 if ( m_header.size() > 4 ) m_header[ 4 ] = i;
60}
61
62inline void ROIB::Header::setBCID( const uint32_t i ) {
63 if ( m_header.size() > 5 ) m_header[ 5 ] = i;
64}
65
66inline void ROIB::Header::setTriggerType( const uint32_t i ) {
67 if ( m_header.size() > 6 ) m_header[ 6 ] = i;
68}
69
70inline void ROIB::Header::setEventType( const uint32_t i ) {
71 if ( m_header.size() > 7 ) m_header[ 7 ] = i;
72}