Skip to content

Commit

Permalink
Fix crash of event display
Browse files Browse the repository at this point in the history
  • Loading branch information
olantwin committed Sep 10, 2024
1 parent b7a697c commit 7b82352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ it in future.
* Fix compilation warnings due to deprecations #469
* Fix issue with SST parameters #489
* Cleaned up Veto Implementation
* Fix crash of event display when no entrance lid present

### Changed

Expand Down
7 changes: 5 additions & 2 deletions macro/eventDisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,11 @@ def InitTask(self):
self.z_end = 500.0
if dv:
ns = dv.GetNodes()
T1Lid = ns.FindObject("T1Lid_1").GetMatrix()
self.z_start = T1Lid.GetTranslation()[2]
try:
T1Lid = ns.FindObject("T1Lid_1").GetMatrix()
self.z_start = T1Lid.GetTranslation()[2]
except AttributeError:
self.z_start = 0
else:
self.z_start = 0
muonDet = top.GetNode("MuonDetector_1")
Expand Down

0 comments on commit 7b82352

Please sign in to comment.