12 #ifndef ROOT_TTreeReaderValue 13 #define ROOT_TTreeReaderValue 28 #ifndef ROOT_TDictionary 31 #ifndef ROOT_TBranchProxy 35 #include <type_traits> 116 friend class ::TTreeReader;
123 template <
typename T>
134 Error(
"Get()",
"Value reader not properly initialized, did you remember to call TTreeReader.Set(Next)Entry()?");
144 #define R__TTreeReaderValue_TypeString(T) #T 146 #undef R__TTreeReaderValue_TypeString 152 #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...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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
TTreeReaderValueBase(const TTreeReaderValueBase &)=delete
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
virtual const char * GetDerivedTypeName() const =0
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()
Extracts data from a TTree.
Detail::TBranchProxy * GetProxy() const
typename std::remove_const< Int_t >::type NonConstT_t
#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
Base class for all the proxy object.
A TTree is a list of TBranches.
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.