System time offsets for unpackers in cbm::algo.
Implemented global system time offsets for all unpackers in cbm::algo.
The offsets are applied on a "per Elink" basis for each detector except TRD2D, since it already had a "DaqOffset" parameter for each ASIC, and since the "fSystemOffset" in the original unpacker used a different unit system than the "DaqOffset".
The values are filled in Unpack::Init()
alongside all other parameters. Unlike the other parameters however, the values are not read from the ReadoutConfig
classes, but from a std::map<fles::SubsystemIdentifier, int32_t>
, which is declared in Unpack.h
. This map as of now contains default values, which are taken from run_unpack_tsa.C
and are appropriate for are appropriate for run 2391
. Passing this map to the constructor of Unpack
instead would be straight-forward.