Analysis Software
Documentation for sPHENIX simulation software
|
#include "Acts/Utilities/TypeTraits.hpp"
#include <string>
#include <unordered_map>
#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/variadic/to_seq.hpp>
#include <pybind11/pybind11.h>
Go to the source code of this file.
Classes | |
struct | Acts::Python::Context |
Namespaces | |
namespace | Acts::Python |
Macros | |
#define | ACTS_PYTHON_MEMBER(name) _binding_instance.def_readwrite(#name, &_struct_type::name) |
#define | ACTS_PYTHON_STRUCT_BEGIN(obj, cls) |
#define | ACTS_PYTHON_STRUCT_END() |
#define | ACTS_PYTHON_MEMBER_LOOP(r, data, elem) ACTS_PYTHON_MEMBER(elem); |
This macro is needed to use the BOOST_PP_SEQ_FOR_EACH loop macro. | |
#define | ACTS_PYTHON_DECLARE_ALGORITHM(algorithm, mod, name,...) |
#define | ACTS_PYTHON_DECLARE_WRITER(writer, mod, name,...) |
Similar as above for writers. | |
#define | ACTS_PYTHON_DECLARE_READER(reader, mod, name,...) |
Similar as above for readers. | |
Functions | |
template<typename T , typename Ur , typename Ut > | |
void | Acts::Python::pythonRangeProperty (T &obj, const std::string &name, Ur Ut::*begin, Ur Ut::*end) |
void | Acts::Python::patchClassesWithConfig (pybind11::module_ &m) |
template<typename T > | |
void | Acts::Python::patchKwargsConstructor (T &c) |
Acts::Python::METHOD_TRAIT (write_method_trait_t, write) | |
A macro that uses Boost.Preprocessor to create the python binding for and algorithm and the additional config struct.
Definition at line 80 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 80 of file Utilities.hpp
Referenced by Acts::Python::addAmbiguityResolution(), Acts::Python::addExampleAlgorithms(), Acts::Python::addExaTrkXTrackFinding(), Acts::Python::addExperimentalGeometry(), Acts::Python::addGeant4HepMC3(), Acts::Python::addHepMC3(), Acts::Python::addOnnx(), Acts::Python::addOnnxMlpack(), Acts::Python::addPropagation(), Acts::Python::addTrackFinding(), Acts::Python::addTrackFitting(), Acts::Python::addTruthTracking(), and Acts::Python::addVertexing().
#define ACTS_PYTHON_DECLARE_READER | ( | reader, | |
mod, | |||
name, | |||
... | |||
) |
Similar as above for readers.
Definition at line 127 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 127 of file Utilities.hpp
Referenced by Acts::Python::addEDM4hep(), Acts::Python::addHepMC3(), and Acts::Python::addInput().
Similar as above for writers.
Definition at line 99 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 99 of file Utilities.hpp
Referenced by Acts::Python::addEDM4hep(), Acts::Python::addHepMC3(), and Acts::Python::addOutput().
#define ACTS_PYTHON_MEMBER | ( | name | ) | _binding_instance.def_readwrite(#name, &_struct_type::name) |
Definition at line 60 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 60 of file Utilities.hpp
Referenced by Acts::Python::addDetector(), Acts::Python::addDigitization(), Acts::Python::addExampleAlgorithms(), Acts::Python::addExaTrkXTrackFinding(), Acts::Python::addExperimentalGeometry(), Acts::Python::addFramework(), Acts::Python::addJson(), Acts::Python::addMaterial(), Acts::Python::addOutput(), Acts::Python::addPropagation(), Acts::Python::addSvg(), Acts::Python::addTrackFinding(), Acts::Python::addTruthTracking(), and PYBIND11_MODULE().
#define ACTS_PYTHON_MEMBER_LOOP | ( | r, | |
data, | |||
elem | |||
) | ACTS_PYTHON_MEMBER(elem); |
This macro is needed to use the BOOST_PP_SEQ_FOR_EACH loop macro.
Definition at line 76 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 76 of file Utilities.hpp
#define ACTS_PYTHON_STRUCT_BEGIN | ( | obj, | |
cls | |||
) |
Definition at line 63 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 63 of file Utilities.hpp
Referenced by Acts::Python::addDetector(), Acts::Python::addDigitization(), Acts::Python::addExampleAlgorithms(), Acts::Python::addExaTrkXTrackFinding(), Acts::Python::addExperimentalGeometry(), Acts::Python::addFramework(), Acts::Python::addJson(), Acts::Python::addMaterial(), Acts::Python::addOutput(), Acts::Python::addPropagation(), Acts::Python::addSvg(), Acts::Python::addTrackFinding(), Acts::Python::addTruthTracking(), and PYBIND11_MODULE().
#define ACTS_PYTHON_STRUCT_END | ( | ) |
Definition at line 70 of file Utilities.hpp.
View newest version in sPHENIX GitHub at line 70 of file Utilities.hpp
Referenced by Acts::Python::addDetector(), Acts::Python::addDigitization(), Acts::Python::addExampleAlgorithms(), Acts::Python::addExaTrkXTrackFinding(), Acts::Python::addExperimentalGeometry(), Acts::Python::addFramework(), Acts::Python::addJson(), Acts::Python::addMaterial(), Acts::Python::addOutput(), Acts::Python::addPropagation(), Acts::Python::addSvg(), Acts::Python::addTrackFinding(), Acts::Python::addTruthTracking(), and PYBIND11_MODULE().