1 #ifndef FWCore_PythonFramework_PythonModule_h
2 #define FWCore_PythonFramework_PythonModule_h
9 #include <pybind11/pybind11.h>
22 pybind11::register_exception_translator([](std::exception_ptr
p) {
25 std::rethrow_exception(p);
27 PyErr_SetString(PyExc_RuntimeError, e.
what());
31 pybind11::class_<PythonEventProcessor>(
m,
"PythonEventProcessor")
32 .
def(pybind11::init<PyBind11ProcessDesc const &>())
int def(FILE *, FILE *, int)
char const * what() const noexceptoverride
PYBIND11_MODULE(pluginTrackerAlignment_PayloadInspector, m)
int totalEventsPassed() const
int totalEventsFailed() const