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

#include <DecodingStat.h>

Public Types

enum  ActionOnError : int { ErrActNone = 0x0 , ErrActPropagate = 0x1 , ErrActDump = 0x2 }
 
enum  DecErrors : int {
  BusyViolation , DataOverrun , Fatal , BusyOn ,
  BusyOff , TruncatedChipEmpty , TruncatedChipHeader , TruncatedRegion ,
  TruncatedLondData , WrongDataLongPattern , NoDataFound , UnknownWord ,
  RepeatingPixel , WrongRow , APE_STRIP_START , APE_ILLEGAL_CHIPID ,
  APE_DET_TIMEOUT , APE_OOT , APE_PROTOCOL_ERROR , APE_LANE_FIFO_OVERFLOW_ERROR ,
  APE_FSM_ERROR , APE_PENDING_DETECTOR_EVENT_LIMIT , APE_PENDING_LANE_EVENT_LIMIT , APE_O2N_ERROR ,
  APE_RATE_MISSING_TRG_ERROR , APE_PE_DATA_MISSING , APE_OOT_DATA_MISSING , WrongDColOrder ,
  InterleavedChipData , TruncatedBuffer , TrailerAfterHeader , FlushedIncomplete ,
  StrobeExtended , WrongAlpideChipID , DecreasingRow , NErrorsDefined
}
 

Public Member Functions

 ChipStat ()=default
 
 ChipStat (uint16_t _feeID)
 
void clear ()
 
uint32_t getNErrors () const
 
uint32_t addErrors (const ChipPixelData &d, int verbosity)
 
void print (bool skipNoErr=true, const std::string &pref="FEEID") const
 
 ClassDefNV (ChipStat, 1)
 

Static Public Member Functions

static int getAPENonCritical (uint8_t c)
 
static int getAPECode (uint8_t c, bool &ft)
 
static uint8_t getAPEByte (DecErrors c)
 
template<typename Func >
static void forEachError (Func f)
 

Public Attributes

uint16_t feeID = -1
 
size_t nHits = 0
 
std::array< uint32_t, NErrorsDefinederrorCounts = {}
 

Static Public Attributes

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

Detailed Description

Definition at line 29 of file DecodingStat.h.

Member Enumeration Documentation

◆ ActionOnError

Enumerator
ErrActNone 
ErrActPropagate 
ErrActDump 

Definition at line 30 of file DecodingStat.h.

◆ DecErrors

Enumerator
BusyViolation 
DataOverrun 
Fatal 
BusyOn 
BusyOff 
TruncatedChipEmpty 
TruncatedChipHeader 
TruncatedRegion 
TruncatedLondData 
WrongDataLongPattern 
NoDataFound 
UnknownWord 
RepeatingPixel 
WrongRow 
APE_STRIP_START 
APE_ILLEGAL_CHIPID 
APE_DET_TIMEOUT 
APE_OOT 
APE_PROTOCOL_ERROR 
APE_LANE_FIFO_OVERFLOW_ERROR 
APE_FSM_ERROR 
APE_PENDING_DETECTOR_EVENT_LIMIT 
APE_PENDING_LANE_EVENT_LIMIT 
APE_O2N_ERROR 
APE_RATE_MISSING_TRG_ERROR 
APE_PE_DATA_MISSING 
APE_OOT_DATA_MISSING 
WrongDColOrder 
InterleavedChipData 
TruncatedBuffer 
TrailerAfterHeader 
FlushedIncomplete 
StrobeExtended 
WrongAlpideChipID 
DecreasingRow 
NErrorsDefined 

Definition at line 36 of file DecodingStat.h.

Constructor & Destructor Documentation

◆ ChipStat() [1/2]

o2::itsmft::ChipStat::ChipStat ( )
default

◆ ChipStat() [2/2]

o2::itsmft::ChipStat::ChipStat ( uint16_t  _feeID)
inline

Definition at line 154 of file DecodingStat.h.

Member Function Documentation

◆ addErrors()

uint32_t ChipStat::addErrors ( const ChipPixelData d,
int  verbosity 
)

print link decoding statistics

Definition at line 36 of file DecodingStat.cxx.

◆ ClassDefNV()

o2::itsmft::ChipStat::ClassDefNV ( ChipStat  ,
 
)

◆ clear()

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

Definition at line 156 of file DecodingStat.h.

◆ forEachError()

template<typename Func >
static void o2::itsmft::ChipStat::forEachError ( Func  f)
inlinestatic

Definition at line 194 of file DecodingStat.h.

◆ getAPEByte()

static uint8_t o2::itsmft::ChipStat::getAPEByte ( DecErrors  c)
inlinestatic

Definition at line 182 of file DecodingStat.h.

◆ getAPECode()

static int o2::itsmft::ChipStat::getAPECode ( uint8_t  c,
bool &  ft 
)
inlinestatic

Definition at line 171 of file DecodingStat.h.

◆ getAPENonCritical()

static int o2::itsmft::ChipStat::getAPENonCritical ( uint8_t  c)
inlinestatic

Definition at line 162 of file DecodingStat.h.

◆ getNErrors()

uint32_t ChipStat::getNErrors ( ) const

Definition at line 24 of file DecodingStat.cxx.

◆ print()

void ChipStat::print ( bool  skipNoErr = true,
const std::string &  pref = "FEEID" 
) const

print chip decoding statistics

Definition at line 60 of file DecodingStat.cxx.

Member Data Documentation

◆ ErrActions

constexpr std::array<uint32_t, NErrorsDefined> o2::itsmft::ChipStat::ErrActions
staticconstexpr

Definition at line 113 of file DecodingStat.h.

◆ ErrNames

constexpr std::array< std::string_view, ChipStat::NErrorsDefined > ChipStat::ErrNames
staticconstexpr

Definition at line 75 of file DecodingStat.h.

◆ errorCounts

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

Definition at line 152 of file DecodingStat.h.

◆ feeID

uint16_t o2::itsmft::ChipStat::feeID = -1

Definition at line 150 of file DecodingStat.h.

◆ nHits

size_t o2::itsmft::ChipStat::nHits = 0

Definition at line 151 of file DecodingStat.h.


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