Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Internal::TTreeView Class Reference

Definition at line 48 of file TTreeProcessorMT.hxx.

Public Member Functions

 TTreeView (std::string_view fn, std::string_view tn)
 Constructor based on a file name. More...
 
 TTreeView (const std::vector< std::string_view > &fns, std::string_view tn)
 Constructor based on a collection of file names. More...
 
 TTreeView (TTree &tree)
 Constructor based on a TTree. More...
 
 TTreeView (TTree &tree, TEntryList &entries)
 Constructor based on a TTree and a TEntryList. More...
 
 TTreeView (const TTreeView &view)
 Copy constructor. More...
 
TTree::TClusterIterator GetClusterIterator ()
 Get the cluster iterator for the current tree of this view, starting from entry zero. More...
 
Long64_t GetEntries () const
 Get the number of entries of the current tree of this view. More...
 
size_t GetNumFiles () const
 Get the number of files of this view. More...
 
std::unique_ptr< TTreeReaderGetTreeReader (Long64_t start, Long64_t end)
 Get a TTreeReader for the current tree of this view. More...
 
void SetCurrent (unsigned int i)
 Set the current file and tree of this view. More...
 

Private Member Functions

void Init ()
 Initialize the file and the tree for this view, first looking for a tree in the file if necessary. More...
 

Private Attributes

TEntryList fCurrentEntryList
 Entry numbers for the current range being processed. More...
 
std::unique_ptr< TFilefCurrentFile
 ! Current file object of this view. More...
 
unsigned int fCurrentIdx
 ! Index of the current file. More...
 
TTreefCurrentTree
 ! Current tree object of this view. More...
 
std::vector< TEntryListfEntryLists
 Entry numbers to be processed per tree/file. More...
 
std::vector< std::string > fFileNames
 Names of the files. More...
 
std::string fTreeName
 Name of the tree. More...
 

#include <ROOT/TTreeProcessorMT.hxx>

Constructor & Destructor Documentation

◆ TTreeView() [1/5]

ROOT::Internal::TTreeView::TTreeView ( std::string_view  fn,
std::string_view  tn 
)
inline

Constructor based on a file name.

Parameters
[in]fnName of the file containing the tree to process.
[in]tnName of the tree to process. If not provided, the implementation will automatically search for a tree in the file.

Definition at line 99 of file TTreeProcessorMT.hxx.

◆ TTreeView() [2/5]

ROOT::Internal::TTreeView::TTreeView ( const std::vector< std::string_view > &  fns,
std::string_view  tn 
)
inline

Constructor based on a collection of file names.

Parameters
[in]fnsCollection of file names containing the tree to process.
[in]tnName of the tree to process. If not provided, the implementation will automatically search for a tree in the collection of files.

Definition at line 111 of file TTreeProcessorMT.hxx.

◆ TTreeView() [3/5]

ROOT::Internal::TTreeView::TTreeView ( TTree tree)
inline

Constructor based on a TTree.

Parameters
[in]treeTree or chain of files containing the tree to process.

Definition at line 127 of file TTreeProcessorMT.hxx.

◆ TTreeView() [4/5]

ROOT::Internal::TTreeView::TTreeView ( TTree tree,
TEntryList entries 
)
inline

Constructor based on a TTree and a TEntryList.

Parameters
[in]treeTree or chain of files containing the tree to process.
[in]entriesList of entry numbers to process.

Definition at line 159 of file TTreeProcessorMT.hxx.

◆ TTreeView() [5/5]

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

Copy constructor.

Parameters
[in]viewObject to copy.

Definition at line 194 of file TTreeProcessorMT.hxx.

Member Function Documentation

◆ GetClusterIterator()

TTree::TClusterIterator ROOT::Internal::TTreeView::GetClusterIterator ( )
inline

Get the cluster iterator for the current tree of this view, starting from entry zero.

Definition at line 208 of file TTreeProcessorMT.hxx.

◆ GetEntries()

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

Get the number of entries of the current tree of this view.

Definition at line 243 of file TTreeProcessorMT.hxx.

◆ GetNumFiles()

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

Get the number of files of this view.

Definition at line 250 of file TTreeProcessorMT.hxx.

◆ GetTreeReader()

std::unique_ptr<TTreeReader> ROOT::Internal::TTreeView::GetTreeReader ( Long64_t  start,
Long64_t  end 
)
inline

Get a TTreeReader for the current tree of this view.

Definition at line 215 of file TTreeProcessorMT.hxx.

◆ Init()

void ROOT::Internal::TTreeView::Init ( void  )
inlineprivate

Initialize the file and the tree for this view, first looking for a tree in the file if necessary.

Definition at line 61 of file TTreeProcessorMT.hxx.

◆ SetCurrent()

void ROOT::Internal::TTreeView::SetCurrent ( unsigned int  i)
inline

Set the current file and tree of this view.

Definition at line 257 of file TTreeProcessorMT.hxx.

Member Data Documentation

◆ fCurrentEntryList

TEntryList ROOT::Internal::TTreeView::fCurrentEntryList
private

Entry numbers for the current range being processed.

Definition at line 56 of file TTreeProcessorMT.hxx.

◆ fCurrentFile

std::unique_ptr<TFile> ROOT::Internal::TTreeView::fCurrentFile
private

! Current file object of this view.

Definition at line 52 of file TTreeProcessorMT.hxx.

◆ fCurrentIdx

unsigned int ROOT::Internal::TTreeView::fCurrentIdx
private

! Index of the current file.

Definition at line 54 of file TTreeProcessorMT.hxx.

◆ fCurrentTree

TTree* ROOT::Internal::TTreeView::fCurrentTree
private

! Current tree object of this view.

Definition at line 53 of file TTreeProcessorMT.hxx.

◆ fEntryLists

std::vector<TEntryList> ROOT::Internal::TTreeView::fEntryLists
private

Entry numbers to be processed per tree/file.

Definition at line 55 of file TTreeProcessorMT.hxx.

◆ fFileNames

std::vector<std::string> ROOT::Internal::TTreeView::fFileNames
private

Names of the files.

Definition at line 50 of file TTreeProcessorMT.hxx.

◆ fTreeName

std::string ROOT::Internal::TTreeView::fTreeName
private

Name of the tree.

Definition at line 51 of file TTreeProcessorMT.hxx.


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