Skip to content

Commit 7fe5ab6

Browse files
noferinishahor02
authored andcommitted
fix for TOF calib
1 parent 7ffcf31 commit 7fe5ab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/GlobalTracking/src/MatchTOF.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ int MatchTOF::findFITIndex(int bc, const gsl::span<const o2::ft0::RecPoints>& FI
13531353
}
13541354

13551355
int index = -1;
1356-
int distMax = 0;
1356+
int distMax = 10;
13571357
bool bestQuality = false; // prioritize FT0 BC with good quality (FT0-AC + vertex) to remove umbiguity in Pb-Pb (not a strict cut because inefficient in pp)
13581358
const int distThr = 8;
13591359

@@ -1369,8 +1369,8 @@ int MatchTOF::findFITIndex(int bc, const gsl::span<const o2::ft0::RecPoints>& FI
13691369
int bct0 = (ir.orbit - firstOrbit) * o2::constants::lhc::LHCMaxBunches + ir.bc;
13701370
int dist = bc - bct0;
13711371

1372-
bool worseDistance = dist < 0 || dist > distThr || dist < distMax;
1373-
if (worseDistance && (!quality || bestQuality)) { // discard if BC is later than the one selected, but is has a better quality
1372+
bool worseDistance = dist < 0 || dist > distThr || dist > distMax;
1373+
if (worseDistance) { // discard if BC is not in the proper range or it is worse than the one already found
13741374
continue;
13751375
}
13761376

0 commit comments

Comments
 (0)