Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::TreeUtils::RFriendInfo Struct Reference

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

Definition at line 42 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.
 
void AddFriend (const std::string &treeName, const std::vector< std::string > &fileNameGlobs, const std::string &alias="")
 Add information of a single friend.
 
void AddFriend (const std::vector< std::pair< std::string, std::string > > &treeAndFileNameGlobs, const std::string &alias="")
 Add information of a single friend.
 

Public Attributes

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

#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 30 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 43 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 56 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 just a vector with a single empty string.

Definition at line 57 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 49 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 44 of file InternalTreeUtils.hxx.

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

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