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 "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
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
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::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.
 

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 31 of file InternalTreeUtils.cxx.