-
Notifications
You must be signed in to change notification settings - Fork 101
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
Incorrect treatment of documentation lines in Geant4InputHandling #387
Comments
The particles you refer to have generator status 2, right? That is not documentation. DD4hep/DDG4/include/DDG4/Geant4Particle.h Lines 69 to 74 in 37a4d07
Basically you want to reject taus (and maybe other things we discover later on) with 0 lifetime but keep other particles with 0 life time? Have you tried taking the changes out and seeing what happens? |
I guess the problem is that Pythia (and other generators?) are not using genstat==2 for decays only but also for 'documentation' where they then assign a lifetime of 0.
Do the short lived hadrons (eta_prime) that you used in testing your fix have 'exactly 0' lifetime or only such a small lifetime that they where falsely identified as having 0 lifetime ?
or put in the old code and fix the check for zero lifetime... PS: We did verify that in our testproduction w/ v01-19-05, ie before your patch, the samples w/ lepton pairs where correct. |
I don't know |
Seems like this is fixed with: 16de447 |
We observed a sever bug in events with charged lepton pairs - in particular w/ taus.
In many of these events one of the two taus is actually simulated twice - once with the correct pre-assigned decay and once w/ a decay chosen from Geant4. This is indirectly related to #383, however the actual geant4 crash is an independent bug in geant4 tau decays. These decays should never happen in generator samples w/ pre-assigned decays.
I strongly suspect this fix: 23bd42f committed to fix #307.
The problem occurs in events, of the form
here only the last tau+, tau-, gamma should have been given to geant4, but we include also the previous tau parents ( that have zero lifetime in the input file). This also causes the tau lifetime to be applied n-times by geant4, as geant4 treats this as a decay chain.
@andresailer any idea how to revert your fix and still get the correct treatment for real decay chains w/ very short lived particles ?
I guess it would need a more correct check for
float value 0
...Issue can be reproduced by running:
/afs/desy.de/user/g/gaede/public/4f_ZZ_semileptonic_G4crash.slcio
through any detector w/ DDG4/ddsim.In the output file one of the taus will have daughters added in simulation not present in the input file.
The text was updated successfully, but these errors were encountered: