Project
Loading...
Searching...
No Matches
o2::itsmft::GBTLinkDecodingStat Struct Reference

Statistics for per-link decoding. More...

#include <DecodingStat.h>

Public Types

enum  DecErrors : int {
  ErrNoRDHAtStart , ErrPageNotStopped , ErrStopPageNotEmpty , ErrPageCounterDiscontinuity ,
  ErrRDHvsGBTHPageCnt , ErrMissingGBTTrigger , ErrMissingGBTHeader , ErrMissingGBTTrailer ,
  ErrNonZeroPageAfterStop , ErrUnstoppedLanes , ErrDataForStoppedLane , ErrNoDataForActiveLane ,
  ErrIBChipLaneMismatch , ErrCableDataHeadWrong , ErrInvalidActiveLanes , ErrPacketCounterJump ,
  ErrPacketDoneMissing , ErrMissingDiagnosticWord , ErrGBTWordNotRecognized , ErrWrongeCableID ,
  ErrWrongAlignmentWord , ErrMissingROF , ErrOldROF , ErrLinkRecovery ,
  NErrorsDefined
}
 counters for format checks More...
 

Public Member Functions

void clear ()
 
void print (bool skipNoErr=true) const
 
 ClassDefNV (GBTLinkDecodingStat, 3)
 

Public Attributes

uint16_t feeID = 0
 
uint32_t nPackets = 0
 
uint32_t nTriggers = 0
 
std::array< uint32_t, NErrorsDefinederrorCounts = {}
 
std::array< uint32_t, GBTDataTrailer::MaxStateCombinationspacketStates = {}
 

Static Public Attributes

static constexpr std::array< std::string_view, NErrorsDefinedErrNames
 

Detailed Description

Statistics for per-link decoding.

Definition at line 216 of file DecodingStat.h.

Member Enumeration Documentation

◆ DecErrors

counters for format checks

Enumerator
ErrNoRDHAtStart 
ErrPageNotStopped 
ErrStopPageNotEmpty 
ErrPageCounterDiscontinuity 
ErrRDHvsGBTHPageCnt 
ErrMissingGBTTrigger 
ErrMissingGBTHeader 
ErrMissingGBTTrailer 
ErrNonZeroPageAfterStop 
ErrUnstoppedLanes 
ErrDataForStoppedLane 
ErrNoDataForActiveLane 
ErrIBChipLaneMismatch 
ErrCableDataHeadWrong 
ErrInvalidActiveLanes 
ErrPacketCounterJump 
ErrPacketDoneMissing 
ErrMissingDiagnosticWord 
ErrGBTWordNotRecognized 
ErrWrongeCableID 
ErrWrongAlignmentWord 
ErrMissingROF 
ErrOldROF 
ErrLinkRecovery 
NErrorsDefined 

Definition at line 219 of file DecodingStat.h.

Member Function Documentation

◆ ClassDefNV()

o2::itsmft::GBTLinkDecodingStat::ClassDefNV ( GBTLinkDecodingStat  ,
 
)

◆ clear()

void o2::itsmft::GBTLinkDecodingStat::clear ( )
inline

Definition at line 280 of file DecodingStat.h.

◆ print()

void GBTLinkDecodingStat::print ( bool  skipNoErr = true) const

print link decoding statistics

Definition at line 79 of file DecodingStat.cxx.

Member Data Documentation

◆ ErrNames

constexpr std::array<std::string_view, NErrorsDefined> o2::itsmft::GBTLinkDecodingStat::ErrNames
staticconstexpr
Initial value:
= {
"Page data does not start with expected RDH",
"RDH is stopped, but the time is not matching the stop packet",
"Page with RDH.stop does not contain diagnostic word only",
"RDH page counters for the same RU/trigger are not continuous",
"RDH and GBT header page counters are not consistent",
"GBT trigger word was expected but not found",
"GBT payload header was expected but not found",
"GBT payload trailer was expected but not found",
"All lanes were stopped but the page counter in not 0",
"End of FEE data reached while not all lanes received stop",
"Data was received for stopped lane",
"No data was seen for lane (which was not in timeout)",
"ChipID (on module) was different from the lane ID on the IB stave",
"Cable data does not start with chip header or empty chip",
"Active lanes pattern conflicts with expected for given RU type",
"Jump in RDH_packetCounter",
"Packet done is missing in the trailer while CRU page is not over",
"Wrong/missing diagnostic GBT word after RDH with stop",
"GBT word not recognized",
"Wrong cable ID",
"Unexpected CRU page alignment padding word",
"ROF in future, pause decoding to synchronize",
"Old ROF, discarding",
"Data discarded due to the recovery flag in RDH",
}

Definition at line 246 of file DecodingStat.h.

◆ errorCounts

std::array<uint32_t, NErrorsDefined> o2::itsmft::GBTLinkDecodingStat::errorCounts = {}

Definition at line 277 of file DecodingStat.h.

◆ feeID

uint16_t o2::itsmft::GBTLinkDecodingStat::feeID = 0

Definition at line 273 of file DecodingStat.h.

◆ nPackets

uint32_t o2::itsmft::GBTLinkDecodingStat::nPackets = 0

Definition at line 275 of file DecodingStat.h.

◆ nTriggers

uint32_t o2::itsmft::GBTLinkDecodingStat::nTriggers = 0

Definition at line 276 of file DecodingStat.h.

◆ packetStates

std::array<uint32_t, GBTDataTrailer::MaxStateCombinations> o2::itsmft::GBTLinkDecodingStat::packetStates = {}

Definition at line 278 of file DecodingStat.h.


The documentation for this struct was generated from the following files: