Skip to content
Snippets Groups Projects
Verified Commit 522b9957 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix display of empty MC trks

parent 9a2dde1c
No related branches found
No related tags found
1 merge request!46Improve displays
......@@ -44,7 +44,11 @@ function Base.show(io::IO, ::MIME"text/plain", e::Evt)
println(io, " Detector ID: $(e.det_id)")
println(io, " MC ID: $(e.mc_id)")
println(io, " MC event time: $(e.mc_event_time)")
println(io, " Primary particle: $(first(e.mc_trks))")
if length(e.mc_trks) > 0
println(io, " Primary particle: $(first(e.mc_trks))")
else
println(io, " Primary particle: missing")
end
end
description(::Type{Trk}) = "Reconstructed track"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment