8 #include <boost/python/module.hpp>
9 #include <boost/python/class.hpp>
10 #include <boost/python/exception_translator.hpp>
23 PyObject*
BindRootObject(
void*
object, TClass* klass, Bool_t isRef = kFALSE );
44 PyErr_SetString(PyExc_RuntimeError, iException.
what());
48 using namespace boost::python;
53 class_<edm::python::ConstEventWrapper>(
"ConstEvent",no_init)
54 .
def(
"getByLabel",getByLabel1)
55 .def(
"getByLabel",getByLabel2);
57 class_<edm::GenericHandle>(
"Handle",init<std::string>())
58 .def(
"get",getFromHandle);
virtual char const * what() const
void getByLabel(std::string const &, edm::GenericHandle &) const
BOOST_PYTHON_MODULE(pluginBeamSpotObjectsPyInterface)
Reflex::Object const * product() const
PyObject * BindRootObject(void *object, TClass *klass, Bool_t isRef=kFALSE)
Reflex::Type const & type() const
static void exceptionTranslation(cms::Exception const &iException)