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 335 of file PyROOTTTreePatch.cxx.

338 {
339 # define INSTALL_METHOD(pyclass, name, func) do { \
340  static PyMethodDef pdef; \
341  installMethod (pyclass, pdef, name, (PyCFunction)func); \
342  } while(0)
343 
344  INSTALL_METHOD (tree_pyclass, "SetNotify", treeSetNotify);
345  INSTALL_METHOD (tree_pyclass, "GetNotify", treeGetNotify);
346  INSTALL_METHOD (branch_pyclass, "SetAddress", branchSetAddress);
347 #undef INSTALL_METHOD
348 }

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:230
RootUtils::branchSetAddress
PyObject * branchSetAddress(PyObject *, PyObject *args)
Pythonization of TBranch::SetAddress.
Definition: PyROOTTTreePatch.cxx:257
RootUtils::treeSetNotify
PyObject * treeSetNotify(PyObject *, PyObject *args)
Implementation for pythonization of TTree::SetNotify.
Definition: PyROOTTTreePatch.cxx:179
INSTALL_METHOD
#define INSTALL_METHOD(pyclass, name, func)