Skip to content

Commit 483f187

Browse files
authored
[Common] [TOF] fix parameters for negative tracks (#8753)
1 parent 59b6e11 commit 483f187

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/TableProducer/PID/pidTOFMerge.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ struct TOFCalibConfig {
206206
const std::string nameShiftPos = metadataInfo.isMC() ? mTimeShiftCCDBPathPosMC : mTimeShiftCCDBPathPos;
207207
updateTimeShift(nameShiftPos, true);
208208
const std::string nameShiftNeg = metadataInfo.isMC() ? mTimeShiftCCDBPathNegMC : mTimeShiftCCDBPathNeg;
209-
updateTimeShift(nameShiftNeg, true);
209+
updateTimeShift(nameShiftNeg, false);
210210

211211
// Calibration object is defined
212212
LOG(info) << "Parametrization at init time:";
@@ -690,7 +690,7 @@ struct tofEventTime {
690690
if constexpr (removeTOFEvTimeBias) {
691691
evTimeMakerTOF.removeBias<Run3TrksWtof::iterator, filterForTOFEventTime>(trk, nGoodTracksForTOF, t0TOF[0], t0TOF[1], 2);
692692
}
693-
if (t0TOF[1] < errDiamond && (maxEvTimeTOF <= 0 || abs(t0TOF[0]) < maxEvTimeTOF)) {
693+
if (t0TOF[1] < errDiamond && (maxEvTimeTOF <= 0 || std::abs(t0TOF[0]) < maxEvTimeTOF)) {
694694
flags |= o2::aod::pidflags::enums::PIDFlags::EvTimeTOF;
695695

696696
weight = 1.f / (t0TOF[1] * t0TOF[1]);
@@ -754,7 +754,7 @@ struct tofEventTime {
754754
evTimeMakerTOF.removeBias<Run3TrksWtof::iterator, filterForTOFEventTime>(trk, nGoodTracksForTOF, et, erret, 2);
755755
}
756756
uint8_t flags = 0;
757-
if (erret < errDiamond && (maxEvTimeTOF <= 0.f || abs(et) < maxEvTimeTOF)) {
757+
if (erret < errDiamond && (maxEvTimeTOF <= 0.f || std::abs(et) < maxEvTimeTOF)) {
758758
flags |= o2::aod::pidflags::enums::PIDFlags::EvTimeTOF;
759759
} else {
760760
et = 0.f;

0 commit comments

Comments
 (0)