10#include <boost/python/object.hpp>
28 const char* classname = instance.IsA()->GetName();
29 void* addr =
new T(instance);
30 PyObject* obj = TPython::CPPInstance_FromVoidPtr(addr, classname,
true);
31 return boost::python::object(boost::python::handle<>(obj));
boost::python::object createROOTObjectPyCopy(const T &instance)
Create a python wrapped copy from a class instance which has a ROOT dictionary.
Abstract base class for different kinds of events.