From 38347afc947ff4b540fa17fdb73e5d7423af7aea Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Wed, 21 Jul 2021 12:56:18 +0300 Subject: [PATCH] set TRD2D/FASP time reference to the start of the TS --- reco/detectors/trd/unpack/CbmTrdUnpackAlgoFasp2D.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reco/detectors/trd/unpack/CbmTrdUnpackAlgoFasp2D.cxx b/reco/detectors/trd/unpack/CbmTrdUnpackAlgoFasp2D.cxx index 89348bfedf..cf1772e291 100644 --- a/reco/detectors/trd/unpack/CbmTrdUnpackAlgoFasp2D.cxx +++ b/reco/detectors/trd/unpack/CbmTrdUnpackAlgoFasp2D.cxx @@ -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; -- GitLab