Open gipert opened 3 days ago
My first idea regarding a really simple solution to estimate an upper boundary on the distance: Take the vector between where the particle entered the volume and the energy deposition. You could then calculate the distance to the entrance point. The real distance to the closest surface will always be equal or less.
That would be a simple way to get an upper boundary, but i guess we rather need a lower boundary?
A better option i think would be to use the ComputeStep()
function of the G4Navigator
and sample a few directions. Although i am not sure about how computational intensive that would be, but certainly better than nested volumes.
There are also some geometry functions from geant directly (on G4VSolid
): DistanceToIn
, DistanceToOut
I am unsure, DistanceToOut
seems right for inside points? edit: but I don't know how well they perform...
The distance can be an underestimate.
this worries me a bit, but it might be okay for our use case?
They sound useful but I don't know what they do, we should have a look at the source code...
We should investigate whether there is a simple way to roughly determine the distance of energy depositions from the HPGe surface. This would be very useful in post-processing to fold the activeness map only with points that are reasonably close to the surface, and therefore speed up computation.
One idea could be to define an additional, nested, sensitive volume, but I think this has several downsides.