Skip to content

Commit 13b92a4

Browse files
committed
TRD track refit should not shift time in case of pileup
1 parent 9c3d71d commit 13b92a4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,6 @@ bool TRDGlobalTracking::refitITSTPCTRDTrack(TrackTRD& trk, float timeTRD, o2::gl
525525
int nCl = -1, clEntry = -1, nClRefit = 0, clRefs[14];
526526
float chi2Out = 0, timeZErr = 0.;
527527
bool pileUpOn = trk.hasPileUpInfo(); // distance to farthest collision within the pileup integration time is set
528-
if (pileUpOn) {
529-
timeTRD += trk.getPileUpTimeShiftMUS(); // shift to average pileup position
530-
}
531528
auto geom = o2::its::GeometryTGeo::Instance();
532529
auto matCorr = o2::base::Propagator::MatCorrType(mRec->GetParam().rec.trd.matCorrType);
533530
if (detRefs[GTrackID::ITS].isIndexSet()) { // this is ITS track
@@ -656,10 +653,7 @@ bool TRDGlobalTracking::refitTPCTRDTrack(TrackTRD& trk, float timeTRD, o2::globa
656653
auto detRefs = recoCont->getSingleDetectorRefs(trk.getRefGlobalTrackId());
657654
outerParam = trk;
658655
float chi2Out = 0, timeZErr = 0.;
659-
bool pileUpOn = trk.hasPileUpInfo(); // distance to farthest collision within the pileup integration time is set
660-
if (pileUpOn) {
661-
timeTRD += trk.getPileUpTimeShiftMUS(); // shift to average pileup position
662-
}
656+
bool pileUpOn = trk.hasPileUpInfo(); // distance to farthest collision within the pileup integration time is set
663657
int retVal = mTPCRefitter->RefitTrackAsTrackParCov(outerParam, mTPCTracksArray[detRefs[GTrackID::TPC]].getClusterRef(), (timeTRD + mTPCTDriftOffset) * mTPCTBinMUSInv, &chi2Out, true, false); // outward refit
664658
if (retVal < 0) {
665659
LOG(debug) << "TPC refit outwards failed";

0 commit comments

Comments
 (0)