ROOT 6.10/09 Reference Guide |
Definition at line 39 of file TTreeReaderValue.h.
Public Types | |
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 | |
virtual | ~TTreeReaderValueBase () |
Unregister from tree reader, cleanup. More... | |
void * | GetAddress () |
Returns the memory address of the object being read. More... | |
const char * | GetBranchName () const |
TLeaf * | GetLeaf () |
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 | |
TTreeReaderValueBase (TTreeReader *reader=0, const char *branchname=0, TDictionary *dict=0) | |
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... | |
virtual const char * | GetDerivedTypeName () const =0 |
Detail::TBranchProxy * | GetProxy () const |
void | MarkTreeReaderUnavailable () |
void | NotifyNewTree (TTree *newTree) |
The TTreeReader has switched to a new TTree. Update the leaf. More... | |
TTreeReaderValueBase & | operator= (const TTreeReaderValueBase &) |
Copy-assign. More... | |
void | RegisterWithTreeReader () |
Register with tree reader. More... | |
Static Protected Member Functions | |
static std::string | GetElementTypeName (const std::type_info &ti) |
Stringify the template argument. More... | |
Protected Attributes | |
TString | fBranchName |
TDictionary * | fDict |
TLeaf * | fLeaf |
TString | fLeafName |
Detail::TBranchProxy * | fProxy |
EReadStatus | fReadStatus |
ESetupStatus | fSetupStatus |
std::vector< Long64_t > | fStaticClassOffsets |
TTreeReader * | fTreeReader |
Friends | |
class | ::TTreeReader |
#include <TTreeReaderValue.h>
Enumerator | |
---|---|
kReadSuccess | |
kReadNothingYet | |
kReadError |
Definition at line 62 of file TTreeReaderValue.h.
Enumerator | |
---|---|
kSetupNotSetup | |
kSetupTreeDestructed | No initialization has happened yet. |
kSetupMakeClassModeMismatch | The TTreeReader has been destructed / not set. |
kSetupMissingCounterBranch | |
kSetupMissingBranch | The array cannot find its counter branch: Array[CounterBranch]. |
kSetupInternalError | The specified branch cannot be found. |
kSetupMissingDictionary | Some other error - hopefully the error message helps. |
kSetupMismatch | To read this branch, we need a dictionary. |
kSetupNotACollection | Mismatch of branch type and reader template type. |
kSetupMatch | The branch class type is not a collection. |
kSetupMatchBranch | This branch has been set up, branch data type and reader template type match, reading should succeed. |
kSetupNoCheck | This branch has been set up, branch data type and reader template type match, reading should succeed. |
kSetupMatchLeaf |
Definition at line 43 of file TTreeReaderValue.h.
|
virtual |
Unregister from tree reader, cleanup.
Definition at line 98 of file TTreeReaderValue.cxx.
|
protected |
Construct a tree value reader and register it with the reader object.
Definition at line 40 of file TTreeReaderValue.cxx.
|
protected |
Copy-construct.
Definition at line 57 of file TTreeReaderValue.cxx.
|
protectedvirtual |
Create the proxy object for our branch.
Reimplemented in ROOT::Internal::TTreeReaderArrayBase.
Definition at line 191 of file TTreeReaderValue.cxx.
void * ROOT::Internal::TTreeReaderValueBase::GetAddress | ( | ) |
Returns the memory address of the object being read.
Definition at line 163 of file TTreeReaderValue.cxx.
|
protected |
Retrieve the type of data stored by branch; put its dictionary into dict, return its type name.
If no dictionary is available, at least its type name should be returned.
Definition at line 449 of file TTreeReaderValue.cxx.
|
inline |
Definition at line 79 of file TTreeReaderValue.h.
|
protectedpure virtual |
|
staticprotected |
Stringify the template argument.
Definition at line 131 of file TTreeReaderValue.cxx.
|
inline |
If we are reading a leaf, return the corresponding TLeaf.
Definition at line 75 of file TTreeReaderValue.h.
|
inlineprotected |
Definition at line 97 of file TTreeReaderValue.h.
|
inlinevirtual |
Reimplemented in ROOT::Internal::TTreeReaderArrayBase.
Definition at line 72 of file TTreeReaderValue.h.
|
inline |
Definition at line 71 of file TTreeReaderValue.h.
|
inline |
Definition at line 70 of file TTreeReaderValue.h.
|
inlineprotected |
Definition at line 99 of file TTreeReaderValue.h.
The TTreeReader has switched to a new TTree. Update the leaf.
Definition at line 142 of file TTreeReaderValue.cxx.
|
protected |
Copy-assign.
Definition at line 75 of file TTreeReaderValue.cxx.
ROOT::Internal::TTreeReaderValueBase::EReadStatus ROOT::Internal::TTreeReaderValueBase::ProxyRead | ( | ) |
Try to read the value from the TBranchProxy, returns the status of the read.
Definition at line 119 of file TTreeReaderValue.cxx.
|
protected |
Register with tree reader.
Definition at line 106 of file TTreeReaderValue.cxx.
|
friend |
Definition at line 117 of file TTreeReaderValue.h.
|
protected |
Definition at line 104 of file TTreeReaderValue.h.
|
protected |
Definition at line 107 of file TTreeReaderValue.h.
|
protected |
Definition at line 109 of file TTreeReaderValue.h.
|
protected |
Definition at line 105 of file TTreeReaderValue.h.
|
protected |
Definition at line 108 of file TTreeReaderValue.h.
|
protected |
Definition at line 111 of file TTreeReaderValue.h.
|
protected |
Definition at line 110 of file TTreeReaderValue.h.
|
protected |
Definition at line 112 of file TTreeReaderValue.h.
|
protected |
Definition at line 106 of file TTreeReaderValue.h.