Skip to content

Commit c12a7b9

Browse files
committed
Add print method for MatchInfoTOF
1 parent d76a651 commit c12a7b9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

DataFormats/Reconstruction/include/ReconstructionDataFormats/MatchInfoTOF.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class MatchInfoTOF
4444

4545
o2::track::TrackLTIntegral& getLTIntegralOut() { return mIntLT; }
4646
const o2::track::TrackLTIntegral& getLTIntegralOut() const { return mIntLT; }
47+
void print() const;
4748

4849
private:
4950
float mChi2; // chi2 of the pair track-TOFcluster

DataFormats/Reconstruction/src/MatchInfoTOF.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@
1616
using namespace o2::dataformats;
1717

1818
ClassImp(o2::dataformats::MatchInfoTOF);
19+
20+
void MatchInfoTOF::print() const
21+
{
22+
printf("Match of GlobalID %s and TOF cl %d with chi2 = %.3f\n", getEvIdxTrack().getIndex().asString().c_str(),
23+
getTOFClIndex(), mChi2);
24+
mIntLT.print();
25+
}

0 commit comments

Comments
 (0)