Skip to content
Snippets Groups Projects
Commit e943bca1 authored by Alexandru Bercuci's avatar Alexandru Bercuci Committed by Pierre-Alain Loizeau
Browse files

add system time offset when calculating digi time

parent 1f953c3c
No related branches found
No related tags found
1 merge request!611add system time offset when calculating digi time
Pipeline #14443 passed
...@@ -280,7 +280,7 @@ bool CbmTrdUnpackAlgoFasp2D::unpack(const fles::Timeslice* ts, std::uint16_t ico ...@@ -280,7 +280,7 @@ bool CbmTrdUnpackAlgoFasp2D::unpack(const fles::Timeslice* ts, std::uint16_t ico
// Cast required to silence a warning on macos (there a uint64_t is a llu) // Cast required to silence a warning on macos (there a uint64_t is a llu)
if (VERBOSE) printf("time start %lu\n", static_cast<size_t>(msdesc.idx)); if (VERBOSE) printf("time start %lu\n", static_cast<size_t>(msdesc.idx));
// define time wrt start of time slice in TRD/FASP clks [80 MHz] // define time wrt start of time slice in TRD/FASP clks [80 MHz]
fTime[0] = ULong64_t((msdesc.idx - fTsStartTime) / 12.5); fTime[0] = ULong64_t((msdesc.idx - fTsStartTime - fSystemTimeOffset) / 12.5);
// Get the µslice size in bytes to calculate the number of completed words // Get the µslice size in bytes to calculate the number of completed words
auto mssize = msdesc.size; auto mssize = msdesc.size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment