Logo ROOT  
Reference Guide
InternalTreeUtils.cxx File Reference
#include "ROOT/InternalTreeUtils.hxx"
#include "TBranch.h"
#include "TChain.h"
#include "TCollection.h"
#include "TFile.h"
#include "TFriendElement.h"
#include "TTree.h"
#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. More...
 
std::vector< std::string > ROOT::Internal::TreeUtils::GetFileNamesFromTree (const TTree &tree)
 Get and store the file names associated with the input tree. More...
 
RFriendInfo ROOT::Internal::TreeUtils::GetFriendInfo (const TTree &tree)
 Get and store the names, aliases and file names of the direct friends of the tree. More...
 
std::vector< std::string > ROOT::Internal::TreeUtils::GetTopLevelBranchNames (TTree &t)
 Get all the top-level branches names, including the ones of the friend trees. More...
 
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)
 Retrieve the full path(s) to a TTree or the trees in a TChain. More...
 
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. More...
 

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