Commit 8f538cc6 authored by Sandro Christian Wenzel's avatar Sandro Christian Wenzel
Browse files

Optimization in HybridSafetyEstimator

Avoid call to daughters when safety to mother is 0.
parent d5702f78
......@@ -268,6 +268,9 @@ public:
{
// safety to mother
double safety = pvol->SafetyToOut(localpoint);
if (safety <= 0.) {
return 0.;
}
return TreatSafetyToIn(localpoint, pvol->GetLogicalVolume(), safety);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment