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

Create a tool to check nanobeacon flag in trigger mask

parent cba08523
No related branches found
No related tags found
1 merge request!73Create a tool to check nanobeacon flag in trigger mask
Pipeline #29008 passed with warnings
...@@ -536,3 +536,14 @@ def is_3dmuon(trigger_mask): ...@@ -536,3 +536,14 @@ def is_3dmuon(trigger_mask):
A value or an array of the trigger_mask, either of an event, or a hit. A value or an array of the trigger_mask, either of an event, or a hit.
""" """
return is_bit_set(trigger_mask, ktrg.JTRIGGER3DMUON) return is_bit_set(trigger_mask, ktrg.JTRIGGER3DMUON)
def is_nanobeacon(trigger_mask):
"""Returns True if the trigger mask contains the nano-beacon flag.
Parameters
----------
trigger_mask : int or array(int)
A value or an array of the trigger_mask, either of an event, or a hit.
"""
return is_bit_set(trigger_mask, ktrg.JTRIGGERNB)
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