Logo ROOT  
Reference Guide
ROOT::Internal::TreeUtils::RFriendInfo Struct Reference

Information about friend trees of a certain TTree or TChain object.

Definition at line 46 of file InternalTreeUtils.hxx.

Public Member Functions

void AddFriend (const std::string &treeName, const std::string &fileNameGlob, const std::string &alias="")
 Add information of a single friend. More...
 
void AddFriend (const std::string &treeName, const std::vector< std::string > &fileNameGlobs, const std::string &alias="")
 Add information of a single friend. More...
 
void AddFriend (const std::vector< std::pair< std::string, std::string > > &treeAndFileNameGlobs, const std::string &alias="")
 Add information of a single friend. More...
 

Public Attributes

std::vector< std::vector< std::string > > fFriendChainSubNames
 Names of the subtrees of a friend TChain. More...
 
std::vector< std::vector< std::string > > fFriendFileNames
 Names of the files where each friend is stored. More...
 
std::vector< NameAliasfFriendNames
 Pairs of names and aliases of friend trees/chains. More...
 

#include <ROOT/InternalTreeUtils.hxx>

Member Function Documentation

◆ AddFriend() [1/3]

void ROOT::Internal::TreeUtils::RFriendInfo::AddFriend ( const std::string &  treeName,
const std::string &  fileNameGlob,
const std::string &  alias = "" 
)

Add information of a single friend.

Parameters
[in]treeNameName of the tree.
[in]fileNameGlobPath to the file. Refer to TChain::Add for globbing rules.
[in]aliasAlias for this friend.

Definition at line 32 of file InternalTreeUtils.cxx.

◆ AddFriend() [2/3]

void ROOT::Internal::TreeUtils::RFriendInfo::AddFriend ( const std::string &  treeName,
const std::vector< std::string > &  fileNameGlobs,
const std::string &  alias = "" 
)

Add information of a single friend.

Parameters
[in]treeNameName of the tree.
[in]fileNameGlobsPaths to the files. Refer to TChain::Add for globbing rules.
[in]aliasAlias for this friend.

Definition at line 45 of file InternalTreeUtils.cxx.

◆ AddFriend() [3/3]

void ROOT::Internal::TreeUtils::RFriendInfo::AddFriend ( const std::vector< std::pair< std::string, std::string > > &  treeAndFileNameGlobs,
const std::string &  alias = "" 
)

Add information of a single friend.

Parameters
[in]treeAndFileNameGlobsPairs of (treename, filename). Refer to TChain::Add for globbing rules.
[in]aliasAlias for this friend.

Definition at line 58 of file InternalTreeUtils.cxx.

Member Data Documentation

◆ fFriendChainSubNames

std::vector<std::vector<std::string> > ROOT::Internal::TreeUtils::RFriendInfo::fFriendChainSubNames

Names of the subtrees of a friend TChain.

fFriendChainSubNames[i] is the list of names of the trees that make a friend TChain whose information is stored at fFriendNames[i] and fFriendFileNames[i]. If instead the friend tree at position i is a TTree, fFriendChainSubNames[i] will be an empty vector.

Definition at line 61 of file InternalTreeUtils.hxx.

◆ fFriendFileNames

std::vector<std::vector<std::string> > ROOT::Internal::TreeUtils::RFriendInfo::fFriendFileNames

Names of the files where each friend is stored.

fFriendFileNames[i] is the list of files for friend with name fFriendNames[i].

Definition at line 53 of file InternalTreeUtils.hxx.

◆ fFriendNames

std::vector<NameAlias> ROOT::Internal::TreeUtils::RFriendInfo::fFriendNames

Pairs of names and aliases of friend trees/chains.

Definition at line 48 of file InternalTreeUtils.hxx.

Collaboration diagram for ROOT::Internal::TreeUtils::RFriendInfo:
[legend]

The documentation for this struct was generated from the following files: