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
Commits
57f0a9c2
Commit
57f0a9c2
authored
5 years ago
by
Zineb Aly
Browse files
Options
Downloads
Patches
Plain Diff
correct docs
parent
24ac1230
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7649
passed with warnings
5 years ago
Stage: test
Stage: coverage
Stage: doc
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+1
-1
1 addition, 1 deletion
README.rst
notebooks/OfflineReader_tutorial.ipynb
+80
-34
80 additions, 34 deletions
notebooks/OfflineReader_tutorial.ipynb
with
81 additions
and
35 deletions
README.rst
+
1
−
1
View file @
57f0a9c2
...
@@ -390,7 +390,7 @@ to read data in hits tree with km3io:
...
@@ -390,7 +390,7 @@ to read data in hits tree with km3io:
>>> r.hits
>>> r.hits
<OfflineHits: 10 parsed elements>
<OfflineHits: 10 parsed elements>
this shows that in our offline file, there are 10
hits trees (because we have 10 events and each event has
a hits tree
!)
.
this shows that in our offline file, there are 10
events, with each event is associated
a hits tree
s
.
to have access to all data in a specific branche from the hits tree, you can use the tab completion:
to have access to all data in a specific branche from the hits tree, you can use the tab completion:
...
...
This diff is collapsed.
Click to expand it.
notebooks/OfflineReader_tutorial.ipynb
+
80
−
34
View file @
57f0a9c2
...
@@ -4,22 +4,13 @@
...
@@ -4,22 +4,13 @@
"cell_type": "code",
"cell_type": "code",
"execution_count": 3,
"execution_count": 3,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
{
"name": "stdout",
"output_type": "stream",
"text": [
"['/home/zineb/km3net/km3net/km3io/notebooks', '/home/zineb/miniconda3/envs/km3pipe/lib/python37.zip', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/lib-dynload', '', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/site-packages', '/home/zineb/km3net/km3net/km3io', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/site-packages/IPython/extensions', '/home/zineb/.ipython', '/home/zineb/km3net/km3net/km3io', '/home/zineb/km3net/km3net/km3io', '/home/zineb/km3net/km3net/km3io']\n"
]
}
],
"source": [
"source": [
"# Add file to current python path\n",
"# Add file to current python path\n",
"from pathlib import Path\n",
"from pathlib import Path\n",
"import sys\n",
"import sys\n",
"sys.path.append(str(Path.cwd().parent))\n",
"sys.path.append(str(Path.cwd().parent))\n",
"Path.cwd()\n",
"Path.cwd()\n",
"print(sys.path)\n",
"\n",
"\n",
"# test samples directory - aanet test file\n",
"# test samples directory - aanet test file\n",
"files_path = Path.cwd().parent / 'tests/samples' \n",
"files_path = Path.cwd().parent / 'tests/samples' \n",
...
@@ -27,35 +18,41 @@
...
@@ -27,35 +18,41 @@
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "markdown",
"execution_count": 4,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"
import km3io as ki
"
"
# Read offline files (aanet)
"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
90
,
"execution_count":
5
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<km3io.aanet.OfflineReader at 0x7f
249af3275
0>"
"<km3io.aanet.OfflineReader at 0x7f
756b8edd9
0>"
]
]
},
},
"execution_count":
90
,
"execution_count":
5
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"import km3io as ki\n",
"r = ki.OfflineReader(aanet_file)\n",
"r = ki.OfflineReader(aanet_file)\n",
"r"
"r"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To explore all the available branches in our offline file:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 8,
"execution_count": 8,
...
@@ -186,9 +183,16 @@
...
@@ -186,9 +183,16 @@
"r.keys"
"r.keys"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# read events data"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
15
,
"execution_count":
7
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -197,7 +201,7 @@
...
@@ -197,7 +201,7 @@
"<OfflineEvents: 10 parsed events>"
"<OfflineEvents: 10 parsed events>"
]
]
},
},
"execution_count":
15
,
"execution_count":
7
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -206,6 +210,13 @@
...
@@ -206,6 +210,13 @@
"r.events"
"r.events"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"number of events:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 12,
"execution_count": 12,
...
@@ -288,16 +299,16 @@
...
@@ -288,16 +299,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
24
,
"execution_count":
8
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<ChunkedArray [176 125 318 ... 84 255 105] at 0x7f
249eebaa1
0>"
"<ChunkedArray [176 125 318 ... 84 255 105] at 0x7f
756b805ad
0>"
]
]
},
},
"execution_count":
24
,
"execution_count":
8
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -306,6 +317,13 @@
...
@@ -306,6 +317,13 @@
"r.events.hits"
"r.events.hits"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"lazyarrays can be used with any Numpy universal function. For example:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 33,
"execution_count": 33,
...
@@ -327,9 +345,16 @@
...
@@ -327,9 +345,16 @@
"np.log(r.events.hits)"
"np.log(r.events.hits)"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"let's look at event 0:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
4
1,
"execution_count": 1
0
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -360,7 +385,7 @@
...
@@ -360,7 +385,7 @@
"\tt_fNanoSec : 200000000"
"\tt_fNanoSec : 200000000"
]
]
},
},
"execution_count":
4
1,
"execution_count": 1
0
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -391,7 +416,7 @@
...
@@ -391,7 +416,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
48
,
"execution_count":
11
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -400,7 +425,7 @@
...
@@ -400,7 +425,7 @@
"176"
"176"
]
]
},
},
"execution_count":
48
,
"execution_count":
11
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -409,6 +434,13 @@
...
@@ -409,6 +434,13 @@
"r.events[0].hits"
"r.events[0].hits"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# read hits data:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 56,
"execution_count": 56,
...
@@ -560,7 +592,7 @@
...
@@ -560,7 +592,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
76
,
"execution_count":
12
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -569,7 +601,7 @@
...
@@ -569,7 +601,7 @@
"806451572"
"806451572"
]
]
},
},
"execution_count":
76
,
"execution_count":
12
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -578,6 +610,13 @@
...
@@ -578,6 +610,13 @@
"r[0].hits[0].dom_id"
"r[0].hits[0].dom_id"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# read tracks data:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 77,
"execution_count": 77,
...
@@ -731,7 +770,7 @@
...
@@ -731,7 +770,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
85
,
"execution_count":
13
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -740,7 +779,7 @@
...
@@ -740,7 +779,7 @@
"294.6407542676734"
"294.6407542676734"
]
]
},
},
"execution_count":
85
,
"execution_count":
13
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -749,6 +788,15 @@
...
@@ -749,6 +788,15 @@
"r[0].tracks[0].lik"
"r[0].tracks[0].lik"
]
]
},
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# read mc hits:"
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 86,
"execution_count": 86,
...
@@ -786,7 +834,7 @@
...
@@ -786,7 +834,7 @@
}
}
],
],
"source": [
"source": [
"r.mc_tracks
.
"
"r.mc_tracks"
]
]
},
},
{
{
...
@@ -794,9 +842,7 @@
...
@@ -794,9 +842,7 @@
"execution_count": null,
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": []
"r.mc_hits."
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
...
...
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
# Add file to current python path
# Add file to current python path
from
pathlib
import
Path
from
pathlib
import
Path
import
sys
import
sys
sys
.
path
.
append
(
str
(
Path
.
cwd
().
parent
))
sys
.
path
.
append
(
str
(
Path
.
cwd
().
parent
))
Path
.
cwd
()
Path
.
cwd
()
print
(
sys
.
path
)
# test samples directory - aanet test file
# test samples directory - aanet test file
files_path
=
Path
.
cwd
().
parent
/
'
tests/samples
'
files_path
=
Path
.
cwd
().
parent
/
'
tests/samples
'
aanet_file
=
files_path
/
'
aanet_v2.0.0.root
'
aanet_file
=
files_path
/
'
aanet_v2.0.0.root
'
```
```
%%
Output
%%
Cell type:markdown id: tags:
['/home/zineb/km3net/km3net/km3io/notebooks', '/home/zineb/miniconda3/envs/km3pipe/lib/python37.zip', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/lib-dynload', '', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/site-packages', '/home/zineb/km3net/km3net/km3io', '/home/zineb/miniconda3/envs/km3pipe/lib/python3.7/site-packages/IPython/extensions', '/home/zineb/.ipython', '/home/zineb/km3net/km3net/km3io', '/home/zineb/km3net/km3net/km3io', '/home/zineb/km3net/km3net/km3io']
# Read offline files (aanet)
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
import
km3io
as
ki
import
km3io
as
ki
```
%% Cell type:code id: tags:
```
python
r
=
ki
.
OfflineReader
(
aanet_file
)
r
=
ki
.
OfflineReader
(
aanet_file
)
r
r
```
```
%% Output
%% Output
<km3io.aanet.OfflineReader at 0x7f249af32750>
<km3io.aanet.OfflineReader at 0x7f756b8edd90>
%% Cell type:markdown id: tags:
To explore all the available branches in our offline file:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
keys
r
.
keys
```
```
%% Output
%% Output
Events keys are:
Events keys are:
id
id
det_id
det_id
mc_id
mc_id
run_id
run_id
mc_run_id
mc_run_id
frame_index
frame_index
trigger_mask
trigger_mask
trigger_counter
trigger_counter
overlays
overlays
hits
hits
trks
trks
w
w
w2list
w2list
w3list
w3list
mc_t
mc_t
mc_hits
mc_hits
mc_trks
mc_trks
comment
comment
index
index
flags
flags
t.fSec
t.fSec
t.fNanoSec
t.fNanoSec
Hits keys are:
Hits keys are:
hits.id
hits.id
hits.dom_id
hits.dom_id
hits.channel_id
hits.channel_id
hits.tdc
hits.tdc
hits.tot
hits.tot
hits.trig
hits.trig
hits.pmt_id
hits.pmt_id
hits.t
hits.t
hits.a
hits.a
hits.pos.x
hits.pos.x
hits.pos.y
hits.pos.y
hits.pos.z
hits.pos.z
hits.dir.x
hits.dir.x
hits.dir.y
hits.dir.y
hits.dir.z
hits.dir.z
hits.pure_t
hits.pure_t
hits.pure_a
hits.pure_a
hits.type
hits.type
hits.origin
hits.origin
hits.pattern_flags
hits.pattern_flags
Tracks keys are:
Tracks keys are:
trks.fUniqueID
trks.fUniqueID
trks.fBits
trks.fBits
trks.id
trks.id
trks.pos.x
trks.pos.x
trks.pos.y
trks.pos.y
trks.pos.z
trks.pos.z
trks.dir.x
trks.dir.x
trks.dir.y
trks.dir.y
trks.dir.z
trks.dir.z
trks.t
trks.t
trks.E
trks.E
trks.len
trks.len
trks.lik
trks.lik
trks.type
trks.type
trks.rec_type
trks.rec_type
trks.rec_stages
trks.rec_stages
trks.status
trks.status
trks.mother_id
trks.mother_id
trks.fitinf
trks.fitinf
trks.hit_ids
trks.hit_ids
trks.error_matrix
trks.error_matrix
trks.comment
trks.comment
Mc hits keys are:
Mc hits keys are:
mc_hits.id
mc_hits.id
mc_hits.dom_id
mc_hits.dom_id
mc_hits.channel_id
mc_hits.channel_id
mc_hits.tdc
mc_hits.tdc
mc_hits.tot
mc_hits.tot
mc_hits.trig
mc_hits.trig
mc_hits.pmt_id
mc_hits.pmt_id
mc_hits.t
mc_hits.t
mc_hits.a
mc_hits.a
mc_hits.pos.x
mc_hits.pos.x
mc_hits.pos.y
mc_hits.pos.y
mc_hits.pos.z
mc_hits.pos.z
mc_hits.dir.x
mc_hits.dir.x
mc_hits.dir.y
mc_hits.dir.y
mc_hits.dir.z
mc_hits.dir.z
mc_hits.pure_t
mc_hits.pure_t
mc_hits.pure_a
mc_hits.pure_a
mc_hits.type
mc_hits.type
mc_hits.origin
mc_hits.origin
mc_hits.pattern_flags
mc_hits.pattern_flags
Mc tracks keys are:
Mc tracks keys are:
mc_trks.fUniqueID
mc_trks.fUniqueID
mc_trks.fBits
mc_trks.fBits
mc_trks.id
mc_trks.id
mc_trks.pos.x
mc_trks.pos.x
mc_trks.pos.y
mc_trks.pos.y
mc_trks.pos.z
mc_trks.pos.z
mc_trks.dir.x
mc_trks.dir.x
mc_trks.dir.y
mc_trks.dir.y
mc_trks.dir.z
mc_trks.dir.z
mc_trks.t
mc_trks.t
mc_trks.E
mc_trks.E
mc_trks.len
mc_trks.len
mc_trks.lik
mc_trks.lik
mc_trks.type
mc_trks.type
mc_trks.rec_type
mc_trks.rec_type
mc_trks.rec_stages
mc_trks.rec_stages
mc_trks.status
mc_trks.status
mc_trks.mother_id
mc_trks.mother_id
mc_trks.fitinf
mc_trks.fitinf
mc_trks.hit_ids
mc_trks.hit_ids
mc_trks.error_matrix
mc_trks.error_matrix
mc_trks.comment
mc_trks.comment
%% Cell type:markdown id: tags:
# read events data
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
r
.
events
```
```
%% Output
%% Output
<OfflineEvents: 10 parsed events>
<OfflineEvents: 10 parsed events>
%% Cell type:markdown id: tags:
number of events:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
len
(
r
.
events
)
len
(
r
.
events
)
```
```
%% Output
%% Output
10
10
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
.
id
r
.
events
.
id
```
```
%% Output
%% Output
<ChunkedArray [1 2 3 ... 8 9 10] at 0x7f249eeb6f10>
<ChunkedArray [1 2 3 ... 8 9 10] at 0x7f249eeb6f10>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
.
det_id
r
.
events
.
det_id
```
```
%% Output
%% Output
<ChunkedArray [44 44 44 ... 44 44 44] at 0x7f249eeba050>
<ChunkedArray [44 44 44 ... 44 44 44] at 0x7f249eeba050>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
.
frame_index
r
.
events
.
frame_index
```
```
%% Output
%% Output
<ChunkedArray [182 183 202 ... 185 185 204] at 0x7f249eeba410>
<ChunkedArray [182 183 202 ... 185 185 204] at 0x7f249eeba410>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
.
hits
r
.
events
.
hits
```
```
%% Output
%% Output
<ChunkedArray [176 125 318 ... 84 255 105] at 0x7f249eebaa10>
<ChunkedArray [176 125 318 ... 84 255 105] at 0x7f756b805ad0>
%% Cell type:markdown id: tags:
lazyarrays can be used with any Numpy universal function. For example:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
import
numpy
as
np
import
numpy
as
np
np
.
log
(
r
.
events
.
hits
)
np
.
log
(
r
.
events
.
hits
)
```
```
%% Output
%% Output
<ChunkedArray [5.170483995038151 4.8283137373023015 5.762051382780177 ... 4.430816798843313 5.541263545158426 4.653960350157523] at 0x7f249b8ebb90>
<ChunkedArray [5.170483995038151 4.8283137373023015 5.762051382780177 ... 4.430816798843313 5.541263545158426 4.653960350157523] at 0x7f249b8ebb90>
%% Cell type:markdown id: tags:
let's look at event 0:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
[
0
]
r
.
events
[
0
]
```
```
%% Output
%% Output
offline event:
offline event:
id : 1
id : 1
det_id : 44
det_id : 44
mc_id : 0
mc_id : 0
run_id : 5971
run_id : 5971
mc_run_id : 0
mc_run_id : 0
frame_index : 182
frame_index : 182
trigger_mask : 22
trigger_mask : 22
trigger_counter : 0
trigger_counter : 0
overlays : 60
overlays : 60
hits : 176
hits : 176
trks : 56
trks : 56
w : []
w : []
w2list : []
w2list : []
w3list : []
w3list : []
mc_t : 0.0
mc_t : 0.0
mc_hits : 0
mc_hits : 0
mc_trks : 0
mc_trks : 0
comment : b''
comment : b''
index : 0
index : 0
flags : 0
flags : 0
t_fSec : 1567036818
t_fSec : 1567036818
t_fNanoSec : 200000000
t_fNanoSec : 200000000
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
[
0
].
overlays
r
.
events
[
0
].
overlays
```
```
%% Output
%% Output
60
60
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
events
[
0
].
hits
r
.
events
[
0
].
hits
```
```
%% Output
%% Output
176
176
%% Cell type:markdown id: tags:
# read hits data:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
hits
.
dom_id
r
.
hits
.
dom_id
```
```
%% Output
%% Output
<ChunkedArray [[806451572 806451572 806451572 ... 809544061 809544061 809544061] [806451572 806451572 806451572 ... 809524432 809526097 809544061] [806451572 806451572 806451572 ... 809544061 809544061 809544061] ... [806451572 806455814 806465101 ... 809526097 809544058 809544061] [806455814 806455814 806455814 ... 809544061 809544061 809544061] [806455814 806455814 806455814 ... 809544058 809544058 809544061]] at 0x7f249eebac50>
<ChunkedArray [[806451572 806451572 806451572 ... 809544061 809544061 809544061] [806451572 806451572 806451572 ... 809524432 809526097 809544061] [806451572 806451572 806451572 ... 809544061 809544061 809544061] ... [806451572 806455814 806465101 ... 809526097 809544058 809544061] [806455814 806455814 806455814 ... 809544061 809544061 809544061] [806455814 806455814 806455814 ... 809544058 809544058 809544061]] at 0x7f249eebac50>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
hits
.
tot
r
.
hits
.
tot
```
```
%% Output
%% Output
<ChunkedArray [[24 30 22 ... 38 26 23] [29 26 22 ... 26 28 24] [27 19 13 ... 27 24 16] ... [22 22 9 ... 27 32 27] [30 32 17 ... 30 24 29] [27 41 36 ... 29 24 28]] at 0x7f249eec9050>
<ChunkedArray [[24 30 22 ... 38 26 23] [29 26 22 ... 26 28 24] [27 19 13 ... 27 24 16] ... [22 22 9 ... 27 32 27] [30 32 17 ... 30 24 29] [27 41 36 ... 29 24 28]] at 0x7f249eec9050>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
hits
r
[
0
].
hits
```
```
%% Output
%% Output
<OfflineHits: 176 parsed elements>
<OfflineHits: 176 parsed elements>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
hits
.
dom_id
r
[
0
].
hits
.
dom_id
```
```
%% Output
%% Output
array([806451572, 806451572, 806451572, 806451572, 806455814, 806455814,
array([806451572, 806451572, 806451572, 806451572, 806455814, 806455814,
806455814, 806483369, 806483369, 806483369, 806483369, 806483369,
806455814, 806483369, 806483369, 806483369, 806483369, 806483369,
806483369, 806483369, 806483369, 806483369, 806483369, 806487219,
806483369, 806483369, 806483369, 806483369, 806483369, 806487219,
806487226, 806487231, 806487231, 808432835, 808435278, 808435278,
806487226, 806487231, 806487231, 808432835, 808435278, 808435278,
808435278, 808435278, 808435278, 808447180, 808447180, 808447180,
808435278, 808435278, 808435278, 808447180, 808447180, 808447180,
808447180, 808447180, 808447180, 808447180, 808447180, 808447186,
808447180, 808447180, 808447180, 808447180, 808447180, 808447186,
808451904, 808451904, 808472265, 808472265, 808472265, 808472265,
808451904, 808451904, 808472265, 808472265, 808472265, 808472265,
808472265, 808472265, 808472265, 808472265, 808488895, 808488990,
808472265, 808472265, 808472265, 808472265, 808488895, 808488990,
808488990, 808488990, 808488990, 808488990, 808489014, 808489014,
808488990, 808488990, 808488990, 808488990, 808489014, 808489014,
808489117, 808489117, 808489117, 808489117, 808493910, 808946818,
808489117, 808489117, 808489117, 808489117, 808493910, 808946818,
808949744, 808951460, 808951460, 808951460, 808951460, 808951460,
808949744, 808951460, 808951460, 808951460, 808951460, 808951460,
808956908, 808956908, 808959411, 808959411, 808959411, 808961448,
808956908, 808956908, 808959411, 808959411, 808959411, 808961448,
808961448, 808961504, 808961504, 808961655, 808961655, 808961655,
808961448, 808961504, 808961504, 808961655, 808961655, 808961655,
808964815, 808964815, 808964852, 808964908, 808969857, 808969857,
808964815, 808964815, 808964852, 808964908, 808969857, 808969857,
808969857, 808969857, 808969857, 808972593, 808972698, 808972698,
808969857, 808969857, 808969857, 808972593, 808972698, 808972698,
808972698, 808974758, 808974758, 808974758, 808974758, 808974758,
808972698, 808974758, 808974758, 808974758, 808974758, 808974758,
808974758, 808974758, 808974758, 808974758, 808974758, 808974758,
808974758, 808974758, 808974758, 808974758, 808974758, 808974758,
808974773, 808974773, 808974773, 808974773, 808974773, 808974972,
808974773, 808974773, 808974773, 808974773, 808974773, 808974972,
808974972, 808976377, 808976377, 808976377, 808979567, 808979567,
808974972, 808976377, 808976377, 808976377, 808979567, 808979567,
808979567, 808979721, 808979721, 808979721, 808979721, 808979721,
808979567, 808979721, 808979721, 808979721, 808979721, 808979721,
808979721, 808979721, 808979729, 808979729, 808979729, 808981510,
808979721, 808979721, 808979729, 808979729, 808979729, 808981510,
808981510, 808981510, 808981510, 808981672, 808981672, 808981672,
808981510, 808981510, 808981510, 808981672, 808981672, 808981672,
808981672, 808981672, 808981672, 808981672, 808981672, 808981672,
808981672, 808981672, 808981672, 808981672, 808981672, 808981672,
808981672, 808981672, 808981672, 808981672, 808981672, 808981672,
808981672, 808981672, 808981672, 808981672, 808981672, 808981672,
808981672, 808981672, 808981812, 808981812, 808981812, 808981864,
808981672, 808981672, 808981812, 808981812, 808981812, 808981864,
808981864, 808982005, 808982005, 808982005, 808982018, 808982018,
808981864, 808982005, 808982005, 808982005, 808982018, 808982018,
808982018, 808982041, 808982041, 808982077, 808982077, 808982547,
808982018, 808982041, 808982041, 808982077, 808982077, 808982547,
808982547, 808982547, 808997793, 809006037, 809524432, 809526097,
808982547, 808982547, 808997793, 809006037, 809524432, 809526097,
809526097, 809544061, 809544061, 809544061, 809544061, 809544061,
809526097, 809544061, 809544061, 809544061, 809544061, 809544061,
809544061, 809544061], dtype=int32)
809544061, 809544061], dtype=int32)
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
hits
[
0
]
r
[
0
].
hits
[
0
]
```
```
%% Output
%% Output
offline hit:
offline hit:
id : 0
id : 0
dom_id : 806451572
dom_id : 806451572
channel_id : 8
channel_id : 8
tdc : 0
tdc : 0
tot : 24
tot : 24
trig : 1
trig : 1
pmt_id : 0
pmt_id : 0
t : 70104010.0
t : 70104010.0
a : 0.0
a : 0.0
pos_x : 0.0
pos_x : 0.0
pos_y : 0.0
pos_y : 0.0
pos_z : 0.0
pos_z : 0.0
dir_x : 0.0
dir_x : 0.0
dir_y : 0.0
dir_y : 0.0
dir_z : 0.0
dir_z : 0.0
pure_t : 0.0
pure_t : 0.0
pure_a : 0.0
pure_a : 0.0
type : 0
type : 0
origin : 0
origin : 0
pattern_flags : 0
pattern_flags : 0
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
hits
[
0
].
dom_id
r
[
0
].
hits
[
0
].
dom_id
```
```
%% Output
%% Output
806451572
806451572
%% Cell type:markdown id: tags:
# read tracks data:
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
tracks
r
.
tracks
```
```
%% Output
%% Output
<OfflineTracks: 10 parsed elements>
<OfflineTracks: 10 parsed elements>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
tracks
.
lik
r
.
tracks
.
lik
```
```
%% Output
%% Output
<ChunkedArray [[294.6407542676734 294.6407542676734 294.6407542676734 ... 67.81221253265059 67.7756405143316 67.77250505700384] [96.75133289411137 96.75133289411137 96.75133289411137 ... 39.21916536442286 39.184645826013806 38.870325146341884] [560.2775306614813 560.2775306614813 560.2775306614813 ... 118.88577278801066 118.72271313687405 117.80785995187605] ... [71.03251451148226 71.03251451148226 71.03251451148226 ... 16.714140573909347 16.444395245214945 16.34639241716669] [326.440133294878 326.440133294878 326.440133294878 ... 87.79818671079849 87.75488082571873 87.74839444768625] [159.77779654216795 159.77779654216795 159.77779654216795 ... 33.8669134999348 33.821631538334984 33.77240735670646]] at 0x7f249eed2590>
<ChunkedArray [[294.6407542676734 294.6407542676734 294.6407542676734 ... 67.81221253265059 67.7756405143316 67.77250505700384] [96.75133289411137 96.75133289411137 96.75133289411137 ... 39.21916536442286 39.184645826013806 38.870325146341884] [560.2775306614813 560.2775306614813 560.2775306614813 ... 118.88577278801066 118.72271313687405 117.80785995187605] ... [71.03251451148226 71.03251451148226 71.03251451148226 ... 16.714140573909347 16.444395245214945 16.34639241716669] [326.440133294878 326.440133294878 326.440133294878 ... 87.79818671079849 87.75488082571873 87.74839444768625] [159.77779654216795 159.77779654216795 159.77779654216795 ... 33.8669134999348 33.821631538334984 33.77240735670646]] at 0x7f249eed2590>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
tracks
r
[
0
].
tracks
```
```
%% Output
%% Output
<OfflineTracks: 56 parsed elements>
<OfflineTracks: 56 parsed elements>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
tracks
.
lik
r
[
0
].
tracks
.
lik
```
```
%% Output
%% Output
array([294.64075427, 294.64075427, 294.64075427, 291.64653113,
array([294.64075427, 294.64075427, 294.64075427, 291.64653113,
291.27392663, 290.69031512, 289.19290546, 289.08449217,
291.27392663, 290.69031512, 289.19290546, 289.08449217,
289.03373947, 288.19030836, 282.92343367, 282.71527118,
289.03373947, 288.19030836, 282.92343367, 282.71527118,
282.10762402, 280.20553861, 275.93183966, 273.01809111,
282.10762402, 280.20553861, 275.93183966, 273.01809111,
257.46433694, 220.94357656, 194.99426403, 190.47809685,
257.46433694, 220.94357656, 194.99426403, 190.47809685,
79.95235686, 78.94389763, 78.90791169, 77.96122466,
79.95235686, 78.94389763, 78.90791169, 77.96122466,
77.9579604 , 76.90769883, 75.97546175, 74.91530508,
77.9579604 , 76.90769883, 75.97546175, 74.91530508,
74.9059469 , 72.94007716, 72.90467038, 72.8629316 ,
74.9059469 , 72.94007716, 72.90467038, 72.8629316 ,
72.81280833, 72.80229533, 72.78899435, 71.82404165,
72.81280833, 72.80229533, 72.78899435, 71.82404165,
71.80085542, 71.71028058, 70.91130096, 70.89150223,
71.80085542, 71.71028058, 70.91130096, 70.89150223,
70.85845637, 70.79081796, 70.76929743, 69.80667603,
70.85845637, 70.79081796, 70.76929743, 69.80667603,
69.64058976, 68.93085058, 68.84304037, 68.83154232,
69.64058976, 68.93085058, 68.84304037, 68.83154232,
68.79944298, 68.79019375, 68.78581291, 68.72340328,
68.79944298, 68.79019375, 68.78581291, 68.72340328,
67.86628937, 67.81221253, 67.77564051, 67.77250506])
67.86628937, 67.81221253, 67.77564051, 67.77250506])
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
tracks
[
0
]
r
[
0
].
tracks
[
0
]
```
```
%% Output
%% Output
offline track:
offline track:
fUniqueID : 0
fUniqueID : 0
fBits : 33554432
fBits : 33554432
id : 1
id : 1
pos_x : 445.835395997812
pos_x : 445.835395997812
pos_y : 615.1089636184813
pos_y : 615.1089636184813
pos_z : 125.1448339836911
pos_z : 125.1448339836911
dir_x : 0.0368711082700674
dir_x : 0.0368711082700674
dir_y : -0.48653048395923415
dir_y : -0.48653048395923415
dir_z : -0.872885221293917
dir_z : -0.872885221293917
t : 70311446.46401498
t : 70311446.46401498
E : 99.10458562488608
E : 99.10458562488608
len : 0.0
len : 0.0
lik : 294.6407542676734
lik : 294.6407542676734
type : 0
type : 0
rec_type : 4000
rec_type : 4000
rec_stages : [1, 3, 5, 4]
rec_stages : [1, 3, 5, 4]
status : 0
status : 0
mother_id : -1
mother_id : -1
hit_ids : []
hit_ids : []
error_matrix : []
error_matrix : []
comment : 0
comment : 0
JGANDALF_BETA0_RAD : 0.004957442219414389
JGANDALF_BETA0_RAD : 0.004957442219414389
JGANDALF_BETA1_RAD : 0.003417848024252858
JGANDALF_BETA1_RAD : 0.003417848024252858
JGANDALF_CHI2 : -294.6407542676734
JGANDALF_CHI2 : -294.6407542676734
JGANDALF_NUMBER_OF_HITS : 142.0
JGANDALF_NUMBER_OF_HITS : 142.0
JENERGY_ENERGY : 99.10458562488608
JENERGY_ENERGY : 99.10458562488608
JENERGY_CHI2 : 1.7976931348623157e+308
JENERGY_CHI2 : 1.7976931348623157e+308
JGANDALF_LAMBDA : 4.2409761837248484e-12
JGANDALF_LAMBDA : 4.2409761837248484e-12
JGANDALF_NUMBER_OF_ITERATIONS : 10.0
JGANDALF_NUMBER_OF_ITERATIONS : 10.0
JSTART_NPE_MIP : 24.88469697331908
JSTART_NPE_MIP : 24.88469697331908
JSTART_NPE_MIP_TOTAL : 55.88169412579765
JSTART_NPE_MIP_TOTAL : 55.88169412579765
JSTART_LENGTH_METRES : 98.89582506402911
JSTART_LENGTH_METRES : 98.89582506402911
JVETO_NPE : 0.0
JVETO_NPE : 0.0
JVETO_NUMBER_OF_HITS : 0.0
JVETO_NUMBER_OF_HITS : 0.0
JENERGY_MUON_RANGE_METRES : 344.9767431592819
JENERGY_MUON_RANGE_METRES : 344.9767431592819
JENERGY_NOISE_LIKELIHOOD : -333.87773581129136
JENERGY_NOISE_LIKELIHOOD : -333.87773581129136
JENERGY_NDF : 1471.0
JENERGY_NDF : 1471.0
JENERGY_NUMBER_OF_HITS : 101.0
JENERGY_NUMBER_OF_HITS : 101.0
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
[
0
].
tracks
[
0
].
lik
r
[
0
].
tracks
[
0
].
lik
```
```
%% Output
%% Output
294.6407542676734
294.6407542676734
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
# read mc hits:
```
%% Cell type:code id: tags:
```
python
r
.
mc_hits
r
.
mc_hits
```
```
%% Output
%% Output
<OfflineHits: 10 parsed elements>
<OfflineHits: 10 parsed elements>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
mc_tracks
.
r
.
mc_tracks
```
```
%% Output
%% Output
<OfflineTracks: 10 parsed elements>
<OfflineTracks: 10 parsed elements>
%% Cell type:code id: tags:
%% Cell type:code id: tags:
```
python
```
python
r
.
mc_hits
.
``
`
``
`
%%
Cell
type
:
code
id
:
tags
:
%%
Cell
type
:
code
id
:
tags
:
```
python
```
python
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment