Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
common
KM3io.jl
Commits
9e99889c
Verified
Commit
9e99889c
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Clean up DAQ tests and add non-legacy test
parent
ff29e934
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/daq.jl
+25
-0
25 additions, 0 deletions
test/daq.jl
test/root.jl
+0
-2
0 additions, 2 deletions
test/root.jl
with
25 additions
and
2 deletions
test/daq.jl
+
25
−
0
View file @
9e99889c
using
KM3io
using
KM3NeTTestData
using
Test
const
IO_EVT
=
datapath
(
"daq"
,
"IO_EVT.dat"
)
const
IO_EVT_LEGACY
=
datapath
(
"daq"
,
"IO_EVT_legacy.dat"
)
@testset
"DAQ readout"
begin
f
=
open
(
IO_EVT_LEGACY
)
daqevent
=
read
(
f
,
KM3io
.
DAQEvent
;
legacy
=
true
)
...
...
@@ -16,4 +23,22 @@
@test
is3dmuon
(
daqevent
)
@test
!
isnb
(
daqevent
)
close
(
f
)
f
=
open
(
IO_EVT
)
daqevent
=
read
(
f
,
KM3io
.
DAQEvent
)
@test
44
==
daqevent
.
header
.
detector_id
@test
6760
==
daqevent
.
header
.
run
@test
88733
==
daqevent
.
header
.
frame_index
@test
1574432873
==
daqevent
.
header
.
t
.
s
@test
300000000
==
daqevent
.
header
.
t
.
ns
@test
2816
==
daqevent
.
header
.
trigger_counter
@test
0x0000000000000016
==
daqevent
.
header
.
trigger_mask
@test
54
==
daqevent
.
header
.
overlays
@test
182
==
length
(
daqevent
.
triggered_hits
)
@test
239
==
length
(
daqevent
.
snapshot_hits
)
@test
is3dshower
(
daqevent
)
@test
ismxshower
(
daqevent
)
@test
is3dmuon
(
daqevent
)
@test
!
isnb
(
daqevent
)
close
(
f
)
end
This diff is collapsed.
Click to expand it.
test/root.jl
+
0
−
2
View file @
9e99889c
...
...
@@ -8,8 +8,6 @@ const DETX = datapath("detx", "detx_v3.detx")
const
DETX_44
=
datapath
(
"detx"
,
"km3net_offline.detx"
)
const
ONLINEFILE
=
datapath
(
"online"
,
"km3net_online.root"
)
const
OFFLINEFILE
=
datapath
(
"offline"
,
"km3net_offline.root"
)
const
IO_EVT
=
datapath
(
"daq"
,
"IO_EVT.dat"
)
const
IO_EVT_LEGACY
=
datapath
(
"daq"
,
"IO_EVT_legacy.dat"
)
@testset
"Offline files"
begin
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
8346a9bb
·
1 year ago
mentioned in commit
8346a9bb
mentioned in commit 8346a9bb828ffe9c0cdd8324114d2677b6376d00
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment