|
gdynamicDigitization
|
Specifies the readout electronics parameters. 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 |
| Retrieves the hit bitset. | |
| int | timeCellIndex (double time) const |
| Computes the time cell index for a given time. | |
This class holds parameters such as the electronic readout time-window, grid start time, and the hit bitset. These values are used to determine which information is stored in a hit and to compute the corresponding time cell index.
Definition at line 44 of file greadoutSpecs.h.
|
inline |
This constructor is intended to be called by plugins to set readout specifications.
| tw | The electronic readout time-window. |
| gst | The grid start time. |
| hbs | The hit bitset defining what information to store. |
| log | Pointer to a GLogger instance for logging. |
Definition at line 62 of file greadoutSpecs.h.
|
inline |
Definition at line 76 of file greadoutSpecs.h.
|
inline |
For readout detectors, this function calculates the cell index within the electronic time window. The formula used is:
![\[
\text{cell index} = \left\lfloor \frac{\text{time} - \text{gridStartTime}}{\text{timeWindow}} \right\rfloor + 1
\]](form_0.png)
| time | The time value (e.g., global time from the simulation). |
Definition at line 90 of file greadoutSpecs.h.