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

Merge branch 'cleanup' into 'main'

Remove verbose stuff

See merge request !44
parents 6bebc936 a046f8d2
No related branches found
No related tags found
1 merge request!44Remove verbose stuff
......@@ -470,7 +470,6 @@ function read_detx(io::IO)
# a counter to work around the floor == -1 bug in some older DETX files
floor_counter = 1
last_string = -1
floorminusone_warning_has_been_shown = false
for mod 1:n_modules
elements = split(lines[idx])
......@@ -479,10 +478,6 @@ function read_detx(io::IO)
# floor == -1 bug. We determine the floor position by assuming an ascending order
# of modules in the DETX file
if floor == -1
if !floorminusone_warning_has_been_shown
@warn "'Floor == -1' found in the detector file. The actual floor number will be inferred, assuming that modules and lines are sorted."
floorminusone_warning_has_been_shown = true
end
if last_string == -1
last_string = string
elseif last_string != string
......@@ -618,10 +613,7 @@ information will be lost.
function write(io::IO, d::Detector; version=:same)
if version == :same
version = d.version
else
version != d.version && println("Converting detector from format version $(d.version) to $(version).")
end
version > d.version && @warn "Target version is higher, missing parameters will be filled with reasonable default values."
if version >= 3
for comment in d.comments
......
......@@ -26,7 +26,6 @@ end
@testset "orientations" begin
o = read(datapath("calib", "KM3NeT_00000133_D_1.0.0_00017397_00017496_1.orientations.root"), Orientations)
@show o
module_id = 817589211
min_t, max_t = extrema(o.times[module_id])
Δt = max_t - min_t
......
......@@ -318,15 +318,15 @@ end
rbr = MCEventMatcher(f)
event, mc_event = rbr[1]
@assert 756 == length(event.snapshot_hits)
@assert 28 == length(event.triggered_hits)
@assert 94 == length(mc_event.mc_hits)
@assert 2 == length(mc_event.mc_trks)
@test 756 == length(event.snapshot_hits)
@test 28 == length(event.triggered_hits)
@test 94 == length(mc_event.mc_hits)
@test 2 == length(mc_event.mc_trks)
event, mc_event = rbr[end]
@assert 707 == length(event.snapshot_hits)
@assert 27== length(event.triggered_hits)
@assert 111 == length(mc_event.mc_hits)
@assert 4 == length(mc_event.mc_trks)
@test 707 == length(event.snapshot_hits)
@test 27== length(event.triggered_hits)
@test 111 == length(mc_event.mc_hits)
@test 4 == length(mc_event.mc_trks)
end
......
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