ATLAS Offline Software
Loading...
Searching...
No Matches
RootUtils::PyROOTTTreePatch Class Reference

#include <PyROOTTTreePatch.h>

Collaboration diagram for RootUtils::PyROOTTTreePatch:

Static Public Member Functions

static void Initialize (PyObject *tree_pyclass, PyObject *chain_pyclass, PyObject *branch_pyclass)
 Install the PyROOT patches.

Detailed Description

Definition at line 42 of file PyROOTTTreePatch.h.

Member Function Documentation

◆ Initialize()

void RootUtils::PyROOTTTreePatch::Initialize ( PyObject * tree_pyclass,
PyObject * chain_pyclass,
PyObject * branch_pyclass )
static

Install the PyROOT patches.

Parameters
tree_pyclassThe TTree Python class.
chain_pyclassThe TChain Python class.
branch_pyclassThe TBranch Python class.

Definition at line 348 of file PyROOTTTreePatch.cxx.

351{
352# define INSTALL_METHOD(pyclass, name, func) do { \
353 static PyMethodDef pdef; \
354 installMethod (pyclass, pdef, name, (PyCFunction)func); \
355 } while(0)
356
357 INSTALL_METHOD (tree_pyclass, "SetNotify", treeSetNotify);
358 INSTALL_METHOD (tree_pyclass, "GetNotify", treeGetNotify);
359 INSTALL_METHOD (branch_pyclass, "SetAddress", branchSetAddress);
360#undef INSTALL_METHOD
361}
#define INSTALL_METHOD(pyclass, name, func)
PyObject * treeGetNotify(PyObject *, PyObject *args)
Implementation for pythonization of TTree::SetNotify.
PyObject * treeSetNotify(PyObject *, PyObject *args)
Implementation for pythonization of TTree::SetNotify.
PyObject * branchSetAddress(PyObject *, PyObject *args)
Pythonization of TBranch::SetAddress.

The documentation for this class was generated from the following files: