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 &>())
char const * what() const override
PYBIND11_MODULE(libFWCorePythonFramework, m)
int totalEventsPassed() const
int totalEventsFailed() const