Skip to content

Commit 6d80cc3

Browse files
committed
Make ITS/MFT raw data logging more informative
1 parent f0723d7 commit 6d80cc3

File tree

1 file changed

+4
-4
lines changed
  • Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction

1 file changed

+4
-4
lines changed

Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/GBTLink.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct GBTLink {
155155
long offs = sizeof(RDH);
156156
char* ptrR = ((char*)ptr) + sizeof(RDH);
157157
while (offs < szd) {
158-
const o2::itsmft::GBTWord* w = reinterpret_cast<const o2::itsmft::GBTWord*>(ptrR);
158+
const GBTWord* w = reinterpret_cast<const o2::itsmft::GBTWord*>(ptrR);
159159
std::string com = fmt::format(" | FeeID:{:#06x} offs: {:6} ", feeID, offs);
160160
if (w->isData()) {
161161
com += "data word";
@@ -164,12 +164,12 @@ struct GBTLink {
164164
} else if (w->isDataTrailer()) {
165165
com += "data trailer";
166166
} else if (w->isTriggerWord()) {
167-
com += "trigger word";
167+
const GBTTrigger* trw = (const GBTTrigger*)w;
168+
com += fmt::format("trigger word bc:{} orbit:{} noData:{} int:{} cont:{}", trw->bc, trw->orbit, trw->noData, trw->internal, trw->continuation);
168169
} else if (w->isDiagnosticWord()) {
169170
com += "diag word";
170171
} else if (w->isCalibrationWord()) {
171-
com += "calib word";
172-
com += fmt::format(" #{}", ((const GBTCalibration*)w)->calibCounter);
172+
com += fmt::format("calib word count:{:5} data:{:#08x}", ((const GBTCalibration*)w)->calibCounter, ((const GBTCalibration*)w)->calibUserField);
173173
} else if (w->isCableDiagnostic()) {
174174
com += "cable diag word";
175175
} else if (w->isStatus()) {

0 commit comments

Comments
 (0)