Skip to content

Commit c4796cb

Browse files
martenoledavidrohr
authored andcommitted
Update TRD digit and tracklet print methods
1 parent d458a4a commit c4796cb

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

DataFormats/Detectors/TRD/src/Digit.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ADC_t Digit::getADCmax(int& idx) const
7070

7171
std::ostream& operator<<(std::ostream& stream, const Digit& d)
7272
{
73-
stream << "Digit Det: " << d.getDetector() << " ROB: " << d.getROB() << " MCM: " << d.getMCM() << " Channel: " << d.getChannel() << " ADCs:";
73+
stream << "Digit Det: " << HelperMethods::getSector(d.getDetector()) << "_" << HelperMethods::getStack(d.getDetector()) << "_" << HelperMethods::getLayer(d.getDetector()) << " pad row: " << d.getPadRow() << " pad column: " << d.getPadCol() << " Channel: " << d.getChannel() << " ADCs:";
7474
for (int i = 0; i < constants::TIMEBINS; i++) {
7575
stream << "[" << d.getADC()[i] << "]";
7676
}

DataFormats/Detectors/TRD/src/Tracklet64.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "DataFormatsTRD/Tracklet64.h"
1313
#include "DataFormatsTRD/Constants.h"
14+
#include "DataFormatsTRD/HelperMethods.h"
1415

1516
#include "fairlogger/Logger.h"
1617
#include <iostream>
@@ -25,8 +26,8 @@ using namespace constants;
2526

2627
void Tracklet64::print() const
2728
{
28-
LOGF(info, "trackletWord(0x%x), hcid(%i), row(%i), col(%i), position(%i), slope(%i), pid(%i), q0(%i), q1(%i), q2(%i)",
29-
getTrackletWord(), getHCID(), getPadRow(), getColumn(), getPosition(), getSlope(), getPID(), getQ0(), getQ1(), getQ2());
29+
LOGF(info, "%02i_%i_%i, row(%i), col(%i), position(%i), slope(%i), pid(%i), q0(%i), q1(%i), q2(%i)",
30+
HelperMethods::getSector(getDetector()), HelperMethods::getStack(getDetector()), HelperMethods::getLayer(getDetector()), getPadRow(), getColumn(), getPosition(), getSlope(), getPID(), getQ0(), getQ1(), getQ2());
3031
}
3132

3233
#ifndef GPUCA_GPUCODE_DEVICE

0 commit comments

Comments
 (0)