-
Notifications
You must be signed in to change notification settings - Fork 102
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
ddsim does not simulate when pythia vertex smearing is enabled #1094
Comments
ddsim doesn't crash, it refuses to simulate. I think the code works as intended. ( The problem is that there actually is a stable particle with a daughter...
And according to the information in LCIO the first neutrino with status 2 flies a non-zero distance, which corresponds to a certain lifetime. So it is not the mass that is the problem, this particle is claimed to travel and then "decay". Can you use the DD4hep vertex smear plugin instead, via the ddsim steering file, or via command line. ## FourVector of translation for the Smearing of the Vertex position: x y z t
SIM.vertexOffset = [0.0, 0.0, 0.0, 0.0]
## FourVector of the Sigma for the Smearing of the Vertex position: x y z t
SIM.vertexSigma = [0.0, 0.0, 0.0, 0.0] |
hi - The second example i give uses the vertex smearing provided by ddsim; it fails in a similar manner. |
In the second example, why do you forward the event to pythia? it doesn't do anything but repeat the entries, does it? |
With #1097, the second example works for me, even when the particles are "duplicate". |
Thanks! I'll give that a try. Yes, using pythia is superfluous for Z->mumu, but we're also interested in Z->qq, and i'm trying to have a consistent setup, based on configurations in https://github.com/HEP-FCC/FCC-config, but changed to have whizard force an H->invisible decay. I sent Z->mumu as an example since that's the simplest and runs fastest. |
I can confirm that your change fixes this problem for all the final states we're looking at. Thanks! |
hi -
I've been running into issues with ddsim crashing with errors like
when run with vertex smearing.
This seems to be fallout from this commit:
As an example, this was executed on a machine running
with the current key4hep setup (which gives gcc 11.2.0 and DD4hep 1.23).
Here is an example reproducer. The whizard input files are attached
(though you have to rename them from .txt because githib chokes on them otherwise).
They generate 500 events of (Z->mumu)(H->invisible), with whizard's
built-in pythia enabled, configured with the tune used for FCC generation.
In the first file, hinvmm1.sin, vertex smearing is enabled in pythia
as in the FCC tune. The second, hinvmm2.sin, is the same except that the
vertex smearing has been disabled.
This fails with
I also tried using ddsim's smearing directly rather than having
pythia do it. This does not work either:
Fails with
The issue seems to stem at least partly from numerical issues where
neutrino masses calculated as sqrt(E^2 - p^2) are not exactly zero.
I found that clipping very small masses to zero solves the issues
i was seeing, but this doesn't seem like the best way to fix this.
hinvmm1.sin.txt
hinvmm2.sin.txt
The text was updated successfully, but these errors were encountered: