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

Statistics for per-link decoding. More...

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

+ Collaboration diagram for mvtx::GBTLinkDecodingStat:

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, NErrorsDefined
}
 counters for format checks More...
 
enum  BitMaps : int {
  ORBIT = 0, HB = 1, HBr = 2, HC = 3,
  PHYSICS = 4, PP = 5, CAL = 6, SOT = 7,
  EOT = 8, SOC = 9, EOC = 10, TF = 11,
  FE_RST = 12, RT = 13, RS = 14, nBitMap = 15
}
 

Public Member Functions

void clear ()
 
void print (bool skipNoErr=true) const
 print link decoding statistics
 

Public Attributes

const std::array< std::string,
NErrorsDefined
ErrNames
 
const std::array< std::string,
nBitMap
BitMapName
 
uint16_t feeID = 0
 
std::array< uint32_t,
NErrorsDefined
errorCounts = {}
 
std::array< uint32_t, nBitMaptrgBitCounts = {}
 

Detailed Description

Statistics for per-link decoding.

Definition at line 182 of file DecodingStat.h.

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

Member Enumeration Documentation

Enumerator:
ORBIT 
HB 
HBr 
HC 
PHYSICS 
PP 
CAL 
SOT 
EOT 
SOC 
EOC 
TF 
FE_RST 
RT 
RS 
nBitMap 

Definition at line 242 of file DecodingStat.h.

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

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 
NErrorsDefined 

Definition at line 185 of file DecodingStat.h.

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

Member Function Documentation

void mvtx::GBTLinkDecodingStat::clear ( )
inline

Definition at line 287 of file DecodingStat.h.

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

Referenced by mvtx::GBTLink::clear().

+ Here is the caller graph for this function:

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

print link decoding statistics

Definition at line 91 of file DecodingStat.cxx.

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

References errorCounts, i, and NErrorsDefined.

Member Data Documentation

const std::array<std::string, nBitMap> mvtx::GBTLinkDecodingStat::BitMapName
Initial value:
= {
"ORBIT",
"HB",
"HBr",
"HC",
"PHYSICS",
"PP",
"CAL",
"SOT",
"EOT",
"SOC",
"EOC",
"TF",
"FE_RST",
"RT",
"RS"
}

Definition at line 264 of file DecodingStat.h.

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

const std::array<std::string, NErrorsDefined> mvtx::GBTLinkDecodingStat::ErrNames
Initial value:
= {
"Page data 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",
"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",
}

Definition at line 215 of file DecodingStat.h.

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

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

Definition at line 284 of file DecodingStat.h.

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

Referenced by print().

uint16_t mvtx::GBTLinkDecodingStat::feeID = 0

Definition at line 283 of file DecodingStat.h.

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

std::array<uint32_t, nBitMap> mvtx::GBTLinkDecodingStat::trgBitCounts = {}

Definition at line 285 of file DecodingStat.h.

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


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