Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RainbowAlga.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Tamas Gal
RainbowAlga.jl
Commits
5a9afef4
Verified
Commit
5a9afef4
authored
5 months ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Update readme
parent
a6709e88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#57928
failed
5 months ago
Stage: test
Stage: docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-9
8 additions, 9 deletions
README.md
with
8 additions
and
9 deletions
README.md
+
8
−
9
View file @
5a9afef4
...
...
@@ -33,20 +33,19 @@ usually right after loading the package.
```
julia
julia
>
using
RainbowAlga
,
KM3io
,
KM3NeTTestData
julia
>
RainbowAlga
.
run
()
# opens the 3D display with the default KM3NeT detector
```
The function to update (usually replace) objects like the detector, hits or
tracks is called
`update!`
and can be called with the corresponding objects. It
will modify the global scene immediately. Here is an example how to load or
update the detector geometry:
```
julia
julia
>
d
=
Detector
(
datapath
(
"detx"
,
"KM3NeT_00000133_20221025.detx"
))
julia
>
update!
(
d
)
julia
>
RainbowAlga
.
run
()
```
To manipulate the scene, the
`update!()`
and
`add!()`
functions can be used
which act on the global RainbowAlga instance.
As seen in the example above, the detector geometry is "updated" using
`update!(d)`
.
Tracks and hits can be added in a similar way, but using
`add!(hits)`
.
Check out the
`scripts/vhe_paper.jl`
script for more inspiration.
## Keybindings
You can use
<kbd>
←
</kbd>
and
<kbd>
→
</kbd>
to go back and forth in time and
<kbd>
R
</kbd>
to reset the time.
...
...
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