84 if (
be->GetCurrentClass() && (
be->GetCurrentClass() !=
be->GetTargetClass()) && (0 <=
be->GetID())) {
86 return {
be->GetObject() +
offset,
be->GetCurrentClass()->GetName()};
93 return {*(
void **)
branch->GetAddress(),
branch->GetClassName()};
98 return {
nullptr,
branch->GetClassName()};
101 return {
nullptr,
""};
118 std::vector<dim_t>
dims;
119 std::stringstream
ss{title};
135 if (1 <
leaf->GetLenStatic() ||
leaf->GetLeafCount()) {
138 std::string typeName =
leaf->GetTypeName();
140 std::string title =
leaf->GetTitle();
142 if (std::count(title.begin(), title.end(),
'[') >= 2) {
149 if (
leaf->GetBranch())
150 address = (
void *)
leaf->GetBranch()->GetAddress();
152 address = (
void *)
leaf->GetValuePointer();
158 }
else if (
leaf->GetValuePointer()) {
163 value =
pcnv->FromMemory((
void *)*(
void **)
leaf->GetValuePointer());
340 if (buf && !
klName.empty()) {
351 }
else if (
argc == 5) {
353 }
else if (
argc == 6) {
#define CPyCppyy_PyText_FromString
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
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 std::vector< dim_t > getMultiDims(std::string const &title)
Extracts static dimensions from the title of a TLeaf object.
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.
Describe one element (data member) to be Streamed.
A TTree represents a columnar dataset.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual TLeaf * GetLeaf(const char *branchname, const char *leafname)
Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of fri...
CPYCPPYY_EXTERN bool Instance_Check(PyObject *pyobject)
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 std::string Instance_GetScopedFinalName(PyObject *pyobject)
CPYCPPYY_EXTERN void * Instance_AsVoidPtr(PyObject *pyobject)
CPYCPPYY_EXTERN void DestroyConverter(Converter *p)
RPY_EXPORTED TCppScope_t GetScope(const std::string &scope_name)
PyObject * BranchPyz(PyObject *self, PyObject *args)
Add pythonization for TTree::Branch.
void GetBuffer(PyObject *pyobject, void *&buf)
PyObject * GetBranchAttr(PyObject *self, PyObject *args)