35 std::vector<std::vector<std::string>> friendFileNames,
36 std::vector<std::vector<std::string>> friendChainSubNames,
37 std::vector<std::vector<Long64_t>> nEntriesPerTreePerFriend,
38 std::vector<std::unique_ptr<TVirtualIndex>> treeIndexInfos)
58 fFriendNames.emplace_back(std::make_pair(treeName, alias));
74 const std::string &alias,
const std::vector<Long64_t> &nEntriesVec,
77 fFriendNames.emplace_back(std::make_pair(treeName, alias));
81 nEntriesVec.empty() ? std::vector<Long64_t>(fileNameGlobs.size(), std::numeric_limits<Long64_t>::max())
94 const std::string &alias,
const std::vector<Long64_t> &nEntriesVec,
104 auto nPairs = treeAndFileNameGlobs.size();
105 theseFileNames.reserve(nPairs);
106 theseChainSubNames.reserve(nPairs);
108 auto fSubNamesIt = std::back_inserter(theseChainSubNames);
109 auto fNamesIt = std::back_inserter(theseFileNames);
111 for (
const auto &names : treeAndFileNameGlobs) {
112 *fSubNamesIt = names.first;
113 *fNamesIt = names.second;
116 nEntriesVec.empty() ? std::vector<Long64_t>(treeAndFileNameGlobs.size(), std::numeric_limits<Long64_t>::max())
long long Long64_t
Portable signed long integer 8 bytes.
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
Abstract interface for Tree Index.
std::vector< std::pair< std::string, std::string > > fFriendNames
Pairs of names and aliases of each friend tree/chain.
RFriendInfo & operator=(const RFriendInfo &)
std::vector< std::vector< std::string > > fFriendChainSubNames
Names of the subtrees of a friend TChain.
std::vector< std::unique_ptr< TVirtualIndex > > fTreeIndexInfos
Information on the friend's TTreeIndexes.
void AddFriend(const std::string &treeName, const std::string &fileNameGlob, const std::string &alias="", Long64_t nEntries=TTree::kMaxEntries, TVirtualIndex *indexInfo=nullptr)
Add information of a single friend.
std::vector< std::vector< std::string > > fFriendFileNames
Names of the files where each friend is stored.
std::vector< std::vector< Long64_t > > fNEntriesPerTreePerFriend
Number of entries contained in each tree of each friend.