12 #ifndef ROOT_TTreeReaderValue 13 #define ROOT_TTreeReaderValue 28 #ifndef ROOT_TDictionary 31 #ifndef ROOT_TBranchProxy 113 friend class ::TTreeReader;
120 template <
typename T>
129 Error(
"Get()",
"Value reader not properly initialized, did you remember to call TTreeReader.Set(Next)Entry()?");
139 #define R__TTreeReaderValue_TypeString(T) #T 141 #undef R__TTreeReaderValue_TypeString 147 #endif // ROOT_TTreeReaderValue
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual const char * GetDerivedTypeName() const
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
Namespace for new ROOT classes and functions.
virtual ~TTreeReaderValueBase()
Unregister from tree reader, cleanup.
EReadStatus ProxyRead()
Try to read the value from the TBranchProxy, returns the status of the read.
TTreeReaderValue(TTreeReader &tr, const char *branchname)
std::vector< Long64_t > fStaticClassOffsets
Detail::TBranchProxy * GetProxy() const
TLeaf * GetLeaf()
If we are reading a leaf, return the corresponding TLeaf.
const char * GetBranchName() const
virtual EReadStatus GetReadStatus() const
ESetupStatus fSetupStatus
void MarkTreeReaderUnavailable()
Extracts data from a TTree.
#define R__TTreeReaderValue_TypeString(T)
TTreeReader * fTreeReader
This class defines an abstract interface that must be implemented by all classes that contain diction...
virtual void CreateProxy()
Create the proxy object for our branch.
void * GetAddress()
Returns the memory address of the object being read.
A Branch for the case of an object.
Detail::TBranchProxy * fProxy
virtual const char * GetDerivedTypeName() const =0
TTreeReaderValueBase(TTreeReader *reader=0, const char *branchname=0, TDictionary *dict=0)
Construct a tree value reader and register it with the reader object.
Base class for all the proxy object.
Bool_t IsaPointer() const
A TTree is a list of TBranches.
ESetupStatus GetSetupStatus() const
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...
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.