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
This is not tested yet.
What is not clear, also, is how to retrieve the timestamp of the current TF,
which is needed to verify if the latest calib entry available is too old.
For now I just used a "placeholder".
Also the startTimeValidity of the CCDB object should be passed by the
framework. Now I am still using the dummy workflow (tof-dummy-ccdb).
fixes, but still I get a crash - this commit is to share with others
Next try... Still not working
Now working
Copy file name to clipboardExpand all lines: Detectors/TOF/calibration/src/TOFChannelCalibrator.cxx
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -39,13 +39,18 @@ void TOFChannelData::fill(const gsl::span<const o2::dataformats::CalibInfoTOF> d
39
39
{
40
40
// fill container
41
41
for (int i = data.size(); i--;) {
42
-
auto dt = data[i].getDeltaTimePi();
43
42
auto ch = data[i].getTOFChIndex();
44
43
int sector = ch / o2::tof::Geo::NPADSXSECTOR;
45
44
int chInSect = ch % o2::tof::Geo::NPADSXSECTOR;
46
-
mHisto[sector](dt, chInSect);
45
+
auto dt = data[i].getDeltaTimePi();
46
+
auto tot = data[i].getTot();
47
+
// 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
48
+
auto corr = mCalibTOFapi->getTimeCalibration(ch, tot); // we take into account LHCphase, offsets and time slewing
0 commit comments