Closed wdconinc closed 2 years ago
For ILC and CLIC studies, we always do the overlay in the digitisation stage independent of the simulation. So at least I am not aware of anything in DD4hep that does this.
We'd been considering doing this at the digitization stage too, but that opens up a whole different set of issue that I'd be curious about too:
For CLIC we use the overlaytiming processor: https://github.com/iLCSoft/Overlay/blob/master/src/OverlayTiming.cc (possibly with the k4MarlinWrapper for a little longer)
I think the question was answered, and no development in DD4hep is foreseen, so closing.
In the EIC we are anticipating the need of overlaying multiple event generator input files, in particular combining DIS events from Pythia8 with background event distributions from other generators. This is similar to event stacking to study pile-up (which I think is what ddsim already does when multiple input files are specified, with the Geant4InteractionMerger), but differs somewhat since we would want to weight multiple input files differently. Instead of:
we'd want something like
to pick with probability 1 an event from input file 1, and pick with probability 0.1 an event from input file 2.
Is there a way to achieve this already in ddsim or using existing plugins, and is there possibly an example or some code you could point us to?