#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
#include <boost/python/exception_translator.hpp>
#include "FWCore/Framework/interface/GenericHandle.h"
#include "FWCore/Python/src/EventWrapper.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "Rtypes.h"
#include "TClass.h"
Go to the source code of this file.
Namespaces | |
namespace | PyROOT |
Functions | |
PyObject * | PyROOT::BindRootObject (void *object, TClass *klass, Bool_t isRef=kFALSE) |
BOOST_PYTHON_MODULE (libFWCorePython) | |
static void | exceptionTranslation (cms::Exception const &iException) |
BOOST_PYTHON_MODULE | ( | libFWCorePython | ) |
Definition at line 49 of file PyModule.cc.
References def, and exceptionTranslation().
{ register_exception_translator< cms::Exception >(exceptionTranslation); class_<edm::python::ConstEventWrapper>("ConstEvent",no_init) .def("getByLabel",getByLabel1) .def("getByLabel",getByLabel2); class_<edm::GenericHandle>("Handle",init<std::string>()) .def("get",getFromHandle); }
static void exceptionTranslation | ( | cms::Exception const & | iException | ) | [static] |
Definition at line 43 of file PyModule.cc.
References cms::Exception::what().
Referenced by BOOST_PYTHON_MODULE().
{ PyErr_SetString(PyExc_RuntimeError, iException.what()); }