-
Notifications
You must be signed in to change notification settings - Fork 100
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
Kill photons as soon they enter into a OpticalTracker #1174
Kill photons as soon they enter into a OpticalTracker #1174
Conversation
cc @wdconinc |
The RICH tests still pass, so I assume this change is okay for our ePIC dRICH. |
the bug is more evident if you remove these lines from the steering file
|
@wdconinc Any objection from your side? |
I haven't had a chance to test this (swamped with a review), but I looked at the code and it seems like the right fix so don't let me hold this up. I'm not completely sure why it seemed to have worked for us in the past, but likely because we had thin detector volumes and the same thing happened as described here: photons are killed when leaving the detector, or are even absorbed in the detector (silicon PM). |
BEGINRELEASENOTES
ENDRELEASENOTES
Hi,
Please, correct me, but I think the condition to kill the photons when they enter an Optical Tracker is the other way around.
I ran a simulation of optical photon transport with and without changing that condition. The default DD4hep do not kill photons when they enter the Optical Tracker sensitive detector, but that behavior happens when the condition is reversed (as in the suggested change in this PR).
Test: I did some tests with version 1.23 of DD4hep. The geometry is simple: a box (laboratory) made of "optical air", showed as a semitransparent, contains a sensitive detector made of "optical silicon", showed as red. The particle gun fires photons from the right to the left. The refractive index in the laboratory and the sensor is the same. The photons are stopped when they try to jump from the "laboratory" to the "world" (because World has no optical properties)
The following code reproduce the plots: