Commit 38347afc authored by Alexandru Bercuci's avatar Alexandru Bercuci Committed by Pierre-Alain Loizeau
Browse files

set TRD2D/FASP time reference to the start of the TS

parent ee50d9f3
......@@ -147,6 +147,8 @@ bool CbmTrdUnpackAlgoFasp2D::unpack(const fles::Timeslice* ts, std::uint16_t ico
auto msdesc = ts->descriptor(icomp, imslice);
if (VERBOSE) printf("time start %lu\n", msdesc.idx);
// define time wrt start of time slice in TRD/FASP clks [80 MHz]
fTime[0] = ULong64_t((msdesc.idx - fTsStartTime) / 12.5);
// Get the µslice size in bytes to calculate the number of completed words
auto mssize = msdesc.size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment