|
21 | 21 | #include <pybind11/stl.h> |
22 | 22 |
|
23 | 23 | namespace py = pybind11; |
| 24 | +using namespace py::literals; |
24 | 25 | using namespace ActsExamples; |
25 | 26 | using namespace Acts::Python; |
26 | 27 |
|
@@ -120,13 +121,15 @@ void addFramework(Context& ctx) { |
120 | 121 | .def_property_readonly("keys", &WhiteBoard::getKeys); |
121 | 122 |
|
122 | 123 | py::class_<AlgorithmContext>(mex, "AlgorithmContext") |
123 | | - .def(py::init<std::size_t, std::size_t, WhiteBoard&>()) |
| 124 | + .def(py::init<std::size_t, std::size_t, WhiteBoard&, std::size_t>(), |
| 125 | + "alg"_a, "event"_a, "store"_a, "thread"_a) |
124 | 126 | .def_readonly("algorithmNumber", &AlgorithmContext::algorithmNumber) |
125 | 127 | .def_readonly("eventNumber", &AlgorithmContext::eventNumber) |
126 | 128 | .def_property_readonly("eventStore", |
127 | 129 | [](const AlgorithmContext& self) -> WhiteBoard& { |
128 | 130 | return self.eventStore; |
129 | 131 | }) |
| 132 | + .def_readonly("threadId", &AlgorithmContext::threadId) |
130 | 133 | .def_readonly("magFieldContext", &AlgorithmContext::magFieldContext) |
131 | 134 | .def_readonly("geoContext", &AlgorithmContext::geoContext) |
132 | 135 | .def_readonly("calibContext", &AlgorithmContext::calibContext) |
|
0 commit comments