Skip to content

Commit de64733

Browse files
author
jokonig
committed
[PWGJE,EMCAL-568] Fix mistake in gain calib shift
- paramsOld are the desired parameters, hence, the data has to be corrected using paramsOld/paramsNew - Fixes #11935
1 parent d8b3775 commit de64733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGJE/TableProducer/emcalCorrectionTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ struct EmcalCorrectionTask {
10471047
uint64_t tsNew = 1734853602000; // timestamp corresponding to new gain calib object (new cell compression)
10481048
o2::emcal::GainCalibrationFactors* paramsNew = ccdbMgr.getForTimeStamp<o2::emcal::GainCalibrationFactors>("EMC/Calib/GainCalibFactors", tsNew);
10491049
for (uint16_t i = 0; i < mArrGainCalibDiff.size(); ++i) {
1050-
mArrGainCalibDiff[i] = paramsOld->getGainCalibFactors(i) == 0 ? 1. : paramsNew->getGainCalibFactors(i) / paramsOld->getGainCalibFactors(i);
1050+
mArrGainCalibDiff[i] = paramsNew->getGainCalibFactors(i) == 0 ? 1. : paramsOld->getGainCalibFactors(i) / paramsNew->getGainCalibFactors(i);
10511051
}
10521052
}
10531053
};

0 commit comments

Comments
 (0)