Skip to content
Snippets Groups Projects

Resolve "Rename jpp -> daq"

Merged Tamas Gal requested to merge 11-rename-jpp-daq into master
6 files
+ 48
45
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 7
4
"""
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.JppReader("samples/jpp_v12.0.0.root").events
f = km3io.DAQReader("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