Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepMC3.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HepMC3.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 <memory>
15 
16 #include <pybind11/pybind11.h>
17 #include <pybind11/stl.h>
18 
19 namespace py = pybind11;
20 using namespace pybind11::literals;
21 
22 using namespace Acts;
23 
24 namespace Acts::Python {
25 void addHepMC3(Context& ctx) {
26  auto [m, mex] = ctx.get("main", "examples");
27 
28  auto hepmc3 = mex.def_submodule("_hepmc3");
29 
31  "HepMCProcessExtractor", inputEvents,
32  outputSimulationProcesses, extractionProcess,
33  absPdgMin, absPdgMax, pMin);
34 
36  "HepMC3AsciiWriter", outputDir, outputStem,
37  inputEvents);
38 
40  "HepMC3AsciiReader", inputDir, inputStem,
41  outputEvents);
42 }
43 } // namespace Acts::Python