File indexing completed on 2025-08-05 08:10:05
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Utilities/TypeTraits.hpp"
0010 #include "ActsExamples/DD4hepDetector/DD4hepDetector.hpp"
0011 #include "ActsExamples/DDG4/DDG4DetectorConstruction.hpp"
0012 #include "ActsExamples/Framework/ProcessCode.hpp"
0013 #include "ActsExamples/Geant4/RegionCreator.hpp"
0014
0015 #include <G4VUserDetectorConstruction.hh>
0016 #include <pybind11/pybind11.h>
0017 #include <pybind11/stl.h>
0018
0019 class G4VUserDetectorConstruction;
0020
0021 namespace py = pybind11;
0022
0023 using namespace ActsExamples;
0024 using namespace Acts;
0025
0026 PYBIND11_MODULE(ActsPythonBindingsDDG4, m) {
0027 py::module_::import("acts.ActsPythonBindingsGeant4");
0028
0029 py::class_<DDG4DetectorConstructionFactory, DetectorConstructionFactory,
0030 std::shared_ptr<DDG4DetectorConstructionFactory>>(
0031 m, "DDG4DetectorConstructionFactory")
0032 .def(py::init<std::shared_ptr<DD4hep::DD4hepDetector>,
0033 std::vector<std::shared_ptr<RegionCreator>>>(),
0034 py::arg("detector"),
0035 py::arg("regionCreators") =
0036 std::vector<std::shared_ptr<RegionCreator>>());
0037 }