Skip to content

Commit 7ead73a

Browse files
committed
reading TOF time from matchInfo instead of clusters
1 parent 6b1a12e commit 7ead73a

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

DataFormats/Detectors/GlobalTracking/include/DataFormatsGlobalTracking/RecoContainerCreateTracksVariadic.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ void o2::globaltracking::RecoContainer::createTracksVariadic(T creator, GTrackID
150150
const auto& match = matchesITSTPCTRDTOF[i];
151151
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC-TRD track
152152
// no need to check isUsed: by construction this ITS-TPC-TRD was not used elsewhere
153-
const auto& tofCl = tofClusters[match.getTOFClIndex()];
154-
float timeTOFMUS = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
153+
// const auto& tofCl = tofClusters[match.getTOFClIndex()];
154+
float timeTOFMUS = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
155155
const float timeErr = 0.010f; // assume 10 ns error FIXME
156156
if (creator(tracksITSTPCTRD[gidx.getIndex()], {i, currentSource}, timeTOFMUS, timeErr)) {
157157
flagUsed(gidx); // flag used ITS-TPC-TRD tracks
@@ -170,9 +170,9 @@ void o2::globaltracking::RecoContainer::createTracksVariadic(T creator, GTrackID
170170
}
171171
for (unsigned i = 0; i < matchesTPCTRDTOF.size(); i++) {
172172
const auto& match = matchesTPCTRDTOF[i];
173-
auto gidx = match.getTrackRef(); // this should be corresponding TPC-TRD track
174-
const auto& tofCl = tofClusters[match.getTOFClIndex()];
175-
float timeTOFMUS = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
173+
auto gidx = match.getTrackRef(); // this should be corresponding TPC-TRD track
174+
// const auto& tofCl = tofClusters[match.getTOFClIndex()];
175+
float timeTOFMUS = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
176176
const float timeErr = 0.010f; // assume 10 ns error FIXME
177177
if (creator(tracksTPCTRD[gidx.getIndex()], {i, currentSource}, timeTOFMUS, timeErr)) {
178178
flagUsed(gidx); // flag used TPC-TRD tracks
@@ -223,8 +223,8 @@ void o2::globaltracking::RecoContainer::createTracksVariadic(T creator, GTrackID
223223
continue;
224224
}
225225
// no need to check isUsed: by construction this ITS-TPC was not used elsewhere
226-
const auto& tofCl = tofClusters[match.getTOFClIndex()];
227-
float timeTOFMUS = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
226+
// const auto& tofCl = tofClusters[match.getTOFClIndex()];
227+
float timeTOFMUS = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
228228
const float timeErr = 0.010f; // assume 10 ns error FIXME
229229
if (creator(tracksTPCITS[gidx.getIndex()], {i, currentSource}, timeTOFMUS, timeErr)) {
230230
flagUsed(gidx); // flag used ITS-TPC tracks

DataFormats/Detectors/GlobalTracking/src/RecoContainer.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,8 +1491,8 @@ void RecoContainer::getTrackTimeITSTPCTRDTOF(GTrackID gid, float& t, float& tErr
14911491
{
14921492
const auto& match = getITSTPCTRDTOFMatches()[gid];
14931493
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC-TRD track
1494-
const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1495-
t = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
1494+
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1495+
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
14961496
tErr = 0.010f;
14971497
}
14981498

@@ -1501,8 +1501,8 @@ void RecoContainer::getTrackTimeTPCTRDTOF(GTrackID gid, float& t, float& tErr) c
15011501
{
15021502
const auto& match = getTPCTRDTOFMatches()[gid];
15031503
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC-TRD track
1504-
const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1505-
t = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
1504+
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1505+
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
15061506
tErr = 0.010f;
15071507
}
15081508

@@ -1511,8 +1511,8 @@ void RecoContainer::getTrackTimeITSTPCTOF(GTrackID gid, float& t, float& tErr) c
15111511
{
15121512
const auto& match = getITSTPCTOFMatches()[gid];
15131513
auto gidx = match.getTrackRef(); // this should be corresponding ITS-TPC track
1514-
const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1515-
t = (tofCl.getTime() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
1514+
// const auto& tofCl = getTOFClusters()[match.getTOFClIndex()];
1515+
t = (match.getSignal() - match.getLTIntegralOut().getTOF(o2::track::PID::Pion)) * PS2MUS; // tof time in \mus, FIXME: account for time of flight to R TOF
15161516
tErr = 0.010f;
15171517
}
15181518

0 commit comments

Comments
 (0)