Skip to content

Commit 450d5fb

Browse files
authored
Update onTheFlyTofPid.cxx
1 parent f3a347c commit 450d5fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,10 @@ struct OnTheFlyTofPid {
422422
sumw += w;
423423
}
424424

425-
if (sumw <= 0. || tracks.size() <= 1 || std::sqrt(1. / sumw) > 200.f) {
425+
static constexpr float kMaxEventTimeResolution = 200.f;
426+
if (sumw <= 0. || tracks.size() <= 1 || std::sqrt(1. / sumw) > kMaxEventTimeResolution) {
426427
tzero[0] = 0.; // [ps]
427-
tzero[1] = 200.f; // [ps]
428+
tzero[1] = kMaxEventTimeResolution; // [ps]
428429
return false;
429430
}
430431

0 commit comments

Comments
 (0)