Change request for online purposes
Hi, I'm opening this issue in order to ask for a change in tools.py. Previous versions of km3db were reading only calibration information from the run table (i.e. PMT time offset, DOM position, DOM rotation), lacking other eventually existing calibrations. However, since for online purposes we are interested on introducing also other calibrations (e.g., PMT status via scal string, that affect the quality of reconstructions as has been show during the last astro ftf meeting), we asked Tamas to adapt km3db such that the detector file returned by km3db automatically includes all calibration sets by extracting these information differently from before, i.e. from the Calibration Manager. To accomodate our request, new versions of km3db now use API v2 to determine the calibration sets (instead of using the run table). This is valid starting from km3db 0.13.0; see here for the changes. However, calibration infos are accessible from the Calibration Manager only at the end of each run, which is not suitable in the context of an online framework, while in the run table pcal, rcal, tcal are available in real-time. For this reason, the best solution we have at the moment for the online system is to retrieve pcal, rcal, tcal from the run table and acal, ccal, scal from the previous run via the Calibration Manager. To this extent, we have created a modified version of tools.py which uses both the tools in km3db v0.12.0 and v0.13.x. It would be useful, for this purpose, to have an updated version of km3db from which both the Calibration Manager and Run Table can be accessed, depending on the purpose, with two different functions.