From 4bcb31df18cf73d1e97253d3172b3639089db6ae Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Thu, 29 Jun 2023 14:35:27 +0000
Subject: [PATCH] CbmStsDigi: Remove assert from constructor.

---
 core/data/sts/CbmStsDigi.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/core/data/sts/CbmStsDigi.h b/core/data/sts/CbmStsDigi.h
index ab50018657..458abe19fc 100644
--- a/core/data/sts/CbmStsDigi.h
+++ b/core/data/sts/CbmStsDigi.h
@@ -58,12 +58,8 @@ public:
    ** @param  time     Measurement time [ns]
    ** @param  charge   Charge [ADC units]
    **/
-  XPU_D CbmStsDigi(int32_t address, int32_t channel, double time, uint16_t charge)
+  XPU_D CbmStsDigi(int32_t address, int32_t channel, uint32_t time, uint16_t charge)
   {
-    // StsDigi is not able to store negative timestamps.
-    assert(time >= 0);
-    // StsDigi has a maximal time range of ~2.1s (2 147 483 647 ns).
-    assert(time <= kMaxTimestamp);
     PackAddressAndTime(address, time);
     PackChannelAndCharge(channel, charge);
   }
-- 
GitLab