ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::RODHeader Class Reference

ROD Header data and status words. More...

#include <RODHeader.h>

Collaboration diagram for LVL1::RODHeader:

Public Member Functions

 RODHeader ()
 
 RODHeader (uint32_t version, uint32_t sourceId, uint32_t run, uint32_t lvl1Id, uint32_t bcId, uint32_t trigType, uint32_t detType, const std::vector< uint32_t > &statusWords, uint32_t nData)
 
 ~RODHeader ()
 
int version () const
 
int majorVersion () const
 
int minorVersion () const
 
int sourceID () const
 
int subDetectorID () const
 
int moduleID () const
 
int crate () const
 
int sLink () const
 
int dataType () const
 
int run () const
 
int runType () const
 
int runNumber () const
 
int extendedL1ID () const
 
int ecrID () const
 
int l1ID () const
 
int bunchCrossing () const
 
int l1TriggerType () const
 
int detEventType () const
 
int orbitCount () const
 
int stepNumber () const
 
int stepType () const
 
bool bcnMismatch () const
 
bool gLinkTimeout () const
 
bool dataTransportError () const
 
bool rodFifoOverflow () const
 
bool lvdsLinkError () const
 
bool cmmParityError () const
 
bool gLinkError () const
 
bool limitedRoISet () const
 
bool triggerTypeTimeout () const
 
const std::vector< uint32_t > & statusWords () const
 
int payloadSize () const
 

Private Attributes

uint32_t m_version
 
uint32_t m_sourceId
 
uint32_t m_run
 
uint32_t m_lvl1Id
 
uint32_t m_bcId
 
uint32_t m_trigType
 
uint32_t m_detType
 
std::vector< uint32_t > m_statusWords
 
uint32_t m_payloadSize
 

Detailed Description

ROD Header data and status words.

Author
Peter Faulkner

Definition at line 17 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

Constructor & Destructor Documentation

◆ RODHeader() [1/2]

LVL1::RODHeader::RODHeader ( )

Definition at line 9 of file RODHeader.cxx.

9  : m_version(0), m_sourceId(0), m_run(0), m_lvl1Id(0),
10  m_bcId(0), m_trigType(0), m_detType(0),
12 {
13 }

◆ RODHeader() [2/2]

LVL1::RODHeader::RODHeader ( uint32_t  version,
uint32_t  sourceId,
uint32_t  run,
uint32_t  lvl1Id,
uint32_t  bcId,
uint32_t  trigType,
uint32_t  detType,
const std::vector< uint32_t > &  statusWords,
uint32_t  nData 
)

Definition at line 15 of file RODHeader.cxx.

19  : m_version(version), m_sourceId(sourceId),
20  m_run(run), m_lvl1Id(lvl1Id), m_bcId(bcId),
21  m_trigType(trigType), m_detType(detType),
23 {
24 }

◆ ~RODHeader()

LVL1::RODHeader::~RODHeader ( )

Definition at line 26 of file RODHeader.cxx.

27 {
28 }

Member Function Documentation

◆ bcnMismatch()

bool LVL1::RODHeader::bcnMismatch ( ) const
inline

Definition at line 189 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

190 {
191  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x1;
192 }

◆ bunchCrossing()

int LVL1::RODHeader::bunchCrossing ( ) const
inline

Definition at line 159 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

160 {
161  return m_bcId;
162 }

◆ cmmParityError()

bool LVL1::RODHeader::cmmParityError ( ) const
inline

Definition at line 214 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

215 {
216  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x20000;
217 }

◆ crate()

int LVL1::RODHeader::crate ( ) const
inline

Definition at line 114 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

115 {
116  return m_sourceId & 0xf;
117 }

◆ dataTransportError()

bool LVL1::RODHeader::dataTransportError ( ) const
inline

Definition at line 199 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

200 {
201  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x8;
202 }

◆ dataType()

int LVL1::RODHeader::dataType ( ) const
inline

Definition at line 124 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

125 {
126  return (m_sourceId >> 7) & 0x1;
127 }

◆ detEventType()

int LVL1::RODHeader::detEventType ( ) const
inline

Definition at line 169 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

170 {
171  return m_detType;
172 }

◆ ecrID()

int LVL1::RODHeader::ecrID ( ) const
inline

Definition at line 149 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

150 {
151  return (m_lvl1Id >> 24) & 0xff;
152 }

◆ extendedL1ID()

int LVL1::RODHeader::extendedL1ID ( ) const
inline

Definition at line 144 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

145 {
146  return m_lvl1Id;
147 }

◆ gLinkError()

bool LVL1::RODHeader::gLinkError ( ) const
inline

Definition at line 219 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

220 {
221  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x40000;
222 }

◆ gLinkTimeout()

bool LVL1::RODHeader::gLinkTimeout ( ) const
inline

Definition at line 194 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

195 {
196  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x4;
197 }

◆ l1ID()

int LVL1::RODHeader::l1ID ( ) const
inline

Definition at line 154 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

155 {
156  return m_lvl1Id & 0xffffff;
157 }

◆ l1TriggerType()

int LVL1::RODHeader::l1TriggerType ( ) const
inline

Definition at line 164 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

165 {
166  return m_trigType;
167 }

◆ limitedRoISet()

