-
Notifications
You must be signed in to change notification settings - Fork 55
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
Optical photon tracking causes geometry boundary hits to be missed #150
Comments
A fun read: https://arxiv.org/pdf/1612.05162.pdf, "Peculiarities in the Simulation of Optical Physics with Geant4" |
Actually "fun" -> "recommended" |
A slightly longer read: http://publications.rwth-aachen.de/record/667646/files/667646.pdf (dissertation) |
Related question coming from Qsim comparison of optical vs. no optical photon processes in physics list using the same macro-set seed and getting different results: Is it the case that the "seed" that is set will define a long list of sub-seed numbers that are used in the creation of a gun-event electron? If so, then does geant work its way through this list for each gun-event only, or for each gun-event plus also secondary particle creation? Thus, if you chose to include optical processes would you expect the numbers in this sub-seed list that are used for each new gun-event electron to be different than in the case of not including optical processes, since the multitude of optical photons are getting tracked and consuming the next entries in the list of numbers used for new gun-events + secondaries? Am I close in my understanding of seeds and geant processes? |
It should start each event from the same seed but yeah I think some of the randomness can indeed cause differences between different physics lists. |
Re: random number sequences: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/eventtrackmanage/1072/3/1.html |
Tries that went nowhere:
|
I think fixed in feature-geomBoundary 3054d19. @cameronc137 please test? |
Resolved and merged in develop. |
Environment: (where does this bug occur, have you tried other environments)
Steps to reproduce: (give a step by step account of how to trigger the bug)
git reset 04e1c807c9b0a4beacad988ae4ffae23ca445d47
build/remoll -t 1 macros/issues/issue150_1.mac
build/remoll -t 1 macros/issues/issue150_2.mac
root -l remollout_Mainz_1.root -e 'T->Draw("hit.z","hit.det == 50002 && hit.pid == 11")'
root -l remollout_Mainz_2.root -e 'T->Draw("hit.z","hit.det == 50002 && hit.pid == 11")'
Expected Result: (what do you expect when you execute the steps above)
Since the only difference is the simulation of optical photons, the number of entries in each of the outputs above should be identical to each other and to 100.
Actual Result: (what do you get when you execute the steps above)
The first output of
macros/issue150_1.mac
is only 10% of the hits. The only difference is/remoll/physlist/optical/enable
.The text was updated successfully, but these errors were encountered: