Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jppy
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
km3py
jppy
Commits
5db7e4b0
Commit
5db7e4b0
authored
5 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Expand env-vars and set default for file descriptors
parent
c33fd621
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8861
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/cherenkov_muon.py
+5
-3
5 additions, 3 deletions
examples/cherenkov_muon.py
with
5 additions
and
3 deletions
examples/cherenkov_muon.py
+
5
−
3
View file @
5db7e4b0
...
...
@@ -6,11 +6,11 @@
Plot PDF of Cherenkov light from muon using Jpp interpolation tables.
Usage:
cherenkov_muon.py [options]
-f FILE_DESCRIPTOR
cherenkov_muon.py [options]
cherenkov_muon.py (-h | --help)
Options:
-f FILE_DESCRIPTOR Descriptor of the PDFs
(e.g.
$JPP_DIR/data/J%p.dat
)
.
-f FILE_DESCRIPTOR Descriptor of the PDFs
[default:
$JPP_DIR/data/J%p.dat
]
.
--energy=<GeV> Muon energy [default: 1e3].
--distance=<m> Distance of approach [default: 50].
--tts=<ns> PMT time smearing [default: 0.0].
...
...
@@ -27,6 +27,7 @@ from docopt import docopt
docopt
(
__doc__
)
import
functools
import
os
import
matplotlib
matplotlib
.
use
(
"
Agg
"
)
...
...
@@ -46,7 +47,8 @@ def main():
"
west
"
:
(
np
.
pi
/
2
,
np
.
pi
)
}
muon_pdf
=
jppy
.
pdf
.
JMuonPDF
(
args
[
'
-f
'
],
TTS
=
float
(
args
[
'
--tts
'
]))
muon_pdf
=
jppy
.
pdf
.
JMuonPDF
(
os
.
path
.
expandvars
(
args
[
'
-f
'
]),
TTS
=
float
(
args
[
'
--tts
'
]))
xs
=
np
.
linspace
(
float
(
args
[
'
--xmin
'
]),
float
(
args
[
'
--xmax
'
]),
int
(
args
[
'
--n-points
'
]))
...
...
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