Logo ROOT   master
Reference Guide
ROOT::Internal::TTreeView Class Reference

Definition at line 59 of file TTreeProcessorMT.hxx.

Public Types

using TreeReaderEntryListPair = std::pair< std::unique_ptr< TTreeReader >, std::unique_ptr< TEntryList > >
 

Public Member Functions

 TTreeView ()=default
 
 TTreeView (const TTreeView &)
 
TreeReaderEntryListPair GetTreeReader (Long64_t start, Long64_t end, const std::vector< std::string > &treeName, const std::vector< std::string > &fileNames, const FriendInfo &friendInfo, TEntryList entryList, const std::vector< Long64_t > &nEntries, const std::vector< std::vector< Long64_t >> &friendEntries)
 Get a TTreeReader for the current tree of this view. More...
 

Private Member Functions

void MakeChain (const std::vector< std::string > &treeName, const std::vector< std::string > &fileNames, const FriendInfo &friendInfo, const std::vector< Long64_t > &nEntries, const std::vector< std::vector< Long64_t >> &friendEntries)
 Construct fChain, also adding friends if needed and injecting knowledge of offsets if available. More...
 
std::unique_ptr< TTreeReaderMakeReader (Long64_t start, Long64_t end)
 
TreeReaderEntryListPair MakeReaderWithEntryList (TEntryList &globalList, Long64_t start, Long64_t end)
 

Private Attributes

std::unique_ptr< TChainfChain
 Chain on which to operate. More...
 
std::vector< std::unique_ptr< TChain > > fFriends
 Friends of the tree/chain. More...
 

#include <ROOT/TTreeProcessorMT.hxx>

Member Typedef Documentation

◆ TreeReaderEntryListPair

using ROOT::Internal::TTreeView::TreeReaderEntryListPair = std::pair<std::unique_ptr<TTreeReader>, std::unique_ptr<TEntryList> >

Definition at line 61 of file TTreeProcessorMT.hxx.

Constructor & Destructor Documentation

◆ TTreeView() [1/2]

ROOT::Internal::TTreeView::TTreeView ( )
default

◆ TTreeView() [2/2]

ROOT::Internal::TTreeView::TTreeView ( const TTreeView )
inline

Definition at line 77 of file TTreeProcessorMT.hxx.

Member Function Documentation

◆ GetTreeReader()

TTreeView::TreeReaderEntryListPair TTreeView::GetTreeReader ( Long64_t  start,
Long64_t  end,
const std::vector< std::string > &  treeName,
const std::vector< std::string > &  fileNames,
const FriendInfo friendInfo,
TEntryList  entryList,
const std::vector< Long64_t > &  nEntries,
const std::vector< std::vector< Long64_t >> &  friendEntries 
)

Get a TTreeReader for the current tree of this view.

Definition at line 304 of file TTreeProcessorMT.cxx.

◆ MakeChain()

void TTreeView::MakeChain ( const std::vector< std::string > &  treeNames,
const std::vector< std::string > &  fileNames,
const FriendInfo friendInfo,
const std::vector< Long64_t > &  nEntries,
const std::vector< std::vector< Long64_t >> &  friendEntries 
)
private

Construct fChain, also adding friends if needed and injecting knowledge of offsets if available.

Parameters
[in]treeNamesName of the tree for each file in fileNames.
[in]fileNamesFiles to be opened.
[in]friendInfoInformation about TTree friends, if any.
[in]nEntriesNumber of entries to be processed.
[in]friendEntriesNumber of entries in each friend. Expected to have same ordering as friendInfo.

Definition at line 213 of file TTreeProcessorMT.cxx.

◆ MakeReader()

std::unique_ptr< TTreeReader > TTreeView::MakeReader ( Long64_t  start,
Long64_t  end 
)
private

Definition at line 294 of file TTreeProcessorMT.cxx.

◆ MakeReaderWithEntryList()

TTreeView::TreeReaderEntryListPair TTreeView::MakeReaderWithEntryList ( TEntryList globalList,
Long64_t  start,
Long64_t  end 
)
private

Definition at line 247 of file TTreeProcessorMT.cxx.

Member Data Documentation

◆ fChain

std::unique_ptr<TChain> ROOT::Internal::TTreeView::fChain
private

Chain on which to operate.

Definition at line 66 of file TTreeProcessorMT.hxx.

◆ fFriends

std::vector<std::unique_ptr<TChain> > ROOT::Internal::TTreeView::fFriends
private

Friends of the tree/chain.

Definition at line 65 of file TTreeProcessorMT.hxx.

Libraries for ROOT::Internal::TTreeView:
[legend]

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