diff --git a/src/pdf.cc b/src/pdf.cc index 4361eaa04ad9ed53076d1b802ce86b984c38025f..5ab1336bd205aecb721317cf6ba219cdb9d7ee58 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"),