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)
int totalEventsPassed() const
PYBIND11_MODULE(libFWCorePythonFramework, m)
int totalEventsFailed() const