Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
InternalTreeUtils.cxx File Reference
#include "ROOT/InternalTreeUtils.hxx"
#include "ROOT/RRangeCast.hxx"
#include "TBranch.h"
#include "TChain.h"
#include "TCollection.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TFriendElement.h"
#include "TObjString.h"
#include "TRegexp.h"
#include "TString.h"
#include "TSystem.h"
#include "TSystemFile.h"
#include "TTree.h"
#include "TVirtualIndex.h"
#include <limits>
#include <utility>
#include <vector>
#include <stdexcept>
#include <string>
Include dependency graph for InternalTreeUtils.cxx:

Namespaces

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 
namespace  ROOT::Internal
 
namespace  ROOT::Internal::TreeUtils
 Namespace hosting functions and classes to retrieve tree information for internal use.
 

Functions

void ROOT::Internal::TreeUtils::ClearMustCleanupBits (TObjArray &branches)
 Reset the kMustCleanup bit of a TObjArray of TBranch objects (e.g.
 
std::vector< std::string > ROOT::Internal::TreeUtils::ExpandGlob (const std::string &glob)
 Expands input glob into a collection of full paths to files.
 
std::pair< std::vector< Long64_t >, Long64_tROOT::Internal::TreeUtils::GetClustersAndEntries (std::string_view treename, std::string_view path)
 Returns the cluster boundaries and number of entries of the input tree.
 
std::vector< std::string > ROOT::Internal::TreeUtils::GetFileNamesFromTree (const TTree &tree)
 
ROOT::TreeUtils::RFriendInfo ROOT::Internal::TreeUtils::GetFriendInfo (const TTree &tree, bool retrieveEntries=false)
 
std::vector< std::string > ROOT::Internal::TreeUtils::GetTopLevelBranchNames (TTree &t)
 Get all the top-level branches names, including the ones of the friend trees.
 
static void GetTopLevelBranchNamesImpl (TTree &t, std::unordered_set< std::string > &bNamesReg, std::vector< std::string > &bNames, std::unordered_set< TTree * > &analysedTrees, const std::string friendName="")
 
std::vector< std::string > ROOT::Internal::TreeUtils::GetTreeFullPaths (const TTree &tree)
 
std::unique_ptr< TChainROOT::Internal::TreeUtils::MakeChainForMT (const std::string &name, const std::string &title)
 Create a TChain object with options that avoid common causes of thread contention.
 
std::vector< std::unique_ptr< TChain > > ROOT::Internal::TreeUtils::MakeFriends (const ROOT::TreeUtils::RFriendInfo &finfo)
 Create friends from the main TTree.
 
void ROOT::Internal::TreeUtils::RecursiveGlob (TList &out, const std::string &glob)
 Recursively expand the glob to take care of potential wildcard specials for subdirectories in the glob.
 
std::pair< bool, std::string > ROOT::Internal::TreeUtils::TreeUsesIndexedFriends (const TTree &tree)
 Check whether the input tree is using any TTreeIndex.
 

Function Documentation

◆ GetTopLevelBranchNamesImpl()

static void GetTopLevelBranchNamesImpl ( TTree t,
std::unordered_set< std::string > &  bNamesReg,
std::vector< std::string > &  bNames,
std::unordered_set< TTree * > &  analysedTrees,
const std::string  friendName = "" 
)
static

Definition at line 32 of file InternalTreeUtils.cxx.