|
ghit
|
The ghit module provides a compact hit container (GHit) for storing step-by-step and aggregated information from detector simulations.
A GHit records per-step information unconditionally:
Steps with the same detector-cell identity and discriminator accumulate into one GHit. Step positions, times, energy deposits, and track metadata remain aligned by vector index, while steps in neighboring cells or with a different discriminator form separate hits.
Derived values, such as total deposited energy and time extent, are calculated from the retained step vectors. Digitizers can therefore inspect either the raw step sequence or the summarized hit view.
GHit : hit container that accumulates per-step vectors and provides lazy derived quantities.The module ships with an example program:
GTouchable, creates a GHit, generates randomized test hits, and compares them using GHit::is_same_hit().Author: © Maurizio Ungaro
e-mail: ungar.nosp@m.o@jl.nosp@m.ab.or.nosp@m.g
glogger. Logging in the provided example is performed using GLogger.