From 4fccfb964fd4da378df8dc1405afec2003e734c3 Mon Sep 17 00:00:00 2001
From: Timon vanDieren <tvandieren@km3net.de>
Date: Tue, 30 Mar 2021 14:22:51 +0200
Subject: [PATCH] Update src/pdf.cc by adding binder for function JPDF in
 JPhysics/JPDF_t.hh

---
 src/pdf.cc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/pdf.cc b/src/pdf.cc
index 4361eaa..5ab1336 100644
--- a/src/pdf.cc
+++ b/src/pdf.cc
@@ -6,6 +6,19 @@ namespace py = pybind11;
 
 PYBIND11_MODULE(pdf, m) {
     m.doc() = "PDF utilities";
+    py::class_<JPDF>(m, "JSinglePDF")
+        .def(py::init<const std::string &, double, int, double>(),
+             py::arg("file_descriptor"),
+             py::arg("TTS"),
+             py::arg("number_of_points") = 25,
+             py::arg("epsilon") = 1e-10)
+        .def("calculate", &JPDF::calculate,
+             py::arg("E"),
+             py::arg("R"),
+             py::arg("theta"),
+             py::arg("phi"),
+             py::arg("t1")
+            ),
     py::class_<JMuonPDF_t>(m, "JMuonPDF")
         .def(py::init<const std::string &, double, int, double>(),
              py::arg("file_descriptor"),
-- 
GitLab