Base class of TTreeReaderValue.
Definition at line 42 of file TTreeReaderValue.h.
|
typedef Bool_t(ROOT::Detail::TBranchProxy::* | BranchProxyRead_t) () |
|
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
} |
|
#include <TTreeReaderValue.h>
◆ BranchProxyRead_t
typedef Bool_t(ROOT::Detail::TBranchProxy::* ROOT::Internal::TTreeReaderValueBase::BranchProxyRead_t) () |
◆ Read_t
typedef EReadStatus(TTreeReaderValueBase::* ROOT::Internal::TTreeReaderValueBase::Read_t) () |
|
protected |
◆ EReadStatus
◆ ESetupStatus
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 46 of file TTreeReaderValue.h.
◆ ~TTreeReaderValueBase()
ROOT::Internal::TTreeReaderValueBase::~TTreeReaderValueBase |
( |
| ) |
|
|
virtual |
◆ TTreeReaderValueBase() [1/2]
ROOT::Internal::TTreeReaderValueBase::TTreeReaderValueBase |
( |
TTreeReader * |
reader, |
|
|
const char * |
branchname, |
|
|
TDictionary * |
dict |
|
) |
| |
|
protected |
Construct a tree value reader and register it with the reader object.
Definition at line 53 of file TTreeReaderValue.cxx.
◆ TTreeReaderValueBase() [2/2]
◆ CreateProxy()
void ROOT::Internal::TTreeReaderValueBase::CreateProxy |
( |
| ) |
|
|
protectedvirtual |
◆ GetAddress()
void * ROOT::Internal::TTreeReaderValueBase::GetAddress |
( |
| ) |
|
◆ GetBranchDataType()
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 665 of file TTreeReaderValue.cxx.
◆ GetBranchName()
const char * ROOT::Internal::TTreeReaderValueBase::GetBranchName |
( |
| ) |
const |
|
inline |
◆ GetDerivedTypeName()
virtual const char * ROOT::Internal::TTreeReaderValueBase::GetDerivedTypeName |
( |
| ) |
const |
|
protectedpure virtual |
◆ GetElementTypeName()
std::string ROOT::Internal::TTreeReaderValueBase::GetElementTypeName |
( |
const std::type_info & |
ti | ) |
|
|
staticprotected |
◆ GetLeaf()
TLeaf * ROOT::Internal::TTreeReaderValueBase::GetLeaf |
( |
| ) |
|
|
inline |
◆ GetProxy()
◆ GetReadStatus()
virtual EReadStatus ROOT::Internal::TTreeReaderValueBase::GetReadStatus |
( |
| ) |
const |
|
inlinevirtual |
◆ GetSetupStatus()
ESetupStatus ROOT::Internal::TTreeReaderValueBase::GetSetupStatus |
( |
| ) |
const |
|
inline |
◆ IsValid()
Bool_t ROOT::Internal::TTreeReaderValueBase::IsValid |
( |
| ) |
const |
|
inline |
◆ MarkTreeReaderUnavailable()
void ROOT::Internal::TTreeReaderValueBase::MarkTreeReaderUnavailable |
( |
| ) |
|
|
inlineprotected |
◆ NotifyNewTree()
void ROOT::Internal::TTreeReaderValueBase::NotifyNewTree |
( |
TTree * |
newTree | ) |
|
|
protected |
◆ operator=()
◆ ProxyRead()
EReadStatus ROOT::Internal::TTreeReaderValueBase::ProxyRead |
( |
| ) |
|
|
inline |
◆ ProxyReadDefaultImpl()
◆ ProxyReadTemplate()
Try to read the value from the TBranchProxy, returns the status of the read.
Definition at line 141 of file TTreeReaderValue.cxx.
◆ RegisterWithTreeReader()
void ROOT::Internal::TTreeReaderValueBase::RegisterWithTreeReader |
( |
| ) |
|
|
protected |
◆ SearchBranchWithCompositeName()
TBranch * ROOT::Internal::TTreeReaderValueBase::SearchBranchWithCompositeName |
( |
TLeaf *& |
myLeaf, |
|
|
TDictionary *& |
branchActualType, |
|
|
std::string & |
errMsg |
|
) |
| |
|
protected |
Search a branch the name of which contains a ".".
- Parameters
-
[out] | myLeaf | The leaf identified by the name if found (can be untouched). |
[out] | branchActualType | Dictionary associated to the type of the leaf (can be untouched). |
[out] | errMsg | The error message (can be untouched). |
- Returns
- The address of the branch if found, nullptr otherwise This method allows to efficiently search for branches which have names which contain "dots", for example "w.v.a" or "v.a". Therefore, it allows to support names such as v.a where the branch was created with this syntax:
myTree->Branch(
"v", &
v,
"a/I:b:/I")
The method has some side effects, namely it can modify fSetupStatus, fProxy and fStaticClassOffsets/fHaveStaticClassOffsets.
Definition at line 291 of file TTreeReaderValue.cxx.
◆ ::TTreeReader
◆ fBranchName
TString ROOT::Internal::TTreeReaderValueBase::fBranchName |
|
protected |
◆ fDict
TDictionary* ROOT::Internal::TTreeReaderValueBase::fDict |
|
protected |
◆ fHaveLeaf
int ROOT::Internal::TTreeReaderValueBase::fHaveLeaf |
|
protected |
◆ fHaveStaticClassOffsets
int ROOT::Internal::TTreeReaderValueBase::fHaveStaticClassOffsets |
|
protected |
◆ fLeaf
TLeaf* ROOT::Internal::TTreeReaderValueBase::fLeaf = nullptr |
|
protected |
◆ fLeafName
TString ROOT::Internal::TTreeReaderValueBase::fLeafName |
|
protected |
◆ fProxy
◆ fProxyReadFunc
◆ fReadStatus
EReadStatus ROOT::Internal::TTreeReaderValueBase::fReadStatus |
|
protected |
◆ fSetupStatus
◆ fStaticClassOffsets
std::vector<Long64_t> ROOT::Internal::TTreeReaderValueBase::fStaticClassOffsets |
|
protected |
◆ fTreeReader
TTreeReader* ROOT::Internal::TTreeReaderValueBase::fTreeReader |
|
protected |
[legend]