Logo ROOT   6.12/07
Reference Guide
List of all members | Public Types | Public Member Functions | Protected Member Functions | List of all members
TTreeReaderValue< T > Class Template Reference

template<typename T>
class TTreeReaderValue< T >

Extracts data from a TTree.

Definition at line 127 of file TTreeReaderValue.h.

Public Types

using NonConstT_t = typename std::remove_const< T >::type
 
- Public Types inherited from ROOT::Internal::TTreeReaderValueBase
enum  EReadStatus { kReadSuccess = 0, kReadNothingYet, kReadError }
 
enum  ESetupStatus {
  kSetupNotSetup = -7, kSetupTreeDestructed = -8, kSetupMakeClassModeMismatch = -7, kSetupMissingCounterBranch = -6,
  kSetupMissingBranch = -5, kSetupInternalError = -4, kSetupMissingDictionary = -3, kSetupMismatch = -2,
  kSetupNotACollection = -1, kSetupMatch = 0, kSetupMatchBranch = 0, kSetupNoCheck = 5,
  kSetupMatchLeaf = 6
}
 

Public Member Functions

 TTreeReaderValue ()=delete
 
 TTreeReaderValue (TTreeReader &tr, const char *branchname)
 
T * Get ()
 
T & operator* ()
 
T * operator-> ()
 
- Public Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
virtual ~TTreeReaderValueBase ()
 Unregister from tree reader, cleanup. More...
 
voidGetAddress ()
 Returns the memory address of the object being read. More...
 
const char * GetBranchName () const
 
TLeafGetLeaf ()
 If we are reading a leaf, return the corresponding TLeaf. More...
 
virtual EReadStatus GetReadStatus () const
 
ESetupStatus GetSetupStatus () const
 
Bool_t IsValid () const
 
EReadStatus ProxyRead ()
 Try to read the value from the TBranchProxy, returns the status of the read. More...
 

Protected Member Functions

virtual const char * GetDerivedTypeName () const
 Get the template argument as a string. More...
 
- Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
 TTreeReaderValueBase (TTreeReader *reader, const char *branchname, TDictionary *dict)
 Construct a tree value reader and register it with the reader object. More...
 
 TTreeReaderValueBase (const TTreeReaderValueBase &)
 Copy-construct. More...
 
virtual void CreateProxy ()
 Create the proxy object for our branch. More...
 
const char * GetBranchDataType (TBranch *branch, TDictionary *&dict) const
 Retrieve the type of data stored by branch; put its dictionary into dict, return its type name. More...
 
Detail::TBranchProxyGetProxy () const
 
void MarkTreeReaderUnavailable ()
 
void NotifyNewTree (TTree *newTree)
 The TTreeReader has switched to a new TTree. Update the leaf. More...
 
TTreeReaderValueBaseoperator= (const TTreeReaderValueBase &)
 Copy-assign. More...
 
void RegisterWithTreeReader ()
 Register with tree reader. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
static std::string GetElementTypeName (const std::type_info &ti)
 Stringify the template argument. More...
 
- Protected Attributes inherited from ROOT::Internal::TTreeReaderValueBase
TString fBranchName
 
TDictionaryfDict
 
int fHaveLeaf: 1
 
int fHaveStaticClassOffsets: 1
 
TLeaffLeaf = nullptr
 
TString fLeafName
 
Detail::TBranchProxyfProxy = nullptr
 
EReadStatus fReadStatus: 2
 
ESetupStatus fSetupStatus = kSetupNotSetup
 
std::vector< Long64_tfStaticClassOffsets
 
TTreeReaderfTreeReader
 

#include <TTreeReaderValue.h>

Inheritance diagram for TTreeReaderValue< T >:
[legend]

Member Typedef Documentation

◆ NonConstT_t

template<typename T>
using TTreeReaderValue< T >::NonConstT_t = typename std::remove_const<T>::type

Definition at line 129 of file TTreeReaderValue.h.

Constructor & Destructor Documentation

◆ TTreeReaderValue() [1/2]

template<typename T>
TTreeReaderValue< T >::TTreeReaderValue ( )
delete

◆ TTreeReaderValue() [2/2]

template<typename T>
TTreeReaderValue< T >::TTreeReaderValue ( TTreeReader tr,
const char *  branchname 
)
inline

Definition at line 131 of file TTreeReaderValue.h.

Member Function Documentation

◆ Get()

template<typename T>
T* TTreeReaderValue< T >::Get ( )
inline

Definition at line 135 of file TTreeReaderValue.h.

◆ GetDerivedTypeName()

template<typename T>
virtual const char* TTreeReaderValue< T >::GetDerivedTypeName ( ) const
inlineprotectedvirtual

Get the template argument as a string.

Implements ROOT::Internal::TTreeReaderValueBase.

Definition at line 148 of file TTreeReaderValue.h.

◆ operator*()

template<typename T>
T& TTreeReaderValue< T >::operator* ( )
inline

Definition at line 143 of file TTreeReaderValue.h.

◆ operator->()

template<typename T>
T* TTreeReaderValue< T >::operator-> ( )
inline

Definition at line 142 of file TTreeReaderValue.h.

Libraries for TTreeReaderValue< T >:
[legend]

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