Skip to content

Commit 833637e

Browse files
committed
AOD: trd streamer add tof
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 2edb4f3 commit 833637e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,13 @@ void AODProducerWorkflowDPL::addToTRDsExtra(const o2::globaltracking::RecoContai
461461

462462
if (mStreamerFlags[AODProducerStreamerFlags::TRDExtra]) {
463463
const auto& tpctrk = recoData.getTrack<o2::tpc::TrackTPC>(contributorsGID[GIndex::Source::TPC]);
464+
o2::dataformats::MatchInfoTOF tofMtc;
465+
o2::track::TrackParCov toftrk;
466+
toftrk.invalidate();
467+
if (contributorsGID[GIndex::Source::TOF].isIndexSet()) {
468+
tofMtc = recoData.getTOFMatch(trkIdx);
469+
toftrk = recoData.getTrackParamOut(trkIdx);
470+
}
464471
(*mStreamer) << "trdExtra"
465472
<< "dEdx=" << dEdx
466473
<< "eProb=" << trk.getSignal()
@@ -476,6 +483,8 @@ void AODProducerWorkflowDPL::addToTRDsExtra(const o2::globaltracking::RecoContai
476483
<< "cloctracklets=" << cloctrkletsa
477484
<< "tpctrk=" << tpctrk
478485
<< "trdtrk=" << trk
486+
<< "toftrk=" << toftrk
487+
<< "tofMtc=" << tofMtc
479488
<< "globaltrk=" << recoData.getTrack<o2::track::TrackParCov>(trkIdx)
480489
<< "\n";
481490
}

0 commit comments

Comments
 (0)