ATLAS Offline Software
Static Public Member Functions | List of all members
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. More...
 

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 }

The documentation for this class was generated from the following files:
RootUtils::treeGetNotify
PyObject * treeGetNotify(PyObject *, PyObject *args)
Implementation for pythonization of TTree::SetNotify.
Definition: PyROOTTTreePatch.cxx:241
RootUtils::branchSetAddress
PyObject * branchSetAddress(PyObject *, PyObject *args)
Pythonization of TBranch::SetAddress.
Definition: PyROOTTTreePatch.cxx:268
RootUtils::treeSetNotify
PyObject * treeSetNotify(PyObject *, PyObject *args)
Implementation for pythonization of TTree::SetNotify.
Definition: PyROOTTTreePatch.cxx:190
INSTALL_METHOD
#define INSTALL_METHOD(pyclass, name, func)