49 if (fLeafName.size() > 0){
51 Long64_t newChainOffset = fTreeReader->GetTree()->GetChainOffset();
53 if (newChainOffset != fLastChainOffset){
54 fLastChainOffset = newChainOffset;
59 Error(
"TTreeReaderValueBase::GetLeaf()",
"Unable to get the tree from the TTreeReader");
66 Error(
"TTreeReaderValueBase::GetLeaf()",
"Unable to get the branch from the tree");
70 fLeaf = myBranch->
GetLeaf(fLeafName.c_str());
72 Error(
"TTreeReaderValueBase::GetLeaf()",
"Failed to get the leaf from the branch");
78 Error(
"TTreeReaderValueBase::GetLeaf()",
"We are not reading a leaf");
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
TTreeReaderFast * fTreeReader
void CreateProxy()
Attach this value to the appropriate branch on the tree.
virtual ~TTreeReaderValueFastBase()
Unregister from tree reader, cleanup.
void DeregisterValueReader(ROOT::Experimental::Internal::TTreeReaderValueFastBase *reader)
Remove a value reader for this tree.
@ kSetupMissingBranch
The array cannot find its counter branch: Array[CounterBranch].
@ kSetupMatch
The branch class type is not a collection.
A TTree is a list of TBranches.
virtual TLeaf * GetLeaf(const char *name) const
Return pointer to the 1st Leaf named name in thisBranch.
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 TTree * GetTree() const