61 log->info(1,
"GReadoutSpecs: timeWindow=", timeWindow,
", gridStartTime=", gridStartTime,
", hitBitSet=",
88 return static_cast<int>(std::floor((time - gridStartTime) / timeWindow) + 1);
93static_assert(std::is_trivially_destructible_v<GReadoutSpecs>);
Immutable readout timing and storage specification.
int timeCellIndex(double time) const
Computes the 1-based electronics time-cell index for a given time.
GReadoutSpecs(const double tw, const double gst, const HitBitSet hbs, const std::shared_ptr< GLogger > &log)
Constructs a GReadoutSpecs object.
HitBitSet getHitBitSet() const
Returns the configured hit bitset.
std::bitset< NHITBITS > HitBitSet