Skip to content
Snippets Groups Projects
Commit ab791cf4 authored by Manu Le Guirriec's avatar Manu Le Guirriec
Browse files

Test for nanobeacon flag

parent 55ff79aa
No related branches found
No related tags found
1 merge request!73Create a tool to check nanobeacon flag in trigger mask
Pipeline #29048 passed with warnings
......@@ -31,6 +31,7 @@ from km3io.tools import (
is_3dshower,
is_mxshower,
is_3dmuon,
is_nanobeacon,
)
OFFLINE_FILE = OfflineReader(data_path("offline/km3net_offline.root"))
......@@ -642,3 +643,13 @@ class TestTriggerMaskChecks(unittest.TestCase):
[False, False, False, True, False, False, True, False, True, True],
list(is_3dmuon(GENHEN_OFFLINE_FILE.events.trigger_mask)),
)
def test_is_nanobeacon(self):
assert np.allclose(
[False, False, False, False, False, False, False, False, False, False],
list(is_nanobeacon(OFFLINE_FILE.events.trigger_mask)),
)
assert np.allclose(
[False, False, False, False, False, False, False, False, False, False],
list(is_nanobeacon(GENHEN_OFFLINE_FILE.events.trigger_mask)),
)
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