Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
common
KM3io.jl
Commits
9e9bd865
Verified
Commit
9e9bd865
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Update docs for usr data
parent
0e91fa71
No related branches found
Branches containing commit
Tags
v0.12.5
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/src/examples/offline_data.md
+28
-0
28 additions, 0 deletions
docs/src/examples/offline_data.md
with
28 additions
and
0 deletions
docs/src/examples/offline_data.md
+
28
−
0
View file @
9e9bd865
...
...
@@ -38,6 +38,8 @@ or ranges of events:
events = f.offline[6:9]
```
### Hits
Each event consists of a vector of hits, MC hits, tracks and MC tracks. Depending
on the file, they may be empty. They are accessible via the fields
`.hit`
,
`.mc_hits`
,
`.trks`
and
`.mc_trks`
.
...
...
@@ -52,3 +54,29 @@ and have a look at its contents:
```
@example 1
evt.hits
```
Let's close this file properly:
```
@example 1
close(f)
```
### Usr data
You can also access "usr"-data, which is a dynamic placeholder (
`Dict{String,
Float64}`
) to store arbitrary data. Some software store values here which are
only losely defined. Ideally, if these fields are used regulary by a software, a
proper definition in the KM3NeT dataformat should be created and added to the
according
`Struct`
as a field.
Here is an example how to access the "usr"-data of a single event:
```
@example 1
f = ROOTFile(datapath("offline", "usr-sample.root"))
f.offline[1].usr
```
```
@example 1
close(f)
```
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
30aa3eb6
·
1 year ago
mentioned in commit
30aa3eb6
mentioned in commit 30aa3eb69faecb3c5204b90151a50d31410ba984
Toggle commit list
Tamas Gal
@tgal
mentioned in commit
2ff722fb
·
1 year ago
mentioned in commit
2ff722fb
mentioned in commit 2ff722fb0db8b55ad90a45a4cae71fa0924bbf85
Toggle commit list
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