From 31e25590e6bb62134693a00e7cbf954ccfbd6873 Mon Sep 17 00:00:00 2001 From: Pascal Raisig <praisig@ikf.uni-frankfurt.de> Date: Mon, 11 Jan 2021 14:21:41 +0100 Subject: [PATCH] Add SetTime function to RawMessage Container --- core/data/trd/CbmTrdRawMessageSpadic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/data/trd/CbmTrdRawMessageSpadic.h b/core/data/trd/CbmTrdRawMessageSpadic.h index 9ed57a56a2..8405411157 100644 --- a/core/data/trd/CbmTrdRawMessageSpadic.h +++ b/core/data/trd/CbmTrdRawMessageSpadic.h @@ -120,6 +120,11 @@ public: /** Returns the full time in nanoseconds */ Double_t GetTime() const { return fFullTime * 62.5; } + /** Set the full time in nanoseconds */ + void SetTime(Double_t setvalue) { + fFullTime = (std::uint64_t)(setvalue / 62.5); + } + /** Returns the value of the sample with the highest value. */ int16_t GetMaxAdc(); -- GitLab