ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ZdcL1CaloSubBlock Class Reference

L1Calo Sub-Block base class. More...

#include <ZdcL1CaloSubBlock.h>

Collaboration diagram for ZdcL1CaloSubBlock:

Public Types

enum  SubBlockWordType { HEADER, DATA, STATUS }
 
enum  DataFormats { NEUTRAL = 0, UNCOMPRESSED = 1, COMPRESSED = 2, SUPERCOMPRESSED = 3 }
 
enum  DataErrorType {
  ERROR_NONE, ERROR_DUPLICATE_ROB, ERROR_ROD_ID, ERROR_ROD_NSTATUS,
  ERROR_USER_HEADER, ERROR_MISSING_HEADER, ERROR_MISSING_SUBBLOCK, ERROR_CRATE_NUMBER,
  ERROR_MODULE_NUMBER, ERROR_SLICES, ERROR_DUPLICATE_DATA, ERROR_ROI_TYPE,
  ERROR_MAX
}
 
enum  UnpackErrorType {
  UNPACK_NONE = ERROR_NONE, UNPACK_VERSION = ERROR_MAX, UNPACK_FORMAT, UNPACK_COMPRESSION_VERSION,
  UNPACK_COMPRESSION_SLICES, UNPACK_DATA_TRUNCATED, UNPACK_EXCESS_DATA, UNPACK_SOURCE_ID,
  UNPACK_EXCESS_TOBS, UNPACK_DATA_ID
}
 

Public Member Functions

 ZdcL1CaloSubBlock ()
 
 ~ZdcL1CaloSubBlock ()
 
void clear ()
 Clear all data. More...
 
int dataWords () const
 Return number of data words. More...
 
void setHeader (int wordId, int version, int format, int seqno, int crate, int module, int slices2, int slices1)
 Store header data. More...
 
int wordId () const
 
int version () const
 
int format () const
 
int seqno () const
 
int slice () const
 
int crate () const
 
int module () const
 
int slices2 () const
 
int slices1 () const
 
uint32_t failingBCN () const
 
bool glinkTimeout () const
 
bool glinkDown () const
 
bool upstreamError () const
 
bool daqOverflow () const
 
bool bcnMismatch () const
 
bool glinkProtocol () const
 
bool glinkParity () const
 
uint32_t subStatus () const
 Return Sub-status word. More...
 
void setBunchCrossing (int bc)
 Set the Bunch Crossing number (neutral format only) More...
 
int bunchCrossing () const
 Return the Bunch Crossing number (neutral format only) More...
 
OFFLINE_FRAGMENTS_NAMESPACE::PointerType read (const OFFLINE_FRAGMENTS_NAMESPACE::PointerType beg, const OFFLINE_FRAGMENTS_NAMESPACE::PointerType end)
 Input complete packed sub-block from ROD array. More...
 
void setStatus (uint32_t failingBCN, bool glinkTimeout, bool glinkDown, bool upstreamError, bool daqOverflow, bool bcnMismatch, bool glinkProtocol, bool glinkParity)
 Output complete packed sub-block to ROD vector. More...
 
void setDaqOverflow (int bit=1)
 Set DAQ FIFO Overflow bit in Sub-status word. More...
 
void setGlinkParity (int bit=1)
 Set G-Link Parity bit in Sub-status word. More...
 
void setUnpackErrorCode (int code)
 Set the unpacking error code. More...
 
int unpackErrorCode () const
 Return the unpacking error code. More...
 
std::string unpackErrorMsg () const
 Return the unpacking error message for printing. More...
 
int minBits (uint32_t datum) const
 Return the minimum number of bits needed for given data. More...
 
int parityBit (int init, uint32_t datum, int nbits) const
 Return the parity bit for given data. More...
 
void packer (uint32_t datum, int nbits)
 Pack given data into given number of bits. More...
 
void packerFlush ()
 Flush the current data word padded with zeros. More...
 
void setStreamed ()
 Set continuous bit streaming for compressed formats. More...
 
uint32_t unpacker (int nbits)
 Unpack given number of bits of data. More...
 
uint32_t unpacker (int nbits, int align)
 
void unpackerInit ()
 Initialise unpacker. More...
 
bool unpackerSuccess () const
 Return unpacker success flag. More...
 
void packerNeutral (int pin, uint32_t datum, int nbits)
 Pack given neutral data from given pin. More...
 
void packerNeutralParity (int pin)
 Pack current G-Link parity bit for given pin. More...
 
uint32_t unpackerNeutral (int pin, int nbits)
 Unpack given number of bits of neutral data for given pin. More...
 
bool unpackerNeutralParityError (int pin)
 Unpack and test G-Link parity bit for given pin. More...
 
int currentPinBit (int pin) const
 Return current pin bit for given pin. More...
 

Static Public Member Functions

static SubBlockWordType wordType (uint32_t word)
 Word identification. More...
 
static int wordId (uint32_t word)
 Return wordID field from given header word. More...
 
static int version (uint32_t word)
 Return version number from given header word. More...
 
static int format (uint32_t word)
 Return data format from given header word. More...
 
static int seqno (uint32_t word)
 Return seqno field from given header word. More...
 
static int module (uint32_t word)
 Return module field from given header word. More...
 

Private Attributes

uint32_t m_header
 Sub-Block Header. More...
 
uint32_t m_trailer
 Sub-Block Status Trailer. More...
 
int m_bunchCrossing
 Bunch Crossing number (neutral format only) More...
 
int m_unpackError
 Unpacking error code. More...
 
uint32_t m_bitword
 
int m_currentBit
 
int m_maxBits
 
uint32_t m_maxMask
 
bool m_unpackerFlag
 
std::vector< uint32_t >::const_iterator m_dataPos
 
std::vector< uint32_t >::const_iterator m_dataPosEnd
 
std::vector< int > m_currentPinBit
 
std::vector< int > m_oddParity
 
int m_dataWords
 Current number of data words. More...
 
std::vector< uint32_t > m_data
 Sub-Block data. More...
 
std::vector< uint32_t > m_unpackingMasks
 Unpacking masks. More...
 

Static Private Attributes

static const int s_headerBit = 30
 
static const int s_statusBit = 28
 
static const uint32_t s_headerMask = 0x3
 
static const uint32_t s_statusMask = 0x1
 
static const uint32_t s_headerVal = 0x3
 
static const uint32_t s_statusVal = 0x1
 
static const int s_ppmCrates = 8
 
static const int s_wordIdBit = 28
 
static const int s_versionBit = 25
 
static const int s_formatBit = 22
 
static const int s_seqnoBit = 16
 
static const int s_crateBit = 12
 
static const int s_moduleBit = 8
 
static const int s_slices2Bit = 3
 
static const int s_slices1Bit = 0
 
static const uint32_t s_wordIdMask = 0xf
 
static const uint32_t s_versionMask = 0x7
 
static const uint32_t s_formatMask = 0x7
 
static const uint32_t s_seqnoMask = 0x3f
 
static const uint32_t s_crateMask = 0xf
 
static const uint32_t s_moduleMask = 0xf
 
static const uint32_t s_slices2Mask = 0x1f
 
static const uint32_t s_slices1Mask = 0x7
 
static const int s_failingBcnBit = 22
 
static const int s_glinkTimeoutBit = 7
 
static const int s_glinkDownBit = 6
 
static const int s_upstreamErrorBit = 4
 
static const int s_daqOverflowBit = 3
 
static const int s_bcnMismatchBit = 2
 
static const int s_glinkProtocolBit = 1
 
static const int s_glinkParityBit = 0
 
static const uint32_t s_failingBcnMask = 0x3f
 
static const int s_maxWordBits = 32
 
static const int s_maxStreamedBits = 31
 
static const uint32_t s_maxWordMask = 0xffffffff
 
static const uint32_t s_maxStreamedMask = 0x7fffffff
 
static const int s_maxPins = 20
 
static const uint32_t s_glinkDavSet = 0x400000
 

Detailed Description

L1Calo Sub-Block base class.

Provides common functionality for all L1Calo Sub-Block derived types.

Author
Peter Faulkner

Definition at line 25 of file ZdcL1CaloSubBlock.h.

Member Enumeration Documentation

◆ DataErrorType

Enumerator
ERROR_NONE 
ERROR_DUPLICATE_ROB 
ERROR_ROD_ID 
ERROR_ROD_NSTATUS 
ERROR_USER_HEADER 
ERROR_MISSING_HEADER 
ERROR_MISSING_SUBBLOCK 
ERROR_CRATE_NUMBER 
ERROR_MODULE_NUMBER 
ERROR_SLICES 
ERROR_DUPLICATE_DATA 
ERROR_ROI_TYPE 
ERROR_MAX 

Definition at line 32 of file ZdcL1CaloSubBlock.h.

◆ DataFormats

Enumerator
NEUTRAL 
UNCOMPRESSED 
COMPRESSED 
SUPERCOMPRESSED 

Definition at line 29 of file ZdcL1CaloSubBlock.h.

29  { NEUTRAL = 0, UNCOMPRESSED = 1, COMPRESSED = 2,
30  SUPERCOMPRESSED = 3 };

◆ SubBlockWordType

Enumerator
HEADER 
DATA 
STATUS 

Definition at line 28 of file ZdcL1CaloSubBlock.h.

28 { HEADER, DATA, STATUS };

◆ UnpackErrorType

Enumerator
UNPACK_NONE 
UNPACK_VERSION 
UNPACK_FORMAT 
UNPACK_COMPRESSION_VERSION 
UNPACK_COMPRESSION_SLICES 
UNPACK_DATA_TRUNCATED 
UNPACK_EXCESS_DATA 
UNPACK_SOURCE_ID 
UNPACK_EXCESS_TOBS 
UNPACK_DATA_ID 

Definition at line 39 of file ZdcL1CaloSubBlock.h.

Constructor & Destructor Documentation

◆ ZdcL1CaloSubBlock()

ZdcL1CaloSubBlock::ZdcL1CaloSubBlock ( )

◆ ~ZdcL1CaloSubBlock()

ZdcL1CaloSubBlock::~ZdcL1CaloSubBlock ( )

Member Function Documentation

◆ bcnMismatch()

bool ZdcL1CaloSubBlock::bcnMismatch ( ) const
inline

Definition at line 310 of file ZdcL1CaloSubBlock.h.

