Skip to content

Commit

Permalink
Merge pull request #321 from rest-for-physics/nkx111-patch-2
Browse files Browse the repository at this point in the history
TRestAnalysisTree: recover GetHistogram() for splitted files
  • Loading branch information
nkx111 authored Oct 27, 2022
2 parents 1844ab1 + a1316ce commit 1194199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/framework/core/inc/TRestAnalysisTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ class TRestAnalysisTree : public TTree {
}
Long64_t GetReadEntry() const { return fChain ? fChain->GetReadEntry() : TTree::GetReadEntry(); }

TH1* GetHistogram() { return fChain ? fChain->GetHistogram() : TTree::GetHistogram(); }
TLeaf* GetLeaf(const char* branchname, const char* leafname) {
return fChain ? fChain->GetLeaf(branchname, leafname) : TTree::GetLeaf(branchname, leafname);
}
Expand Down

0 comments on commit 1194199

Please sign in to comment.