Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:12:02

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 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 https://mozilla.org/MPL/2.0/.
0008 
0009 #include "Acts/Plugins/Python/Utilities.hpp"
0010 #include "ActsExamples/Geant4HepMC/EventRecording.hpp"
0011 
0012 #include <pybind11/pybind11.h>
0013 #include <pybind11/stl.h>
0014 
0015 namespace py = pybind11;
0016 using namespace pybind11::literals;
0017 
0018 using namespace Acts;
0019 using namespace ActsExamples;
0020 
0021 namespace Acts::Python {
0022 void addGeant4HepMC3(Context& ctx) {
0023   auto m = ctx.get("geant4");
0024 
0025   auto h3 = m.def_submodule("hepmc3");
0026 
0027   ACTS_PYTHON_DECLARE_ALGORITHM(
0028       EventRecording, h3, "EventRecording", inputParticles, outputHepMcTracks,
0029       detector, seed1, seed2, processesCombine, processSelect, processesReject);
0030 }
0031 
0032 }  // namespace Acts::Python