Skip to content
Snippets Groups Projects
Commit 4bcb31df authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Volker Friese
Browse files

CbmStsDigi: Remove assert from constructor.

parent ad0346b7
No related branches found
No related tags found
1 merge request!1227CbmStsDigi: Remove assert from constructor.
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment