Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 ()=default
 
 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)
 
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 {0}
 
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 ( )
default

◆ 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 9 of file RODHeader.cxx.

13  : m_version(version), m_sourceId(sourceId),
14  m_run(run), m_lvl1Id(lvl1Id), m_bcId(bcId),
15  m_trigType(trigType), m_detType(detType),
17 {
18 }

Member Function Documentation

◆ bcnMismatch()

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

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

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

◆ bunchCrossing()

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

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

159 {
160  return m_bcId;
161 }

◆ cmmParityError()

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

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

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

◆ crate()

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

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

114 {
115  return m_sourceId & 0xf;
116 }

◆ dataTransportError()

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

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

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

◆ dataType()

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

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

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

◆ detEventType()

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

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

169 {
170  return m_detType;
171 }

◆ ecrID()

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

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

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

◆ extendedL1ID()

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

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

144 {
145  return m_lvl1Id;
146 }

◆ gLinkError()

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

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

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

◆ gLinkTimeout()

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

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

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

◆ l1ID()

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

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

154 {
155  return m_lvl1Id & 0xffffff;
156 }

◆ l1TriggerType()

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

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

164 {
165  return m_trigType;
166 }

◆ limitedRoISet()

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

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

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

◆ lvdsLinkError()

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

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

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

◆ majorVersion()

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

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

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

◆ minorVersion()

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

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

94 {
95  return m_version & 0xffff;
96 }

◆ moduleID()

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

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

109 {
110  return m_sourceId & 0xffff;
111 }

◆ orbitCount()

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

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

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

◆ payloadSize()

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

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

239 {
240  return m_payloadSize;
241 }

◆ rodFifoOverflow()

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

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

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

◆ run()

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

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

129 {
130  return m_run;
131 }

◆ runNumber()

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

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

139 {
140  return m_run & 0xffffff;
141 }

◆ runType()

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

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

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

◆ sLink()

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

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

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

◆ sourceID()

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

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

99 {
100  return m_sourceId;
101 }

◆ statusWords()

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

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

234 {
235  return m_statusWords;
236 }

◆ stepNumber()

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

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

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

◆ stepType()

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

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

184 {
185  return m_detType & 0xf;
186 }

◆ subDetectorID()

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

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

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

◆ triggerTypeTimeout()

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

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

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

◆ version()

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

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

84 {
85  return m_version;
86 }

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 {0}
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:73
LVL1::RODHeader::m_bcId
uint32_t m_bcId
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:75
LVL1::RODHeader::statusWords
const std::vector< uint32_t > & statusWords() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:233
LVL1::RODHeader::m_payloadSize
uint32_t m_payloadSize
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:79
LVL1::RODHeader::m_trigType
uint32_t m_trigType
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:76
LVL1::RODHeader::m_statusWords
std::vector< uint32_t > m_statusWords
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:78
run
Definition: run.py:1
LVL1::RODHeader::m_detType
uint32_t m_detType
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:77
bcId
uint16_t bcId(uint32_t data)
Definition: TgcByteStreamData.h:326
LVL1::RODHeader::m_lvl1Id
uint32_t m_lvl1Id
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:74
LVL1::RODHeader::m_version
uint32_t m_version
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:71
LVL1::RODHeader::version
int version() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:83
LVL1::RODHeader::m_sourceId
uint32_t m_sourceId
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/RODHeader.h:72