bool LVL1::RODHeader::limitedRoISet ( ) const
inline

Definition at line 224 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

225 {
226  return (m_statusWords.size() < 2) ? false : m_statusWords[1] & 0x2;
227 }

◆ lvdsLinkError()

bool LVL1::RODHeader::lvdsLinkError ( ) const
inline

Definition at line 209 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

210 {
211  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x10000;
212 }

◆ majorVersion()

int LVL1::RODHeader::majorVersion ( ) const
inline

Definition at line 89 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

90 {
91  return (m_version >> 16) & 0xffff;
92 }

◆ minorVersion()

int LVL1::RODHeader::minorVersion ( ) const
inline

Definition at line 94 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

95 {
96  return m_version & 0xffff;
97 }

◆ moduleID()

int LVL1::RODHeader::moduleID ( ) const
inline

Definition at line 109 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

110 {
111  return m_sourceId & 0xffff;
112 }

◆ orbitCount()

int LVL1::RODHeader::orbitCount ( ) const
inline

Definition at line 174 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

175 {
176  return (m_detType >> 16) & 0xffff;
177 }

◆ payloadSize()

int LVL1::RODHeader::payloadSize ( ) const
inline

Definition at line 239 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

240 {
241  return m_payloadSize;
242 }

◆ rodFifoOverflow()

bool LVL1::RODHeader::rodFifoOverflow ( ) const
inline

Definition at line 204 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

205 {
206  return (m_statusWords.empty()) ? false : m_statusWords[0] & 0x10;
207 }

◆ run()

int LVL1::RODHeader::run ( ) const
inline

Definition at line 129 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

130 {
131  return m_run;
132 }

◆ runNumber()

int LVL1::RODHeader::runNumber ( ) const
inline

Definition at line 139 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

140 {
141  return m_run & 0xffffff;
142 }

◆ runType()

int LVL1::RODHeader::runType ( ) const
inline

Definition at line 134 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

135 {
136  return (m_run >> 24) & 0xff;
137 }

◆ sLink()

int LVL1::RODHeader::sLink ( ) const
inline

Definition at line 119 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

120 {
121  return (m_sourceId >> 4) & 0x3;
122 }

◆ sourceID()

int LVL1::RODHeader::sourceID ( ) const
inline

Definition at line 99 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

100 {
101  return m_sourceId;
102 }

◆ statusWords()

const std::vector< uint32_t > & LVL1::RODHeader::statusWords ( ) const
inline

Definition at line 234 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

235 {
236  return m_statusWords;
237 }

◆ stepNumber()

int LVL1::RODHeader::stepNumber ( ) const
inline

Definition at line 179 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

180 {
181  return (m_detType >> 4) & 0xfff;
182 }

◆ stepType()

int LVL1::RODHeader::stepType ( ) const
inline

Definition at line 184 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

185 {
186  return m_detType & 0xf;
187 }

◆ subDetectorID()

int LVL1::RODHeader::subDetectorID ( ) const
inline

Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

105 {
106  return (m_sourceId >> 16) & 0xff;
107 }

◆ triggerTypeTimeout()

bool LVL1::RODHeader::triggerTypeTimeout ( ) const
inline

Definition at line 229 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

230 {
231  return (m_statusWords.size() < 2) ? false : m_statusWords[1] & 0x10000;
232 }

◆ version()

int LVL1::RODHeader::version ( ) const
inline

Definition at line 84 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h.

85 {
86  return m_version;
87 }

Member Data Documentation

◆ m_bcId

uint32_t LVL1::RODHeader::m_bcId
private

◆ m_detType

uint32_t LVL1::RODHeader::m_detType
private

◆ m_lvl1Id

uint32_t LVL1::RODHeader::m_lvl1Id
private

◆ m_payloadSize

uint32_t LVL1::RODHeader::m_payloadSize
private

◆ m_run

uint32_t LVL1::RODHeader::m_run
private

◆ m_sourceId

uint32_t LVL1::RODHeader::m_sourceId
private

◆ m_statusWords

std::vector<uint32_t> LVL1::RODHeader::m_statusWords
private

◆ m_trigType

uint32_t LVL1::RODHeader::m_trigType
private

◆ m_version

uint32_t LVL1::RODHeader::m_version
private

The documentation for this class was generated from the following files:
LVL1::RODHeader::m_run
uint32_t m_run
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:74
LVL1::RODHeader::m_bcId
uint32_t m_bcId
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:76
LVL1::RODHeader::statusWords
const std::vector< uint32_t > & statusWords() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:234
LVL1::RODHeader::m_payloadSize
uint32_t m_payloadSize
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:80
LVL1::RODHeader::m_trigType
uint32_t m_trigType
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:77
LVL1::RODHeader::m_statusWords
std::vector< uint32_t > m_statusWords
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:79
run
Definition: run.py:1
LVL1::RODHeader::m_detType
uint32_t m_detType
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:78
bcId
uint16_t bcId(uint32_t data)
Definition: TgcByteStreamData.h:329
LVL1::RODHeader::m_lvl1Id
uint32_t m_lvl1Id
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:75
LVL1::RODHeader::m_version
uint32_t m_version
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:72
LVL1::RODHeader::version
int version() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:84
LVL1::RODHeader::m_sourceId
uint32_t m_sourceId
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:73