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
8f222a73
Commit
8f222a73
authored
4 years ago
by
Tamas Gal
Browse files
Options
Downloads
Plain Diff
Merge branch '2-include-jnpe_t-hh' into 'master'
Resolve "Include JNPE_t.hh" Closes
#2
See merge request
!4
parents
48fb8744
e271164f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Resolve "Include JNPE_t.hh"
Pipeline
#10150
passed with warnings
4 years ago
Stage: init
Stage: build
Stage: test
Stage: doc
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+1
-1
1 addition, 1 deletion
README.rst
setup.py
+3
-3
3 additions, 3 deletions
setup.py
src/npe.cc
+29
-0
29 additions, 0 deletions
src/npe.cc
with
33 additions
and
4 deletions
README.rst
+
1
−
1
View file @
8f222a73
...
...
@@ -8,7 +8,7 @@ The jppy Python package
:target: https://km3py.pages.km3net.de/jppy
This software provides Python access to functionalities in Jpp, like accessing
PDF functions.
PDF
and NPE
functions.
It currently depends on a few Jpp headers (no Jpp compilation needed), make
sure the ``$JPP_DIR`` is pointing to the Jpp directory.
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
3
View file @
8f222a73
...
...
@@ -26,14 +26,14 @@ def get_jpp_include():
ext_modules
=
[
Extension
(
'
jppy.
pdf
'
,
[
'
src/
pdf
.cc
'
],
'
jppy.
{}
'
.
format
(
module
)
,
[
'
src/
{}
.cc
'
.
format
(
module
)
],
include_dirs
=
[
get_pybind_include
(),
get_pybind_include
(
user
=
True
),
get_jpp_include
()
],
language
=
'
c++
'
)
language
=
'
c++
'
)
for
module
in
[
'
pdf
'
,
'
npe
'
]
]
# Populating the __init__.py with submodule imports, so that one can import
...
...
This diff is collapsed.
Click to expand it.
src/npe.cc
0 → 100644
+
29
−
0
View file @
8f222a73
#include
<pybind11/pybind11.h>
#include
"JPhysics/JNPE_t.hh"
namespace
py
=
pybind11
;
PYBIND11_MODULE
(
npe
,
m
)
{
m
.
doc
()
=
"NPE utilities"
;
py
::
class_
<
JMuonNPE_t
>
(
m
,
"JMuonNPE"
)
.
def
(
py
::
init
<
const
std
::
string
&>
(),
py
::
arg
(
"file_descriptor"
))
.
def
(
"calculate"
,
&
JMuonNPE_t
::
calculate
,
py
::
arg
(
"E"
),
py
::
arg
(
"R"
),
py
::
arg
(
"theta"
),
py
::
arg
(
"phi"
)
),
py
::
class_
<
JShowerNPE_t
>
(
m
,
"JShowerNPE"
)
.
def
(
py
::
init
<
const
std
::
string
&
,
int
>
(),
py
::
arg
(
"file_descriptor"
),
py
::
arg
(
"number_of_points"
)
=
0
)
.
def
(
"calculate"
,
&
JShowerNPE_t
::
calculate
,
py
::
arg
(
"E"
),
py
::
arg
(
"D"
),
py
::
arg
(
"cd"
),
py
::
arg
(
"theta"
),
py
::
arg
(
"phi"
)
);
}
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