Skip to content

Commit

Permalink
handle case if vertex outside cave, suggested by Plamenna
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRuf committed Sep 5, 2017
1 parent 5001b18 commit 36832c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/shipVeto.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def fiducialCheck(self,aPoint):
delPhi = 2.*ROOT.TMath.Pi()/nSteps
distmin = 1E10
nav.SetCurrentPoint(aPoint.x(),aPoint.y(),aPoint.z())
cNode = nav.FindNode().GetName()
cNode = 'outside'
aNode = nav.FindNode()
if aNode: cNode = aNode.GetName()
if cNode != 'T2decayVol_0' and cNode != 'T1decayVol_0':
distmin = 0.
else:
Expand Down

0 comments on commit 36832c6

Please sign in to comment.