311 {
312  return m_trailer & (0x1 << s_bcnMismatchBit);
313 }

◆ bunchCrossing()

int ZdcL1CaloSubBlock::bunchCrossing ( ) const
inline

Return the Bunch Crossing number (neutral format only)

Definition at line 335 of file ZdcL1CaloSubBlock.h.

336 {
337  return m_bunchCrossing;
338 }

◆ clear()

void ZdcL1CaloSubBlock::clear ( )

Clear all data.

◆ crate()

int ZdcL1CaloSubBlock::crate ( ) const
inline

Definition at line 265 of file ZdcL1CaloSubBlock.h.

266 {
267  return (m_header >> s_crateBit) & s_crateMask;
268 }

◆ currentPinBit()

int ZdcL1CaloSubBlock::currentPinBit ( int  pin) const
inline

Return current pin bit for given pin.

Definition at line 361 of file ZdcL1CaloSubBlock.h.

362 {
363  return m_currentPinBit[pin];
364 }

◆ daqOverflow()

bool ZdcL1CaloSubBlock::daqOverflow ( ) const
inline

Definition at line 305 of file ZdcL1CaloSubBlock.h.

306 {
307  return m_trailer & (0x1 << s_daqOverflowBit);
308 }

◆ dataWords()

int ZdcL1CaloSubBlock::dataWords ( ) const
inline

Return number of data words.

Definition at line 235 of file ZdcL1CaloSubBlock.h.

236 {
237  return m_dataWords;
238 }

◆ failingBCN()

uint32_t ZdcL1CaloSubBlock::failingBCN ( ) const
inline

Definition at line 285 of file ZdcL1CaloSubBlock.h.

286 {
288 }

◆ format() [1/2]

int ZdcL1CaloSubBlock::format ( ) const
inline

Definition at line 250 of file ZdcL1CaloSubBlock.h.

251 {
252  return (m_header >> s_formatBit) & s_formatMask;
253 }

◆ format() [2/2]

static int ZdcL1CaloSubBlock::format ( uint32_t  word)
static

Return data format from given header word.

◆ glinkDown()

bool ZdcL1CaloSubBlock::glinkDown ( ) const
inline

Definition at line 295 of file ZdcL1CaloSubBlock.h.

296 {
297  return m_trailer & (0x1 << s_glinkDownBit);
298 }

◆ glinkParity()

bool ZdcL1CaloSubBlock::glinkParity ( ) const
inline

Definition at line 320 of file ZdcL1CaloSubBlock.h.

321 {
322  return m_trailer & (0x1 << s_glinkParityBit);
323 }

◆ glinkProtocol()

bool ZdcL1CaloSubBlock::glinkProtocol ( ) const
inline

Definition at line 315 of file ZdcL1CaloSubBlock.h.

316 {
317  return m_trailer & (0x1 << s_glinkProtocolBit);
318 }

◆ glinkTimeout()

bool ZdcL1CaloSubBlock::glinkTimeout ( ) const
inline

Definition at line 290 of file ZdcL1CaloSubBlock.h.

291 {
292  return m_trailer & (0x1 << s_glinkTimeoutBit);
293 }

◆ minBits()

int ZdcL1CaloSubBlock::minBits ( uint32_t  datum) const

Return the minimum number of bits needed for given data.

◆ module() [1/2]

int ZdcL1CaloSubBlock::module ( ) const
inline

Definition at line 270 of file ZdcL1CaloSubBlock.h.

271 {
272  return (m_header >> s_moduleBit) & s_moduleMask;
273 }

◆ module() [2/2]

static int ZdcL1CaloSubBlock::module ( uint32_t  word)
static

Return module field from given header word.

◆ packer()

void ZdcL1CaloSubBlock::packer ( uint32_t  datum,
int  nbits 
)

Pack given data into given number of bits.

◆ packerFlush()

void ZdcL1CaloSubBlock::packerFlush ( )

Flush the current data word padded with zeros.

◆ packerNeutral()

void ZdcL1CaloSubBlock::packerNeutral ( int  pin,
uint32_t  datum,
int  nbits 
)

Pack given neutral data from given pin.

◆ packerNeutralParity()

void ZdcL1CaloSubBlock::packerNeutralParity ( int  pin)

Pack current G-Link parity bit for given pin.

◆ parityBit()

int ZdcL1CaloSubBlock::parityBit ( int  init,
uint32_t  datum,
int  nbits 
) const

Return the parity bit for given data.

◆ read()

Input complete packed sub-block from ROD array.

◆ seqno() [1/2]

int ZdcL1CaloSubBlock::seqno ( ) const
inline

Definition at line 255 of file ZdcL1CaloSubBlock.h.

256 {
257  return (m_header >> s_seqnoBit) & s_seqnoMask;
258 }

◆ seqno() [2/2]

static int ZdcL1CaloSubBlock::seqno ( uint32_t  word)
static

Return seqno field from given header word.

◆ setBunchCrossing()

void ZdcL1CaloSubBlock::setBunchCrossing ( int  bc)
inline

Set the Bunch Crossing number (neutral format only)

Definition at line 330 of file ZdcL1CaloSubBlock.h.

331 {
332  if (bc) m_bunchCrossing = bc;
333 }

◆ setDaqOverflow()

void ZdcL1CaloSubBlock::setDaqOverflow ( int  bit = 1)

Set DAQ FIFO Overflow bit in Sub-status word.

◆ setGlinkParity()

void ZdcL1CaloSubBlock::setGlinkParity ( int  bit = 1)

Set G-Link Parity bit in Sub-status word.

◆ setHeader()

void ZdcL1CaloSubBlock::setHeader ( int  wordId,
int  version,
int  format,
int  seqno,
int  crate,
int  module,
int  slices2,
int  slices1 
)

Store header data.

◆ setStatus()

void ZdcL1CaloSubBlock::setStatus ( uint32_t  failingBCN,
bool  glinkTimeout,
bool  glinkDown,
bool  upstreamError,
bool  daqOverflow,
bool  bcnMismatch,
bool  glinkProtocol,
bool  glinkParity 
)

Output complete packed sub-block to ROD vector.

Store error status trailer

◆ setStreamed()

void ZdcL1CaloSubBlock::setStreamed ( )
inline

Set continuous bit streaming for compressed formats.

Definition at line 350 of file ZdcL1CaloSubBlock.h.

351 {
354 }

◆ setUnpackErrorCode()

void ZdcL1CaloSubBlock::setUnpackErrorCode ( int  code)
inline

Set the unpacking error code.

Definition at line 340 of file ZdcL1CaloSubBlock.h.

341 {
343 }

◆ slice()

int ZdcL1CaloSubBlock::slice ( ) const
inline

Definition at line 260 of file ZdcL1CaloSubBlock.h.

261 {
262  return seqno();
263 }

◆ slices1()

int ZdcL1CaloSubBlock::slices1 ( ) const
inline

Definition at line 280 of file ZdcL1CaloSubBlock.h.

281 {
282  return (m_header >> s_slices1Bit) & s_slices1Mask;
283 }

◆ slices2()

int ZdcL1CaloSubBlock::slices2 ( ) const
inline

Definition at line 275 of file ZdcL1CaloSubBlock.h.

276 {
277  return (m_header >> s_slices2Bit) & s_slices2Mask;
278 }

◆ subStatus()

uint32_t ZdcL1CaloSubBlock::subStatus ( ) const
inline

Return Sub-status word.

Definition at line 325 of file ZdcL1CaloSubBlock.h.

326 {
327  return m_trailer;
328 }

◆ unpacker() [1/2]

uint32_t ZdcL1CaloSubBlock::unpacker ( int  nbits)

Unpack given number of bits of data.

◆ unpacker() [2/2]

uint32_t ZdcL1CaloSubBlock::unpacker ( int  nbits,
int  align 
)

◆ unpackerInit()

void ZdcL1CaloSubBlock::unpackerInit ( )

Initialise unpacker.

◆ unpackerNeutral()

uint32_t ZdcL1CaloSubBlock::unpackerNeutral ( int  pin,
int  nbits 
)

Unpack given number of bits of neutral data for given pin.

◆ unpackerNeutralParityError()

bool ZdcL1CaloSubBlock::unpackerNeutralParityError ( int  pin)

Unpack and test G-Link parity bit for given pin.

◆ unpackErrorCode()

int ZdcL1CaloSubBlock::unpackErrorCode ( ) const
inline

Return the unpacking error code.

Definition at line 345 of file ZdcL1CaloSubBlock.h.

346 {
347  return m_unpackError;
348 }

◆ unpackErrorMsg()

std::string ZdcL1CaloSubBlock::unpackErrorMsg ( ) const

Return the unpacking error message for printing.

◆ unpackerSuccess()

bool ZdcL1CaloSubBlock::unpackerSuccess ( ) const
inline

Return unpacker success flag.

Definition at line 356 of file ZdcL1CaloSubBlock.h.

357 {
358  return m_unpackerFlag;
359 }

◆ upstreamError()

bool ZdcL1CaloSubBlock::upstreamError ( ) const
inline

Definition at line 300 of file ZdcL1CaloSubBlock.h.

301 {
302  return m_trailer & (0x1 << s_upstreamErrorBit);
303 }

◆ version() [1/2]

int ZdcL1CaloSubBlock::version ( ) const
inline

Definition at line 245 of file ZdcL1CaloSubBlock.h.

246 {
247  return (m_header >> s_versionBit) & s_versionMask;
248 }

◆ version() [2/2]

static int ZdcL1CaloSubBlock::version ( uint32_t  word)
static

Return version number from given header word.

◆ wordId() [1/2]

int ZdcL1CaloSubBlock::wordId ( ) const
inline

Definition at line 240 of file ZdcL1CaloSubBlock.h.

241 {
242  return (m_header >> s_wordIdBit) & s_wordIdMask;
243 }

◆ wordId() [2/2]

static int ZdcL1CaloSubBlock::wordId ( uint32_t  word)
static

Return wordID field from given header word.

◆ wordType()

static SubBlockWordType ZdcL1CaloSubBlock::wordType ( uint32_t  word)
static

Word identification.

Member Data Documentation

◆ m_bitword

uint32_t ZdcL1CaloSubBlock::m_bitword
private

Definition at line 216 of file ZdcL1CaloSubBlock.h.

◆ m_bunchCrossing

int ZdcL1CaloSubBlock::m_bunchCrossing
private

Bunch Crossing number (neutral format only)

Definition at line 212 of file ZdcL1CaloSubBlock.h.

◆ m_currentBit

int ZdcL1CaloSubBlock::m_currentBit
private

Definition at line 217 of file ZdcL1CaloSubBlock.h.

◆ m_currentPinBit

std::vector<int> ZdcL1CaloSubBlock::m_currentPinBit
private

Definition at line 224 of file ZdcL1CaloSubBlock.h.

◆ m_data

std::vector<uint32_t> ZdcL1CaloSubBlock::m_data
private

Sub-Block data.

Definition at line 229 of file ZdcL1CaloSubBlock.h.

◆ m_dataPos

std::vector<uint32_t>::const_iterator ZdcL1CaloSubBlock::m_dataPos
private

Definition at line 221 of file ZdcL1CaloSubBlock.h.

◆ m_dataPosEnd

std::vector<uint32_t>::const_iterator ZdcL1CaloSubBlock::m_dataPosEnd
private

Definition at line 222 of file ZdcL1CaloSubBlock.h.

◆ m_dataWords

int ZdcL1CaloSubBlock::m_dataWords
private

Current number of data words.

Definition at line 227 of file ZdcL1CaloSubBlock.h.

◆ m_header

uint32_t ZdcL1CaloSubBlock::m_header
private

Sub-Block Header.

Definition at line 208 of file ZdcL1CaloSubBlock.h.

◆ m_maxBits

int ZdcL1CaloSubBlock::m_maxBits
private

Definition at line 218 of file ZdcL1CaloSubBlock.h.

◆ m_maxMask

uint32_t ZdcL1CaloSubBlock::m_maxMask
private

Definition at line 219 of file ZdcL1CaloSubBlock.h.

◆ m_oddParity

std::vector<int> ZdcL1CaloSubBlock::m_oddParity
private

Definition at line 225 of file ZdcL1CaloSubBlock.h.

◆ m_trailer

uint32_t ZdcL1CaloSubBlock::m_trailer
private

Sub-Block Status Trailer.

Definition at line 210 of file ZdcL1CaloSubBlock.h.

◆ m_unpackerFlag

bool ZdcL1CaloSubBlock::m_unpackerFlag
private

Definition at line 220 of file ZdcL1CaloSubBlock.h.

◆ m_unpackError

int ZdcL1CaloSubBlock::m_unpackError
private

Unpacking error code.

Definition at line 214 of file ZdcL1CaloSubBlock.h.

◆ m_unpackingMasks

std::vector<uint32_t> ZdcL1CaloSubBlock::m_unpackingMasks
private

Unpacking masks.

Definition at line 231 of file ZdcL1CaloSubBlock.h.

◆ s_bcnMismatchBit

const int ZdcL1CaloSubBlock::s_bcnMismatchBit = 2
staticprivate

Definition at line 194 of file ZdcL1CaloSubBlock.h.

◆ s_crateBit

const int ZdcL1CaloSubBlock::s_crateBit = 12
staticprivate

Definition at line 176 of file ZdcL1CaloSubBlock.h.

◆ s_crateMask

const uint32_t ZdcL1CaloSubBlock::s_crateMask = 0xf
staticprivate

Definition at line 184 of file ZdcL1CaloSubBlock.h.

◆ s_daqOverflowBit

const int ZdcL1CaloSubBlock::s_daqOverflowBit = 3
staticprivate

Definition at line 193 of file ZdcL1CaloSubBlock.h.

◆ s_failingBcnBit

const int ZdcL1CaloSubBlock::s_failingBcnBit = 22
staticprivate

Definition at line 189 of file ZdcL1CaloSubBlock.h.

◆ s_failingBcnMask

const uint32_t ZdcL1CaloSubBlock::s_failingBcnMask = 0x3f
staticprivate

Definition at line 197 of file ZdcL1CaloSubBlock.h.

◆ s_formatBit

const int ZdcL1CaloSubBlock::s_formatBit = 22
staticprivate

Definition at line 174 of file ZdcL1CaloSubBlock.h.

◆ s_formatMask

const uint32_t ZdcL1CaloSubBlock::s_formatMask = 0x7
staticprivate

Definition at line 182 of file ZdcL1CaloSubBlock.h.

◆ s_glinkDavSet

const uint32_t ZdcL1CaloSubBlock::s_glinkDavSet = 0x400000
staticprivate

Definition at line 205 of file ZdcL1CaloSubBlock.h.

◆ s_glinkDownBit

const int ZdcL1CaloSubBlock::s_glinkDownBit = 6
staticprivate

Definition at line 191 of file ZdcL1CaloSubBlock.h.

◆ s_glinkParityBit

const int ZdcL1CaloSubBlock::s_glinkParityBit = 0
staticprivate

Definition at line 196 of file ZdcL1CaloSubBlock.h.

◆ s_glinkProtocolBit

const int ZdcL1CaloSubBlock::s_glinkProtocolBit = 1
staticprivate

Definition at line 195 of file ZdcL1CaloSubBlock.h.

◆ s_glinkTimeoutBit

const int ZdcL1CaloSubBlock::s_glinkTimeoutBit = 7
staticprivate

