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.
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
Namespace for new ROOT classes and functions.
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...
virtual ~TTreeReaderValueBase()
Unregister from tree reader, cleanup.
ESetupStatus GetSetupStatus() const
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
const char * GetBranchName() const
TLeaf * GetLeaf()
If we are reading a leaf, return the corresponding TLeaf.
ESetupStatus fSetupStatus
virtual const char * GetDerivedTypeName() const
void MarkTreeReaderUnavailable()
void Error(const char *location, const char *msgfmt,...)
Extracts data from a TTree.
Detail::TBranchProxy * GetProxy() const
#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.
Bool_t IsaPointer() const
virtual EReadStatus GetReadStatus() const
Detail::TBranchProxy * fProxy
virtual const char * GetDerivedTypeName() const =0
TTreeReaderValueBase(TTreeReader *reader=0, const char *branchname=0, TDictionary *dict=0)
A TTree is a list of TBranches.