Skip to content

Commit

Permalink
TRD most probably track time is trigger time
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole authored and shahor02 committed Oct 14, 2023
1 parent bdbbb05 commit a66ed47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,11 @@ void o2::globaltracking::RecoContainer::createTracksVariadic(T creator, GTrackID
flagUsed(trc.getRefGlobalTrackId()); // flag seeding ITS-TPC track
continue;
}
float t0 = t0Trig, t0Err = 5.e-3; // 5ns nominal error
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t0 += trc.getPileUpTimeShiftMUS();
float t0Err = 5.e-3; // 5ns nominal error
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t0Err += trc.getPileUpTimeErrorMUS();
}
if (creator(trc, {i, currentSource}, t0, t0Err)) { // assign 1ns error to BC
if (creator(trc, {i, currentSource}, t0Trig, t0Err)) { // assign 1ns error to BC
flagUsed(trc.getRefGlobalTrackId()); // flag seeding ITS-TPC track
}
}
Expand Down Expand Up @@ -249,12 +248,11 @@ void o2::globaltracking::RecoContainer::createTracksVariadic(T creator, GTrackID
flagUsed(trc.getRefGlobalTrackId()); // flag seeding TPC track
continue;
}
float t0 = t0Trig, t0Err = 5.e-3; // 5ns nominal error
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t0 += trc.getPileUpTimeShiftMUS();
float t0Err = 5.e-3; // 5ns nominal error
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t0Err += trc.getPileUpTimeErrorMUS();
}
if (creator(trc, {i, currentSource}, t0, t0Err)) { // assign 1ns error to BC
if (creator(trc, {i, currentSource}, t0Trig, t0Err)) { // assign 1ns error to BC
flagUsed(trc.getRefGlobalTrackId()); // flag seeding TPC track
}
}
Expand Down
2 changes: 0 additions & 2 deletions DataFormats/Detectors/GlobalTracking/src/RecoContainer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,6 @@ void RecoContainer::getTrackTimeITSTPCTRD(GTrackID gid, float& t, float& tErr) c
tErr = 5.e-3;
const auto& trc = getITSTPCTRDTracks<o2::trd::TrackTRD>()[gid];
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t += trc.getPileUpTimeShiftMUS();
tErr += trc.getPileUpTimeErrorMUS();
}
}
Expand All @@ -1539,7 +1538,6 @@ void RecoContainer::getTrackTimeTPCTRD(GTrackID gid, float& t, float& tErr) cons
tErr = 5.e-3;
const auto& trc = getTPCTRDTracks<o2::trd::TrackTRD>()[gid];
if (trc.hasPileUpInfo()) { // distance to farthest collision within the pileup integration time
t += trc.getPileUpTimeShiftMUS();
tErr += trc.getPileUpTimeErrorMUS();
}
}
Expand Down

0 comments on commit a66ed47

Please sign in to comment.