18 #include <unordered_map>
21 #include <pybind11/pybind11.h>
22 #include <pybind11/stl.h>
24 namespace py = pybind11;
25 using namespace ActsExamples;
27 namespace Acts::Python {
29 auto mex = ctx.
get(
"examples");
31 auto p8 = mex.def_submodule(
"pythia8");
36 std::shared_ptr<Gen>>(p8,
"Pythia8Generator")
37 .def(py::init<const Gen::Config&, Acts::Logging::Level>(),
38 py::arg(
"config"), py::arg(
"level"));
40 py::class_<Gen::Config>(
gen,
"Config")
42 .def_readwrite(
"pdgBeam0", &Gen::Config::pdgBeam0)
43 .def_readwrite(
"pdgBeam1", &Gen::Config::pdgBeam1)
44 .def_readwrite(
"cmsEnergy", &Gen::Config::cmsEnergy)
45 .def_readwrite(
"settings", &Gen::Config::settings)
46 .def_readwrite(
"printShortEventListing",
47 &Gen::Config::printShortEventListing)
48 .def_readwrite(
"printLongEventListing",
49 &Gen::Config::printLongEventListing);