16#include <gemc/glogging/glogger.h>
58 const std::shared_ptr<GLogger>& log) :
62 log->info(1,
"GReadoutSpecs: timeWindow=", timeWindow,
", gridStartTime=", gridStartTime);
65 [[nodiscard]]
inline double getMaxStep()
const {
return maxStep; }
83 return static_cast<int>(std::floor(( time - gridStartTime ) / timeWindow) + 1);
88static_assert(std::is_trivially_destructible_v<GReadoutSpecs>);
Immutable readout timing specification.
int timeCellIndex(double time) const
Computes the 1-based electronics time-cell index for a given time.
double getMaxStep() const
GReadoutSpecs(const double tw, const double gst, const double ms, const std::shared_ptr< GLogger > &log)
Constructs a GReadoutSpecs object.