New Module: DepositionGenerator
This module allows to read primary particles produced by Monte Carlo event generators from files in different data formats, and to emit them to a Geant4 ParticleGun
.
The particles are then tracked through the setup using Geant4, and the resulting energy deposits are converted to DepositedCharge
objects and dispatched to the subsequent simulation chain.
The different file formats can be selected via the model
parameter, the path to the data file has to be provided via the file_name
configuration parameter.
There is one change to the underlying DepositionGeant4
module: we need this new module to be a SequentialModule
to run events in order. Hence, the DepositionGeant4
is now a SequentialModule
but waives the sequence requirement in its constructor. Any derived module that requires a strict sequence has to call waive_sequence_requirement(false)
in its constructor to overwrite this setting.
This is marked as draft because we might want to add a few more formats before publishing, e.g. through HepMC3.