17#ifndef ROOT_INTERNAL_TREEUTILS_H
18#define ROOT_INTERNAL_TREEUTILS_H
43ROOT::TreeUtils::RFriendInfo
GetFriendInfo(
const TTree &tree,
bool retrieveEntries =
false);
78std::unique_ptr<TChain>
MakeChainForMT(
const std::string &
name =
"",
const std::string &title =
"");
81std::vector<std::string>
ExpandGlob(
const std::string &glob);
Basic types used by ROOT and required by TInterpreter.
long long Long64_t
Portable signed long integer 8 bytes.
#define ClassDefOverride(name, id)
void RegisterChain(TChain *c)
RNoCleanupNotifierHelper fNoCleanupNotifierHelper
void RegisterChain(TChain &c)
A chain is a collection of files containing TTree objects.
void PrependLink(Chain &chain)
TNotifyLink(RNoCleanupNotifierHelper *subscriber)
A TTree represents a columnar dataset.
virtual TObjArray * GetListOfBranches()
std::vector< std::string > GetTreeFullPaths(const TTree &tree)
Retrieve the full path(s) to a TTree or the trees in a TChain.
std::vector< std::string > GetFileNamesFromTree(const TTree &tree)
Get and store the file names associated with the input tree.
Namespace hosting functions and classes to retrieve tree information for internal use.
std::vector< std::string > GetTopLevelBranchNames(TTree &t)
Get all the top-level branches names, including the ones of the friend trees.
std::unique_ptr< TChain > MakeChainForMT(const std::string &name="", const std::string &title="")
Create a TChain object with options that avoid common causes of thread contention.
std::pair< bool, std::string > TreeUsesIndexedFriends(const TTree &tree)
Check whether the input tree is using any TTreeIndex.
std::vector< std::unique_ptr< TChain > > MakeFriends(const ROOT::TreeUtils::RFriendInfo &finfo)
Create friends from the main TTree.
ROOT::TreeUtils::RFriendInfo GetFriendInfo(const TTree &tree, bool retrieveEntries=false)
std::vector< std::string > ExpandGlob(const std::string &glob)
Expands input glob into a collection of full paths to files.
std::pair< std::vector< Long64_t >, Long64_t > GetClustersAndEntries(std::string_view treename, std::string_view path)
Returns the cluster boundaries and number of entries of the input tree.
void ClearMustCleanupBits(TObjArray &arr)
Reset the kMustCleanup bit of a TObjArray of TBranch objects (e.g.
Information about friend trees of a certain TTree or TChain object.