Skip to content

Conversation

murnanedaniel
Copy link
Contributor

@murnanedaniel murnanedaniel commented Sep 30, 2025

Add random sampling to HepMC3 reader

--- END COMMIT MESSAGE ---

If pile-up and hard scatter are being merged, it can be useful to randomly sample the number of pile-up per hard scatter vertex. This can now be done by passing a sampler to the HepMC3 reader.

This is backward compatible in case no sampler is provided. The number of pileup and hardscatter events is simply fixed, in that case.

@github-actions github-actions bot added the Component - Examples Affects the Examples module label Sep 30, 2025
@github-actions github-actions bot added this to the next milestone Sep 30, 2025
Copy link
Contributor

github-actions bot commented Sep 30, 2025

📊: Physics performance monitoring for 3be4b9e

Full contents

physmon summary

❗️: Downstream build failure

  • eic-shell (cc @acts-project/epic-contacts)

@paulgessinger paulgessinger changed the title Add random sampling to HepMC3 reader feat: Add random sampling to HepMC3 reader Oct 1, 2025
murnanedaniel and others added 9 commits October 1, 2025 13:14
… generators

- Replace inputPath/inputPaths with Config::Input struct
- Add multiplicityGenerator field to Input for per-input sampling
- Forward declare MultiplicityGenerator to avoid header dependency
- Add proper Python bindings with keyword argument constructor
- Simplify validation logic and remove backward compatibility
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - Examples Affects the Examples module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants