From b801618bf7fde35fe3d72877c736f5927661a746 Mon Sep 17 00:00:00 2001 From: Pascal Raisig <praisig@ikf.uni-frankfurt.de> Date: Wed, 21 Jul 2021 15:58:36 +0200 Subject: [PATCH] Fix variable types for system time offsets --- reco/base/CbmRecoUnpackAlgo.tmpl | 2 +- reco/base/CbmRecoUnpackConfig.tmpl | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/reco/base/CbmRecoUnpackAlgo.tmpl b/reco/base/CbmRecoUnpackAlgo.tmpl index 639dfd1553..594075b390 100644 --- a/reco/base/CbmRecoUnpackAlgo.tmpl +++ b/reco/base/CbmRecoUnpackAlgo.tmpl @@ -347,7 +347,7 @@ public: void SetParFilesBasePath(std::string value) { fParFilesBasePath = value; } /** @brief Set the global system time offset @remark in princible this should go to parameters */ - void SetSystemTimeOffset(size_t value) { fSystemTimeOffset = value; } + void SetSystemTimeOffset(int32_t value) { fSystemTimeOffset = value; } /** @brief Set the start time of the current TS */ void SetTsStartTime(size_t value) { fTsStartTime = value; } diff --git a/reco/base/CbmRecoUnpackConfig.tmpl b/reco/base/CbmRecoUnpackConfig.tmpl index 9f16717fe2..421c709ec8 100644 --- a/reco/base/CbmRecoUnpackConfig.tmpl +++ b/reco/base/CbmRecoUnpackConfig.tmpl @@ -101,7 +101,11 @@ protected: /** @brief Decision if the info msgs are supposed to be stored to a branch. */ bool fIsMC = false; - size_t fSystemTimeOffset = 0; + /** + * @brief Time offset for the system + * @todo This should be module and channel dependent and included into the asic parameters + */ + int32_t fSystemTimeOffset = 0; /** @brief Use this function to implement additional actions to be called once per TS, e.g. needed if more than the default output vector is used. */ virtual void reset() { return; }; @@ -156,7 +160,7 @@ public: void Init(FairRootManager* ioman) { LOG(info) << fName << "::Init() ---------------------------------"; - + if (fDoWriteOutput) { fOutputVec = new std::vector<TOutput>(); @@ -269,7 +273,7 @@ public: void SetParFilesBasePath(std::string value) { fParFilesBasePath = value; } /** @brief Set the global system time offset @remark in princible this should go to parameters */ - void SetSystemTimeOffset(size_t value) { fSystemTimeOffset = value; } + void SetSystemTimeOffset(int32_t value) { fSystemTimeOffset = value; } protected: /** -- GitLab