Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTreePyz.cxx File Reference
#include "../../cppyy/CPyCppyy/src/CPyCppyy.h"
#include "../../cppyy/CPyCppyy/src/CPPInstance.h"
#include "../../cppyy/CPyCppyy/src/ProxyWrappers.h"
#include "../../cppyy/CPyCppyy/src/Utility.h"
#include "../../cppyy/CPyCppyy/src/Dimensions.h"
#include "CPyCppyy/API.h"
#include "PyROOTPythonize.h"
#include "TClass.h"
#include "TTree.h"
#include "TBranch.h"
#include "TBranchElement.h"
#include "TBranchObject.h"
#include "TLeaf.h"
#include "TLeafElement.h"
#include "TLeafObject.h"
#include "TStreamerElement.h"
#include "TStreamerInfo.h"
#include <algorithm>
#include <sstream>
Include dependency graph for TTreePyz.cxx:

Functions

static std::vector< dim_tgetMultiDims (std::string const &title)
 Extracts static dimensions from the title of a TLeaf object.
 
static std::pair< void *, std::string > ResolveBranch (TTree *tree, const char *name, TBranch *branch)
 
static TBranchSearchForBranch (TTree *tree, const char *name)
 
static TLeafSearchForLeaf (TTree *tree, const char *name, TBranch *branch)
 
PyObjectTryBranchLeafListOverload (int argc, PyObject *args)
 Try to match the arguments of TTree::Branch to the following overload:
 
PyObjectTryBranchPtrToPtrOverloads (int argc, PyObject *args)
 Try to match the arguments of TTree::Branch to one of the following overloads:
 
static PyObjectWrapLeaf (TLeaf *leaf)
 

Function Documentation

◆ getMultiDims()

static std::vector< dim_t > getMultiDims ( std::string const &  title)
static

Extracts static dimensions from the title of a TLeaf object.

The function assumes that the title of the TLeaf object contains dimensions in the format [dim1][dim2]....

Note
In the current implementation of TLeaf, there is no way to extract the dimensions without string parsing.
Parameters
leafPointer to the TLeaf object from which to extract dimensions.
Returns
std::vector<dim_t> A vector containing the extracted dimensions.

Definition at line 114 of file TTreePyz.cxx.

◆ ResolveBranch()

static std::pair< void *, std::string > ResolveBranch ( TTree tree,
const char *  name,
TBranch branch 
)
static

Definition at line 76 of file TTreePyz.cxx.

◆ SearchForBranch()

static TBranch * SearchForBranch ( TTree tree,
const char *  name 
)
static

Definition at line 50 of file TTreePyz.cxx.

◆ SearchForLeaf()

static TLeaf * SearchForLeaf ( TTree tree,
const char *  name,
TBranch branch 
)
static

Definition at line 60 of file TTreePyz.cxx.

◆ TryBranchLeafListOverload()

PyObject * TryBranchLeafListOverload ( int  argc,
PyObject args 
)

Try to match the arguments of TTree::Branch to the following overload:

  • ( const char*, void*, const char*, Int_t = 32000 ) If the match succeeds, invoke Branch on the C++ tree with the right arguments.

Definition at line 237 of file TTreePyz.cxx.

◆ TryBranchPtrToPtrOverloads()

PyObject * TryBranchPtrToPtrOverloads ( int  argc,
PyObject args 
)

Try to match the arguments of TTree::Branch to one of the following overloads:

  • ( const char*, const char*, T**, Int_t = 32000, Int_t = 99 )
  • ( const char*, T**, Int_t = 32000, Int_t = 99 ) If the match succeeds, invoke Branch on the C++ tree with the right arguments.

Definition at line 280 of file TTreePyz.cxx.

◆ WrapLeaf()

static PyObject * WrapLeaf ( TLeaf leaf)
static

Definition at line 131 of file TTreePyz.cxx.