66 const std::shared_ptr<GLogger>& log) :
71 log->info(1,
"GReadoutSpecs: timeWindow=", timeWindow,
", gridStartTime=", gridStartTime,
", hitBitSet=",
82 [[nodiscard]]
inline double getMaxStep()
const {
return maxStep; }
100 return static_cast<int>(std::floor(( time - gridStartTime ) / timeWindow) + 1);
105static_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 double ms, const std::shared_ptr< GLogger > &log)
Constructs a GReadoutSpecs object.
double getMaxStep() const
HitBitSet getHitBitSet() const
Returns the configured hit bitset.
std::bitset< NHITBITS > HitBitSet