Definition at line 190 of file ZdcL1CaloSubBlock.h.

◆ s_headerBit

const int ZdcL1CaloSubBlock::s_headerBit = 30
staticprivate

Definition at line 163 of file ZdcL1CaloSubBlock.h.

◆ s_headerMask

const uint32_t ZdcL1CaloSubBlock::s_headerMask = 0x3
staticprivate

Definition at line 165 of file ZdcL1CaloSubBlock.h.

◆ s_headerVal

const uint32_t ZdcL1CaloSubBlock::s_headerVal = 0x3
staticprivate

Definition at line 167 of file ZdcL1CaloSubBlock.h.

◆ s_maxPins

const int ZdcL1CaloSubBlock::s_maxPins = 20
staticprivate

Definition at line 204 of file ZdcL1CaloSubBlock.h.

◆ s_maxStreamedBits

const int ZdcL1CaloSubBlock::s_maxStreamedBits = 31
staticprivate

Definition at line 200 of file ZdcL1CaloSubBlock.h.

◆ s_maxStreamedMask

const uint32_t ZdcL1CaloSubBlock::s_maxStreamedMask = 0x7fffffff
staticprivate

Definition at line 202 of file ZdcL1CaloSubBlock.h.

◆ s_maxWordBits

const int ZdcL1CaloSubBlock::s_maxWordBits = 32
staticprivate

Definition at line 199 of file ZdcL1CaloSubBlock.h.

◆ s_maxWordMask

const uint32_t ZdcL1CaloSubBlock::s_maxWordMask = 0xffffffff
staticprivate

Definition at line 201 of file ZdcL1CaloSubBlock.h.

◆ s_moduleBit

const int ZdcL1CaloSubBlock::s_moduleBit = 8
staticprivate

Definition at line 177 of file ZdcL1CaloSubBlock.h.

◆ s_moduleMask

const uint32_t ZdcL1CaloSubBlock::s_moduleMask = 0xf
staticprivate

Definition at line 185 of file ZdcL1CaloSubBlock.h.

◆ s_ppmCrates

const int ZdcL1CaloSubBlock::s_ppmCrates = 8
staticprivate

Definition at line 170 of file ZdcL1CaloSubBlock.h.

◆ s_seqnoBit

const int ZdcL1CaloSubBlock::s_seqnoBit = 16
staticprivate

Definition at line 175 of file ZdcL1CaloSubBlock.h.

◆ s_seqnoMask

const uint32_t ZdcL1CaloSubBlock::s_seqnoMask = 0x3f
staticprivate

Definition at line 183 of file ZdcL1CaloSubBlock.h.

◆ s_slices1Bit

const int ZdcL1CaloSubBlock::s_slices1Bit = 0
staticprivate

Definition at line 179 of file ZdcL1CaloSubBlock.h.

◆ s_slices1Mask

const uint32_t ZdcL1CaloSubBlock::s_slices1Mask = 0x7
staticprivate

Definition at line 187 of file ZdcL1CaloSubBlock.h.

◆ s_slices2Bit

const int ZdcL1CaloSubBlock::s_slices2Bit = 3
staticprivate

Definition at line 178 of file ZdcL1CaloSubBlock.h.

◆ s_slices2Mask

const uint32_t ZdcL1CaloSubBlock::s_slices2Mask = 0x1f
staticprivate

Definition at line 186 of file ZdcL1CaloSubBlock.h.

◆ s_statusBit

const int ZdcL1CaloSubBlock::s_statusBit = 28
staticprivate

Definition at line 164 of file ZdcL1CaloSubBlock.h.

◆ s_statusMask

const uint32_t ZdcL1CaloSubBlock::s_statusMask = 0x1
staticprivate

Definition at line 166 of file ZdcL1CaloSubBlock.h.

◆ s_statusVal

const uint32_t ZdcL1CaloSubBlock::s_statusVal = 0x1
staticprivate

Definition at line 168 of file ZdcL1CaloSubBlock.h.

◆ s_upstreamErrorBit

const int ZdcL1CaloSubBlock::s_upstreamErrorBit = 4
staticprivate

Definition at line 192 of file ZdcL1CaloSubBlock.h.

◆ s_versionBit

const int ZdcL1CaloSubBlock::s_versionBit = 25
staticprivate

Definition at line 173 of file ZdcL1CaloSubBlock.h.

◆ s_versionMask

const uint32_t ZdcL1CaloSubBlock::s_versionMask = 0x7
staticprivate

Definition at line 181 of file ZdcL1CaloSubBlock.h.

◆ s_wordIdBit

const int ZdcL1CaloSubBlock::s_wordIdBit = 28
staticprivate

Definition at line 172 of file ZdcL1CaloSubBlock.h.

◆ s_wordIdMask

const uint32_t ZdcL1CaloSubBlock::s_wordIdMask = 0xf
staticprivate

Definition at line 180 of file ZdcL1CaloSubBlock.h.


The documentation for this class was generated from the following file:
ZdcL1CaloSubBlock::s_moduleBit
static const int s_moduleBit
Definition: ZdcL1CaloSubBlock.h:177
ZdcL1CaloSubBlock::s_wordIdMask
static const uint32_t s_wordIdMask
Definition: ZdcL1CaloSubBlock.h:180
ZdcL1CaloSubBlock::NEUTRAL
@ NEUTRAL
Definition: ZdcL1CaloSubBlock.h:29
ZdcL1CaloSubBlock::s_slices1Mask
static const uint32_t s_slices1Mask
Definition: ZdcL1CaloSubBlock.h:187
ZdcL1CaloSubBlock::s_failingBcnMask
static const uint32_t s_failingBcnMask
Definition: ZdcL1CaloSubBlock.h:197
ZdcL1CaloSubBlock::UNPACK_NONE
@ UNPACK_NONE
Definition: ZdcL1CaloSubBlock.h:39
ZdcL1CaloSubBlock::s_failingBcnBit
static const int s_failingBcnBit
Definition: ZdcL1CaloSubBlock.h:189
ZdcL1CaloSubBlock::ERROR_MAX
@ ERROR_MAX
Definition: ZdcL1CaloSubBlock.h:37
ZdcL1CaloSubBlock::m_unpackerFlag
bool m_unpackerFlag
Definition: ZdcL1CaloSubBlock.h:220
ZdcL1CaloSubBlock::HEADER
@ HEADER
Definition: ZdcL1CaloSubBlock.h:28
ZdcL1CaloSubBlock::s_wordIdBit
static const int s_wordIdBit
Definition: ZdcL1CaloSubBlock.h:172
ZdcL1CaloSubBlock::m_unpackError
int m_unpackError
Unpacking error code.
Definition: ZdcL1CaloSubBlock.h:214
ZdcL1CaloSubBlock::s_maxStreamedBits
static const int s_maxStreamedBits
Definition: ZdcL1CaloSubBlock.h:200
ZdcL1CaloSubBlock::ERROR_CRATE_NUMBER
@ ERROR_CRATE_NUMBER
Definition: ZdcL1CaloSubBlock.h:35
ZdcL1CaloSubBlock::s_versionMask
static const uint32_t s_versionMask
Definition: ZdcL1CaloSubBlock.h:181
ZdcL1CaloSubBlock::m_currentPinBit
std::vector< int > m_currentPinBit
Definition: ZdcL1CaloSubBlock.h:224
ZdcL1CaloSubBlock::s_slices2Mask
static const uint32_t s_slices2Mask
Definition: ZdcL1CaloSubBlock.h:186
ZdcL1CaloSubBlock::s_glinkTimeoutBit
static const int s_glinkTimeoutBit
Definition: ZdcL1CaloSubBlock.h:190
ZdcL1CaloSubBlock::UNPACK_EXCESS_TOBS
@ UNPACK_EXCESS_TOBS
Definition: ZdcL1CaloSubBlock.h:43
ZdcL1CaloSubBlock::COMPRESSED
@ COMPRESSED
Definition: ZdcL1CaloSubBlock.h:29
ZdcL1CaloSubBlock::ERROR_DUPLICATE_ROB
@ ERROR_DUPLICATE_ROB
Definition: ZdcL1CaloSubBlock.h:32
ZdcL1CaloSubBlock::s_moduleMask
static const uint32_t s_moduleMask
Definition: ZdcL1CaloSubBlock.h:185
ZdcL1CaloSubBlock::UNCOMPRESSED
@ UNCOMPRESSED
Definition: ZdcL1CaloSubBlock.h:29
histSizes.code
code
Definition: histSizes.py:129
ZdcL1CaloSubBlock::seqno
int seqno() const
Definition: ZdcL1CaloSubBlock.h:255
ZdcL1CaloSubBlock::s_glinkProtocolBit
static const int s_glinkProtocolBit
Definition: ZdcL1CaloSubBlock.h:195
ZdcL1CaloSubBlock::ERROR_MISSING_SUBBLOCK
@ ERROR_MISSING_SUBBLOCK
Definition: ZdcL1CaloSubBlock.h:34
ZdcL1CaloSubBlock::UNPACK_VERSION
@ UNPACK_VERSION
Definition: ZdcL1CaloSubBlock.h:39
ZdcL1CaloSubBlock::UNPACK_DATA_ID
@ UNPACK_DATA_ID
Definition: ZdcL1CaloSubBlock.h:43
ZdcL1CaloSubBlock::s_crateMask
static const uint32_t s_crateMask
Definition: ZdcL1CaloSubBlock.h:184
ZdcL1CaloSubBlock::s_formatBit
static const int s_formatBit
Definition: ZdcL1CaloSubBlock.h:174
ZdcL1CaloSubBlock::UNPACK_COMPRESSION_SLICES
@ UNPACK_COMPRESSION_SLICES
Definition: ZdcL1CaloSubBlock.h:41
ZdcL1CaloSubBlock::m_maxBits
int m_maxBits
Definition: ZdcL1CaloSubBlock.h:218
ZdcL1CaloSubBlock::UNPACK_SOURCE_ID
@ UNPACK_SOURCE_ID
Definition: ZdcL1CaloSubBlock.h:42
ZdcL1CaloSubBlock::m_dataWords
int m_dataWords
Current number of data words.
Definition: ZdcL1CaloSubBlock.h:227
ZdcL1CaloSubBlock::s_slices1Bit
static const int s_slices1Bit
Definition: ZdcL1CaloSubBlock.h:179
ZdcL1CaloSubBlock::SUPERCOMPRESSED
@ SUPERCOMPRESSED
Definition: ZdcL1CaloSubBlock.h:30
ZdcL1CaloSubBlock::UNPACK_EXCESS_DATA
@ UNPACK_EXCESS_DATA
Definition: ZdcL1CaloSubBlock.h:42
ZdcL1CaloSubBlock::s_glinkDownBit
static const int s_glinkDownBit
Definition: ZdcL1CaloSubBlock.h:191
ZdcL1CaloSubBlock::s_seqnoBit
static const int s_seqnoBit
Definition: ZdcL1CaloSubBlock.h:175
ZdcL1CaloSubBlock::s_glinkParityBit
static const int s_glinkParityBit
Definition: ZdcL1CaloSubBlock.h:196
ZdcL1CaloSubBlock::DATA
@ DATA
Definition: ZdcL1CaloSubBlock.h:28
ZdcL1CaloSubBlock::UNPACK_COMPRESSION_VERSION
@ UNPACK_COMPRESSION_VERSION
Definition: ZdcL1CaloSubBlock.h:40
ZdcL1CaloSubBlock::ERROR_ROD_NSTATUS
@ ERROR_ROD_NSTATUS
Definition: ZdcL1CaloSubBlock.h:33
ZdcL1CaloSubBlock::ERROR_MODULE_NUMBER
@ ERROR_MODULE_NUMBER
Definition: ZdcL1CaloSubBlock.h:35
ZdcL1CaloSubBlock::m_header
uint32_t m_header
Sub-Block Header.
Definition: ZdcL1CaloSubBlock.h:208
ZdcL1CaloSubBlock::s_seqnoMask
static const uint32_t s_seqnoMask
Definition: ZdcL1CaloSubBlock.h:183
ZdcL1CaloSubBlock::s_upstreamErrorBit
static const int s_upstreamErrorBit
Definition: ZdcL1CaloSubBlock.h:192
ZdcL1CaloSubBlock::s_daqOverflowBit
static const int s_daqOverflowBit
Definition: ZdcL1CaloSubBlock.h:193
ZdcL1CaloSubBlock::m_maxMask
uint32_t m_maxMask
Definition: ZdcL1CaloSubBlock.h:219
ZdcL1CaloSubBlock::s_crateBit
static const int s_crateBit
Definition: ZdcL1CaloSubBlock.h:176
ZdcL1CaloSubBlock::s_versionBit
static const int s_versionBit
Definition: ZdcL1CaloSubBlock.h:173
ZdcL1CaloSubBlock::s_bcnMismatchBit
static const int s_bcnMismatchBit
Definition: ZdcL1CaloSubBlock.h:194
ZdcL1CaloSubBlock::m_bunchCrossing
int m_bunchCrossing
Bunch Crossing number (neutral format only)
Definition: ZdcL1CaloSubBlock.h:212
ZdcL1CaloSubBlock::ERROR_SLICES
@ ERROR_SLICES
Definition: ZdcL1CaloSubBlock.h:36
ZdcL1CaloSubBlock::ERROR_ROI_TYPE
@ ERROR_ROI_TYPE
Definition: ZdcL1CaloSubBlock.h:37
ZdcL1CaloSubBlock::UNPACK_DATA_TRUNCATED
@ UNPACK_DATA_TRUNCATED
Definition: ZdcL1CaloSubBlock.h:41
ZdcL1CaloSubBlock::STATUS
@ STATUS
Definition: ZdcL1CaloSubBlock.h:28
ZdcL1CaloSubBlock::s_maxStreamedMask
static const uint32_t s_maxStreamedMask
Definition: ZdcL1CaloSubBlock.h:202
ZdcL1CaloSubBlock::ERROR_ROD_ID
@ ERROR_ROD_ID
Definition: ZdcL1CaloSubBlock.h:32
ZdcL1CaloSubBlock::s_formatMask
static const uint32_t s_formatMask
Definition: ZdcL1CaloSubBlock.h:182
ZdcL1CaloSubBlock::ERROR_DUPLICATE_DATA
@ ERROR_DUPLICATE_DATA
Definition: ZdcL1CaloSubBlock.h:36
ZdcL1CaloSubBlock::ERROR_USER_HEADER
@ ERROR_USER_HEADER
Definition: ZdcL1CaloSubBlock.h:33
ZdcL1CaloSubBlock::ERROR_NONE
@ ERROR_NONE
Definition: ZdcL1CaloSubBlock.h:32
ZdcL1CaloSubBlock::s_slices2Bit
static const int s_slices2Bit
Definition: ZdcL1CaloSubBlock.h:178
ZdcL1CaloSubBlock::ERROR_MISSING_HEADER
@ ERROR_MISSING_HEADER
Definition: ZdcL1CaloSubBlock.h:34
ZdcL1CaloSubBlock::m_trailer
uint32_t m_trailer
Sub-Block Status Trailer.
Definition: ZdcL1CaloSubBlock.h:210
ZdcL1CaloSubBlock::UNPACK_FORMAT
@ UNPACK_FORMAT
Definition: ZdcL1CaloSubBlock.h:40