Improvements to the DetectorHistogrammer
This MR suggest improvements to the DetectorHistogrammer, adds several histograms and implements a clustering algorithm in order to produce correct cluster distributions also for multiple particles.
Old text:
Setting the amount of particles set in the config lead to all of those particles starting from the exact same position. I don't know whether it's a G4 bug or even wanted. The number of particles went to the GeneratorActionG4. I moved this to the
BeamOn
command, in the DepositionGeant4Module. However, this is handled as multiple "events" and therefore I moved the dispatch of the messages to a separate function, calling it when theBeamOn()
returns.