Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up simulation configurations by stopping particles being tracked well beyond the detector. #795

Open
simonge opened this issue Oct 11, 2024 · 0 comments

Comments

@simonge
Copy link
Contributor

simonge commented Oct 11, 2024

Is your feature request related to a problem? Please describe.
The simulation runs very slowly for simple configurations without calorimeters or complex materials which should.

This came up when tracking single beam electrons from the IP through the vacuum pipe which was running at about 3Hz due to world volume extending beyond the vacuum, magnets and pipe implemented in the geometry. Adding a volume which just absorbs the tracks at the end of the detector geometry sped the simulation up to 1000Hz.

This is unlikely to have a large effect on the full detector simulation of events in the central detector, however if only tracking layers are being simulated the effect could be significant, or for Low-Q2/low Pt events where the electron and proton will be tracked out the end of the beampipe.

Describe the solution you'd like
There are a few solutions to this problem.
Reduce the world volume, and/or create a more complex world volume shape.
Shape the world volume to match each configuration.
Add track killing volumes after the last layer of detectors in any given configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant