Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
km3py
km3io
Merge requests
!73
Create a tool to check nanobeacon flag in trigger mask
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Create a tool to check nanobeacon flag in trigger mask
nanobeacon_trigger
into
master
Overview
4
Commits
2
Pipelines
2
Changes
2
Merged
Manu Le Guirriec
requested to merge
nanobeacon_trigger
into
master
2 years ago
Overview
4
Commits
2
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 1
55ff79aa
2 years ago
master (base)
and
latest version
latest version
ab791cf4
2 commits,
2 years ago
version 1
55ff79aa
1 commit,
2 years ago
2 files
+
22
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/km3io/tools.py
+
11
−
0
Options
@@ -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.
"""
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
)
Loading