Logo ROOT   6.08/07
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 58 of file TTreeProcessor.hxx.

Public Member Functions

 TTreeView (std::string_view fn, std::string_view tn)
 Regular constructor. More...
 
 TTreeView (const TTreeView &view)
 Copy constructor. More...
 
TTree::TClusterIterator GetClusterIterator ()
 Get the cluster iterator for the tree of this view, starting from entry zero. More...
 
Long64_t GetEntries () const
 Get the number of entries of the tree of this view. More...
 
std::unique_ptr< TTreeReaderGetTreeReader () const
 Get a TTreeReader for the 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

std::unique_ptr< TFilefFile
 ! File object of this view. More...
 
std::string_view fFileName
 Name of the file. More...
 
std::unique_ptr< TTreefTree
 ! Tree object of this view. More...
 
std::string_view fTreeName
 Name of the tree. More...
 

#include <ROOT/TTreeProcessor.hxx>

Constructor & Destructor Documentation

◆ TTreeView() [1/2]

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

Regular constructor.

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

Definition at line 100 of file TTreeProcessor.hxx.

◆ TTreeView() [2/2]

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

Copy constructor.

Parameters
[in]Objectto copy.

Definition at line 108 of file TTreeProcessor.hxx.

Member Function Documentation

◆ GetClusterIterator()

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

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

Definition at line 116 of file TTreeProcessor.hxx.

◆ GetEntries()

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

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

Definition at line 130 of file TTreeProcessor.hxx.

◆ GetTreeReader()

std::unique_ptr<TTreeReader> ROOT::Internal::TTreeView::GetTreeReader ( ) const
inline

Get a TTreeReader for the tree of this view.

Definition at line 123 of file TTreeProcessor.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 68 of file TTreeProcessor.hxx.

Member Data Documentation

◆ fFile

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

! File object of this view.

Definition at line 62 of file TTreeProcessor.hxx.

◆ fFileName

std::string_view ROOT::Internal::TTreeView::fFileName
private

Name of the file.

Definition at line 60 of file TTreeProcessor.hxx.

◆ fTree

std::unique_ptr<TTree> ROOT::Internal::TTreeView::fTree
private

! Tree object of this view.

Definition at line 63 of file TTreeProcessor.hxx.

◆ fTreeName

std::string_view ROOT::Internal::TTreeView::fTreeName
private

Name of the tree.

Definition at line 61 of file TTreeProcessor.hxx.


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