Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geant4DD4hepComponent.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Geant4DD4hepComponent.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
13 
14 #include <G4VUserDetectorConstruction.hh>
15 #include <pybind11/pybind11.h>
16 #include <pybind11/stl.h>
17 
18 class G4VUserDetectorConstruction;
19 
20 namespace py = pybind11;
21 
22 using namespace ActsExamples;
23 using namespace Acts;
24 
25 PYBIND11_MODULE(ActsPythonBindingsDDG4, m) {
26  py::module_::import("acts.ActsPythonBindingsGeant4");
27 
29  std::shared_ptr<DDG4DetectorConstructionFactory>>(
30  m, "DDG4DetectorConstructionFactory")
31  .def(py::init<std::shared_ptr<DD4hep::DD4hepDetector>>());
32 }