|
gdynamicDigitization
|
Immutable readout timing and storage specification. More...
#include <greadoutSpecs.h>
Public Member Functions | |
| 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. | |
| int | timeCellIndex (double time) const |
| Computes the 1-based electronics time-cell index for a given time. | |
Instances of this class are typically constructed by digitization plugins inside defineReadoutSpecs() and then shared as an immutable object for subsequent processing.
Definition at line 34 of file greadoutSpecs.h.
|
inline |
The constructor logs the parameters at verbosity level 1.
| tw | Electronics time window (width of one time cell). |
| gst | Grid start time (time offset for binning). |
| hbs | Hit bitset controlling which hit fields are stored/computed. |
| log | Logger used for informational output. |
Definition at line 57 of file greadoutSpecs.h.
|
inline |
Definition at line 70 of file greadoutSpecs.h.
|
inline |
The current convention returns a 1-based index:
![\[
\mathrm{index} = \left\lfloor \frac{t - \mathrm{gridStartTime}}{\mathrm{timeWindow}} \right\rfloor + 1
\]](form_0.png)
This is commonly used to:
| time | Time value to bin (time unit follows project conventions; commonly ns). |
Definition at line 87 of file greadoutSpecs.h.