47 auto *friendAtIdx = friends->
At(frIdx);
65 auto *topLevelFriendTree = getFriendAtIdx(
main,
fIndex);
66 if (topLevelFriendTree) {
67 fHasIndex = (topLevelFriendTree->GetTreeIndex() !=
nullptr);
71 auto *localFriendTree = getFriendAtIdx(
main->GetTree(),
fIndex);
72 if (localFriendTree) {
76 fHasIndex = (localFriendTree->GetTreeIndex() !=
nullptr);
111 fDirector.SetTree(element ? element->GetTree() :
nullptr);
int Int_t
Signed integer 4 bytes (int).
long long Long64_t
Portable signed long integer 8 bytes.
void Attach(Detail::TBranchProxy *p)
Attach a TBranchProxy object to this director.
Int_t fIndex
Index of this tree in the list of friends.
TBranchProxyDirector fDirector
Contain pointer to TTree and entry to be read.
Long64_t GetReadEntry() const
Return the entry number currently being looked at.
void ResetReadEntry()
Refresh the cached read entry number from the original tree.
void Update(TTree *newmain)
Update the address of the underlying tree.
bool fHasIndex
Whether this friend has a TTreeIndex attached.
A TFriendElement TF describes a TTree object TF in a file.
virtual TTree * GetTree()
Return pointer to friend TTree.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
A TTree represents a columnar dataset.
virtual TTree * GetTree() const
virtual TList * GetListOfFriends() const
int main(int argc, char **argv)