31#include "ghitConventions.h"
62 GReadoutSpecs(
const double tw,
const double gst,
const HitBitSet hbs,
const std::shared_ptr<GLogger>& log) :
66 log->info(1,
"GReadoutSpecs: timeWindow=", timeWindow,
", gridStartTime=", gridStartTime,
", hitBitSet=",
76 [[nodiscard]]
inline HitBitSet
getHitBitSet()
const {
return hitBitSet; }
90 [[nodiscard]]
inline int timeCellIndex(
double time)
const {
return static_cast<int>(std::floor((time - gridStartTime) / timeWindow) + 1); }
97static_assert(std::is_trivially_destructible_v<GReadoutSpecs>);
Specifies the readout electronics parameters.
int timeCellIndex(double time) const
Computes the 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
Retrieves the hit bitset.