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
!3
Resolve "Rename jpp -> daq"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Rename jpp -> daq"
11-rename-jpp-daq
into
master
Overview
0
Commits
2
Pipelines
3
Changes
6
Merged
Tamas Gal
requested to merge
11-rename-jpp-daq
into
master
5 years ago
Overview
0
Commits
2
Pipelines
3
Changes
6
Expand
Closes
#11 (closed)
Edited
5 years ago
by
Tamas Gal
0
0
Merge request reports
Viewing commit
a6f7e84b
Prev
Next
Show latest version
6 files
+
48
−
45
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
a6f7e84b
Rename Jpp stuff to DAQ
· a6f7e84b
Tamas Gal
authored
5 years ago
examples/plot_example.py
+
7
−
4
Options
"""
Reading DAQ Data
(Jpp)
================
======
Reading DAQ Data
================
The following example shows how to access hits in a ROOT file which is coming
from the detector and written by the `JDataWriter` application.
Such a file is usually called
"
KM3NET_00000001_00000002.root
"
, where the first
number is the detector ID and the second the run number.
"""
import
km3io
@@ -13,7 +16,7 @@ import km3io
# Just pass a filename to the reader class and get access to the event tree
# with:
events
=
km3io
.
Jpp
Reader
(
"
samples/jpp_v12.0.0.root
"
)
.
events
f
=
km3io
.
DAQ
Reader
(
"
samples/jpp_v12.0.0.root
"
)
#####################################################
# Note that only some meta information is read into memory.
@@ -21,4 +24,4 @@ events = km3io.JppReader("samples/jpp_v12.0.0.root").events
# Printing it will simply tell you how many events it has found. Again, nothing
# else is read yet:
print
(
events
)
print
(
f
.
events
)
Loading