Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:10:05

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2021 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/Plugins/Python/Utilities.hpp"
0010 #include "ActsExamples/Geant4/DetectorConstructionFactory.hpp"
0011 #include "ActsExamples/Geant4HepMC/EventRecording.hpp"
0012 
0013 #include <memory>
0014 
0015 #include <pybind11/pybind11.h>
0016 #include <pybind11/stl.h>
0017 
0018 namespace py = pybind11;
0019 using namespace pybind11::literals;
0020 
0021 using namespace Acts;
0022 using namespace ActsExamples;
0023 
0024 namespace Acts::Python {
0025 void addGeant4HepMC3(Context& ctx) {
0026   auto m = ctx.get("geant4");
0027 
0028   auto h3 = m.def_submodule("hepmc3");
0029 
0030   ACTS_PYTHON_DECLARE_ALGORITHM(
0031       EventRecording, h3, "EventRecording", inputParticles, outputHepMcTracks,
0032       detectorConstructionFactory, seed1, seed2, processesCombine,
0033       processSelect, processesReject);
0034 }
0035 
0036 }  // namespace Acts::Python