Skip to content
Snippets Groups Projects
Commit ae315375 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix shower bindings

parent cd1b1519
No related branches found
No related tags found
1 merge request!2Add shower pdf
Pipeline #9077 failed
......@@ -295,7 +295,7 @@ PYBIND11_MODULE(pdf, m) {
py::arg("TTS"),
py::arg("number_of_points") = 25,
py::arg("epsilon") = 1e-10)
.def("calculate", &JMuonPDF_t::calculate,
.def("calculate", &JShowerPDF_t::calculate,
py::arg("E"),
py::arg("D"),
py::arg("cd"),
......
......@@ -11,3 +11,12 @@ class TestMuonPDF(unittest.TestCase):
self.assertAlmostEqual(-2.22809691e-05, result.fp)
self.assertAlmostEqual(0.024902763, result.v)
self.assertAlmostEqual(0.116492968, result.V)
class TestShowerPDF(unittest.TestCase):
def test_pdf(self):
shower_pdf = jppy.pdf.JShowerPDF(PDFS, 0)
result = shower_pdf.calculate(10, 5, 0, 0, 23)
self.assertAlmostEqual(0.001535784, result.f)
self.assertAlmostEqual(-2.22809691e-05, result.fp)
self.assertAlmostEqual(0.024902763, result.v)
self.assertAlmostEqual(0.116492968, result.V)
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