Skip to content

Commit

Permalink
Make ITS/MFT raw data logging more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Oct 10, 2024
1 parent f0723d7 commit 6d80cc3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct GBTLink {
long offs = sizeof(RDH);
char* ptrR = ((char*)ptr) + sizeof(RDH);
while (offs < szd) {
const o2::itsmft::GBTWord* w = reinterpret_cast<const o2::itsmft::GBTWord*>(ptrR);
const GBTWord* w = reinterpret_cast<const o2::itsmft::GBTWord*>(ptrR);
std::string com = fmt::format(" | FeeID:{:#06x} offs: {:6} ", feeID, offs);
if (w->isData()) {
com += "data word";
Expand All @@ -164,12 +164,12 @@ struct GBTLink {
} else if (w->isDataTrailer()) {
com += "data trailer";
} else if (w->isTriggerWord()) {
com += "trigger word";
const GBTTrigger* trw = (const GBTTrigger*)w;
com += fmt::format("trigger word bc:{} orbit:{} noData:{} int:{} cont:{}", trw->bc, trw->orbit, trw->noData, trw->internal, trw->continuation);
} else if (w->isDiagnosticWord()) {
com += "diag word";
} else if (w->isCalibrationWord()) {
com += "calib word";
com += fmt::format(" #{}", ((const GBTCalibration*)w)->calibCounter);
com += fmt::format("calib word count:{:5} data:{:#08x}", ((const GBTCalibration*)w)->calibCounter, ((const GBTCalibration*)w)->calibUserField);
} else if (w->isCableDiagnostic()) {
com += "cable diag word";
} else if (w->isStatus()) {
Expand Down

0 comments on commit 6d80cc3

Please sign in to comment.