20#ifdef CPYCPPYY_VERSION_HEX
57 branch = tree->GetBranch((std::string(
name) +
'.').c_str());
83 if (
be->GetCurrentClass() && (
be->GetCurrentClass() !=
be->GetTargetClass()) && (0 <=
be->GetID())) {
85 return {
be->GetObject() +
offset,
be->GetCurrentClass()->GetName()};
93 return {*(
void **)
branch->GetAddress(),
branch->GetClassName()};
98 return {
nullptr,
branch->GetClassName()};
101 return {
nullptr,
""};
106 if (1 <
leaf->GetLenStatic() ||
leaf->GetLeafCount()) {
109 std::string typeName =
leaf->GetTypeName();
110#ifdef CPYCPPYY_VERSION_HEX
119 if (
leaf->GetBranch())
120 address = (
void *)
leaf->GetBranch()->GetAddress();
122 address = (
void *)
leaf->GetValuePointer();
128 }
else if (
leaf->GetValuePointer()) {
133 value =
pcnv->FromMemory((
void *)*(
void **)
leaf->GetValuePointer());
295 if (buf && !
klName.empty()) {
299 }
else if (
argc == 5) {
301 }
else if (
argc == 6) {
#define CPyCppyy_PyText_FromString
std::ios_base::fmtflags fFlags
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
static TBranch * SearchForBranch(TTree *tree, const char *name)
PyObject * TryBranchLeafListOverload(int argc, PyObject *args)
Try to match the arguments of TTree::Branch to the following overload:
PyObject * TryBranchPtrToPtrOverloads(int argc, PyObject *args)
Try to match the arguments of TTree::Branch to one of the following overloads:
static std::pair< void *, std::string > ResolveBranch(TTree *tree, const char *name, TBranch *branch)
static TLeaf * SearchForLeaf(TTree *tree, const char *name, TBranch *branch)
static PyObject * WrapLeaf(TLeaf *leaf)
A Branch for the case of an object.
A TTree is a list of TBranches.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
A TTree represents a columnar dataset.
Py_ssize_t GetBuffer(PyObject *pyobject, char tc, int size, void *&buf, bool check=true)
bool CPPInstance_Check(T *object)
CPYCPPYY_EXTERN Converter * CreateConverter(const std::string &name, cdims_t=0)
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
CPYCPPYY_EXTERN void * Instance_AsVoidPtr(PyObject *pyobject)
CPYCPPYY_EXTERN void DestroyConverter(Converter *p)
RPY_EXPORTED std::string GetScopedFinalName(TCppType_t type)
RPY_EXPORTED TCppScope_t GetScope(const std::string &scope_name)
PyObject * BranchPyz(PyObject *self, PyObject *args)
Add pythonization for TTree::Branch.
PyObject * GetBranchAttr(PyObject *self, PyObject *args)