You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/TOF/calibration/src/TOFChannelCalibrator.cxx
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -74,15 +74,18 @@ void TOFChannelData::fill(const gsl::span<const o2::dataformats::CalibInfoTOF> d
74
74
auto tot = data[i].getTot();
75
75
// TO BE DISCUSSED: could it be that the LHCphase is too old? If we ar ein sync mode, it could be that it is not yet created for the current run, so the one from the previous run (which could be very old) is used. But maybe it does not matter much, since soon enough a calibrated LHC phase should be produced
76
76
auto corr = mCalibTOFapi->getTimeCalibration(ch, tot); // we take into account LHCphase, offsets and time slewing
77
-
78
77
auto dtcorr = dt - corr;
79
78
79
+
int used = o2::tof::Utils::addMaskBC(data[i].getMask(), data[i].getTOFChIndex()); // fill the current BC candidate mask and return the one used
80
+
dtcorr -= used * o2::tof::Geo::BC_TIME_INPS;
81
+
80
82
// add calib info for computation of LHC phase
81
83
Utils::addCalibTrack(dtcorr);
82
84
83
-
dtcorr -= Utils::mLHCPhase;
85
+
// uncomment to enable auto correction of LHC phase
0 commit comments