-
Notifications
You must be signed in to change notification settings - Fork 115
Description
I have a minimalKineticEnergy cut in a truth handler, which disregards particle truth according to some rules. However, the contributions list in the calorimeters still has separate entries for each energy deposit, even when they are from the same particle. Is there any configuration where the contributions can be "collapsed", and duplicate particle contributions aggregated (e.g. energy summed, time averaged or weight-averaged)? The root files are huge when every separate contribution is preserved (20GB per 100 events in my case, and I can see that if I process afterwards to remove duplicates, this reduces by ~70-80%).
For more context:
- I am using a truth handler that is a little more tolerant of retaining details than those currently in
main: https://github.com/murnanedaniel/DD4hep/blob/colliderml/DDG4/plugins/Geant4FullTruthParticleHandler.cpp. However, it still uses the identical approach to keep/discard the particle entry - I am using the not-yet-merged (I believe) branch of Wouter that enables multithreading (https://github.com/wdconinc/DD4hep/tree/ddsim-mt).
- I run the simulation with the attached python file, which consumes a hepmc3 file: ddsim_run.py, and feed it this config: simulation_slurm_config.yaml
I'm not sure if the duplicate hits in the calorimeter are intended or not. But either way, it would be great to be able to switch a flag to condense them down.