9#include "pxd/dataobjects/PXDErrorFlags.h"
12const Belle2::PXD::PXDError::PXDErrorFlags Belle2::PXD::PXDError::getVerboseMask(
void) {
return Belle2::PXD::PXDError::PXDErrorFlags();};
14const Belle2::PXD::PXDError::PXDErrorFlags Belle2::PXD::PXDError::getSilenceMask(
void) {
return ~getVerboseMask();};
16const std::string& Belle2::PXD::PXDError::getPXDBitErrorName(
int bit)
18 static const std::string undefined(
"undefined");
20 static const std::string error_name[ONSEN_MAX_TYPE_ERR] = {
22 "Event structure problem",
"Frame TrigNr vs ONSEN Trigger Frame mismatch",
"Frame TrigNr vs EvtMeta mismatch",
"ONSEN Trigger is not first frame",
24 "DHC_END missing/wrong placed",
"NR of Frames too small",
"ROI packet invalid size",
"DATA outside of DHE",
26 "DHC_START is not second frame",
"DHE IDs have wrong order in DHC",
"Fixed size frame wrong size",
"DHE CRC Error:",
28 "Unknown DHC type",
"Header Type invalid for Frame Type",
"Event Header Full Packet Size Error",
"Event Header Magic Error",
30 "Event Header Frame Count Error",
"Event header Frame Size Error",
"HLTROI Magic Error",
"Merger HLT/DATCON TrigNr Mismatch",
32 "DHP Size too small",
"DHP-DHE DHEID mismatch",
"DHP-DHE Port mismatch",
"DHP Pix w/o row",
34 "DHE START/END ID mismatch",
"DHE ID mismatch of START and this frame",
"DHE_START w/o prev END",
"Nr PXD data ==0",
36 "Missing Datcon",
"NO DHC data for Trigger",
"DHE active mismatch",
"DHP active mismatch",
38 "SendUnfiltered but Filtered Frame Type",
"!SendUnfiltered but Unfiltered Frame Type",
"DHP has double header",
"Error bit in frame header set",
40 "Error bit in GHOST frame header not set",
"Suspicious Padding/Checksum in DHP ZSP",
"DHC Words in Event mismatch",
"DHE Words in Event mismatch",
42 "Row Overflow/out of bounds >=768",
"DHP Frames not continuesly",
"DHP Frame numbers of different frames differ>1",
"DHP Frame differ from DHE Frame by >1",
44 "DHE ID is invalid",
"DHC ID Start/End Mismatch",
"DHE End w/o Start",
"double DHC End",
46 "DHC vs EvtMeta mismatch for TriggerNr",
"DHE vs EvtMeta mismatch for TriggerNr",
"DHP COL overflow (unconnected drain lines)",
"Unexpected (=unsupported) Frame Type",
48 "DHC vs EvtMeta mismatch for Exp/Run/Subrun",
"DHC vs EvtMeta mismatch for TimeTag",
"ONS_TRG: HLT vs EvtMeta mismatch",
"ONS_TRG: DATCON vs EvtMeta mismatch",
50 "TriggerGate differ for DHEs in event",
"Trigger FrameNr differ for DHEs in event",
"DHP row w/o Pix",
"DHE_START is not third frame",
52 "Fake and NoFake frames for DHH",
"Unusable Data in Module",
"DHE or DHC END error bits set",
"DHH OT FW Misc Error"
54 if (bit < 0 || bit >= ONSEN_MAX_TYPE_ERR)
return undefined;
55 return error_name[bit];