Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mvtx::ChipStat Struct Reference

#include <online_distribution/blob/master/newbasic/mvtx_decoder/DecodingStat.h>

+ Collaboration diagram for mvtx::ChipStat:

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, APE_RESERVED_F3,
  APE_DET_TIMEOUT, APE_OOT_START, APE_PROTOCOL_ERROR, APE_LANE_FIFO_OVERFLOW_ERROR,
  APE_FSM_ERROR, APE_OCCUPANCY_RATE_LIMIT, APE_OCCUPANCY_RATE_LIMIT_2, APE_LANE_PROTOCOL_ERROR,
  APE_RESERVED_FC, APE_ERROR_NON_CRITICAL_BYTE, APE_OOT_NON_CRITICAL, WrongDColOrder,
  InterleavedChipData, TruncatedBuffer, TrailerAfterHeader, NErrorsDefined
}
 

Public Member Functions

 ChipStat ()=default
 
 ChipStat (uint16_t _feeID)
 
void clear ()
 
uint32_t getNErrors () const
 
uint32_t addErrors (uint32_t mask, uint16_t chID, int verbosity)
 print link decoding statistics
 
uint32_t addErrors (const ChipPixelData &d, int verbosity)
 print link decoding statistics
 
void print (bool skipNoErr=true, const std::string &pref="FEEID") const
 print chip decoding statistics
 

Static Public Member Functions

static int getAPENonCritical (uint8_t c)
 
static int getAPECode (uint8_t c, bool &ft)
 

Public Attributes

const std::array< const
std::string, NErrorsDefined
ErrNames
 
uint16_t feeID = -1
 
size_t nHits = 0
 
std::array< uint32_t,
NErrorsDefined
errorCounts = {}
 

Static Public Attributes

static constexpr std::array
< uint32_t, NErrorsDefined
ErrActions
 

Detailed Description

Definition at line 19 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 19 of file DecodingStat.h

Member Enumeration Documentation

Enumerator:
ErrActNone 
ErrActPropagate 
ErrActDump 

Definition at line 20 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 20 of file DecodingStat.h

Enumerator:
BusyViolation 
DataOverrun 
Fatal 
BusyOn 
BusyOff 
TruncatedChipEmpty 
TruncatedChipHeader 
TruncatedRegion 
TruncatedLondData 
WrongDataLongPattern 
NoDataFound 
UnknownWord 
RepeatingPixel 
WrongRow 
APE_STRIP 
APE_RESERVED_F3 
APE_DET_TIMEOUT 
APE_OOT_START 
APE_PROTOCOL_ERROR 
APE_LANE_FIFO_OVERFLOW_ERROR 
APE_FSM_ERROR 
APE_OCCUPANCY_RATE_LIMIT 
APE_OCCUPANCY_RATE_LIMIT_2 
APE_LANE_PROTOCOL_ERROR 
APE_RESERVED_FC 
APE_ERROR_NON_CRITICAL_BYTE 
APE_OOT_NON_CRITICAL 
WrongDColOrder 
InterleavedChipData 
TruncatedBuffer 
TrailerAfterHeader 
NErrorsDefined 

Definition at line 26 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 26 of file DecodingStat.h

Constructor & Destructor Documentation

mvtx::ChipStat::ChipStat ( )
default
mvtx::ChipStat::ChipStat ( uint16_t  _feeID)
inline

Definition at line 136 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 136 of file DecodingStat.h

Member Function Documentation

uint32_t ChipStat::addErrors ( uint32_t  mask,
uint16_t  chID,
int  verbosity 
)

print link decoding statistics

Definition at line 30 of file DecodingStat.cxx.

View newest version in sPHENIX GitHub at line 30 of file DecodingStat.cxx

References ErrActDump, ErrActions, ErrActPropagate, errorCounts, i, and NErrorsDefined.

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

print link decoding statistics

Definition at line 50 of file DecodingStat.cxx.

View newest version in sPHENIX GitHub at line 50 of file DecodingStat.cxx

References ErrActDump, ErrActions, ErrActPropagate, errorCounts, mvtx::ChipPixelData::getErrorFlags(), i, and NErrorsDefined.

+ Here is the call graph for this function:

void mvtx::ChipStat::clear ( )
inline

Definition at line 138 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 138 of file DecodingStat.h

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

Definition at line 153 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 153 of file DecodingStat.h

References APE_STRIP.

static int mvtx::ChipStat::getAPENonCritical ( uint8_t  c)
inlinestatic

Definition at line 144 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 144 of file DecodingStat.h

References APE_STRIP.

uint32_t ChipStat::getNErrors ( ) const

Definition at line 19 of file DecodingStat.cxx.

View newest version in sPHENIX GitHub at line 19 of file DecodingStat.cxx

References errorCounts, i, and NErrorsDefined.

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

print chip decoding statistics

Definition at line 72 of file DecodingStat.cxx.

View newest version in sPHENIX GitHub at line 72 of file DecodingStat.cxx

References errorCounts, i, and NErrorsDefined.

Member Data Documentation

constexpr std::array< uint32_t, ChipStat::NErrorsDefined > ChipStat::ErrActions
static

Definition at line 99 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 99 of file DecodingStat.h

Referenced by addErrors().

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

Definition at line 64 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 64 of file DecodingStat.h

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

Definition at line 134 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 134 of file DecodingStat.h

Referenced by addErrors(), getNErrors(), and print().

uint16_t mvtx::ChipStat::feeID = -1

Definition at line 132 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 132 of file DecodingStat.h

size_t mvtx::ChipStat::nHits = 0

Definition at line 133 of file DecodingStat.h.

View newest version in sPHENIX GitHub at line 133 of file DecodingStat.h


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