49 if (!fLeafName.empty()){
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 specified branch cannot be found.
@ kSetupMatch
This branch has been set up, branch data type and reader template type match, reading should succeed.
@ kReadError
Problem reading data.
@ kReadSuccess
Data read okay.
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