Skip to content

Commit f60c4c4

Browse files
authored
Update RecoContainer.cxx
1 parent f4a478c commit f60c4c4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

DataFormats/Detectors/GlobalTracking/src/RecoContainer.cxx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,7 @@ RecoContainer::GlobalIDSet RecoContainer::getSingleDetectorRefs(GTrackID gidx) c
14401440
table[GTrackID::TRD] = parent0.getTrackRef(); // there is no standalone TRD track, so use the index for the ITSTPCTRD track array
14411441
} else if (src == GTrackID::TPCTRDTOF) {
14421442
const auto& parent0 = getTOFMatch(gidx); // TPCTRD : TOF
1443-
const auto& parent1 = getITSTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
1444-
const auto& parent2 = getTPCITSTrack(parent1.getRefGlobalTrackId());
1443+
const auto& parent1 = getTPCTRDTrack<o2::trd::TrackTRD>(parent0.getTrackRef());
14451444
table[GTrackID::TPCTRD] = parent0.getTrackRef();
14461445
table[GTrackID::TPC] = parent1.getRefGlobalTrackId();
14471446
table[GTrackID::TOF] = {unsigned(parent0.getIdxTOFCl()), GTrackID::TOF};
@@ -1547,8 +1546,6 @@ const o2::dataformats::MCTruthContainer<o2::emcal::MCLabel>* RecoContainer::getE
15471546
void RecoContainer::getTrackTimeITSTPCTRDTOF(GTrackID gid, float& t, float& tErr) const
15481547
{
15491548
const auto& match = getITSTPCTRDTOFMatches()[gid];
1550-
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC-TRD track
1551-
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
15521549
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
15531550
tErr = 0.010f;
15541551
}
@@ -1557,8 +1554,6 @@ void RecoContainer::getTrackTimeITSTPCTRDTOF(GTrackID gid, float& t, float& tErr
15571554
void RecoContainer::getTrackTimeTPCTRDTOF(GTrackID gid, float& t, float& tErr) const
15581555
{
15591556
const auto& match = getTPCTRDTOFMatches()[gid];
1560-
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC-TRD track
1561-
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
15621557
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
15631558
tErr = 0.010f;
15641559
}
@@ -1567,8 +1562,6 @@ void RecoContainer::getTrackTimeTPCTRDTOF(GTrackID gid, float& t, float& tErr) c
15671562
void RecoContainer::getTrackTimeITSTPCTOF(GTrackID gid, float& t, float& tErr) const
15681563
{
15691564
const auto& match = getITSTPCTOFMatches()[gid];
1570-
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC track
1571-
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
15721565
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
15731566
tErr = 0.010f;
15741567
}

0 commit comments

Comments
 (0)