Skip to content
Snippets Groups Projects
Verified Commit 4fccfb96 authored by Timon vanDieren's avatar Timon vanDieren Committed by Tamas Gal
Browse files

Update src/pdf.cc by adding binder for function JPDF in JPhysics/JPDF_t.hh

parent cb79995b
No related branches found
No related tags found
1 merge request!5Binder for function JPDF in JPhysics/JPDF_t.hh
Pipeline #18982 passed
......@@ -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"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment