Skip to content

Commit 4ff5a83

Browse files
committed
[PWGDQ] fix time difference computation for match attempts in QA task
The MFT track time was subtracted from itself instead from the MCH time
1 parent 82863ee commit 4ff5a83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGDQ/Tasks/qaMatching.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,8 +2014,8 @@ struct QaMatching {
20142014

20152015
int64_t deltaBc = bcMft - bcMch;
20162016
double deltaBcNS = o2::constants::lhc::LHCBunchSpacingNS * deltaBc;
2017-
double deltaTrackTime = mftTrackInfo.time - mftTrackInfo.time + deltaBcNS;
2018-
double trackTimeResTot = mftTrackInfo.timeRes + mftTrackInfo.timeRes;
2017+
double deltaTrackTime = mftTrackInfo.time - mchTrackInfo.time + deltaBcNS;
2018+
double trackTimeResTot = mftTrackInfo.timeRes + mchTrackInfo.timeRes;
20192019

20202020
if (std::fabs(deltaTrackTime) > trackTimeResTot) {
20212021
continue;

0 commit comments

Comments
 (0)