You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DataFormats/Detectors/TRD/include/DataFormatsTRD/RawDataStats.h
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,9 @@ enum ParsingErrors {
44
44
TrackletDataWrongOrdering, // the tracklet data is not arriving in increasing MCM order
45
45
TrackletDataDuplicateMCM, // we see more than one TrackletMCMHeader for the same MCM
46
46
TrackletNoTrackletEndMarker, // got to the end of the buffer with out finding a tracklet end marker.
47
+
TrackletNoSecondEndMarker, // we expected to see a second tracklet end marker, but found something else instead
48
+
TrackletMCMDataFailure, // invalid word for TrackletMCMData detected
49
+
TrackletDataMissing, // we expected tracklet data but got an endmarker instead
47
50
TrackletExitingNoTrackletEndMarker, // got to the end of the buffer exiting tracklet parsing with no tracklet end marker
48
51
UnparsedTrackletDataRemaining, // the tracklet parsing has finished correctly, but there is still data left on the link (CRU puts incorrect link size or corrupt data?)
49
52
UnparsedDigitDataRemaining, // the digit parsing has finished correctly, but there is still data left on the link (CRU puts incorrect link size or corrupt data? RDH > 8kByte before?)
if (mCurrentHalfCRUHeader.EventType == ETYPEPHYSICSTRIGGER &&
518
513
endOfCurrentLink - mHBFoffset32 >= 8) {
514
+
/*
515
+
// disabled for the same reason as for the warning after the digits parsing below
519
516
if (mMaxWarnPrinted > 0) {
520
-
LOGF(warn, "After successfully parsing the tracklet data for link %i there are %i words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32);
517
+
LOGF(warn, "After successfully parsing the tracklet data for link %i there are %u words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32);
521
518
checkNoWarn();
522
519
}
523
520
incrementErrors(UnparsedTrackletDataRemaining, halfChamberId, fmt::format("On link {} there are {} words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32));
// check if some data is lost (probably due to bug in CRU user logic)
583
581
// we should have max 7 padding words to align the link to 256 bits
582
+
/*
583
+
// due to the current CRU bug this is almost always the case
584
+
// TODO enable warning again when CRU UL is fixed
584
585
if (mMaxWarnPrinted > 0) {
585
-
LOGF(warn, "After successfully parsing the digit data for link %i there are %i words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32);
586
+
LOGF(warn, "After successfully parsing the digit data for link %i there are %u words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32);
586
587
checkNoWarn();
587
588
}
589
+
*/
588
590
incrementErrors(UnparsedDigitDataRemaining, halfChamberId, fmt::format("On link {} there are {} words remaining which did not get parsed", currentlinkindex, endOfCurrentLink - mHBFoffset32));
// format indicates no empty MCM headers are sent, so we should not see an end marker here
922
-
// TODO add error message/counter for QC
923
-
LOGF(warn, "For the MCM Header 0x%08x we expected a tracklet from CPU %i, but got an endmarker instead", mcmHeader.word, iCpu);
913
+
incrementErrors(TrackletDataMissing, hcid, fmt::format("For the MCM Header {:#010x} we expected a tracklet from CPU {}, but got an endmarker instead", mcmHeader.word, iCpu));
924
914
}
925
915
state = StateSecondEndmarker; // we expect a second tracklet end marker to follow
926
916
break;
927
917
}
928
918
if ((currWord & 0x1) == 0x1) {
929
919
// the reserved bit of the trackler MCM data is set
930
-
// TODO add error message/counter for QC
931
-
LOGF(warn, "Invalid word 0x%08x for the expected TrackletMCMData", currWord);
920
+
incrementErrors(TrackletMCMDataFailure, hcid, fmt::format("Invalid word {:#010x} for the expected TrackletMCMData", currWord));
//inputs.emplace_back("linkToHcid", "TRD", "LinkToHcid", 0, o2::framework::Lifetime::Condition, o2::framework::ccdbParamSpec("TRD/Config/LinkToHCIDMapping")); // FIXME: uncomment, when object available in CCDB
0 commit comments