Definition at line 69 of file TTreeReaderArray.h.
|
| typedef bool(ROOT::Detail::TBranchProxy::* | BranchProxyRead_t) () |
| enum | EReadStatus { kReadSuccess = 0
, kReadNothingYet
, kReadError
} |
| enum | ESetupStatus {
kSetupMatchButEntryBeyondEnd
, kSetupMakeClassModeMismatch = -9
, kSetupTreeDestructed = -8
, kSetupNotSetup = -7
,
kSetupMissingCounterBranch = -6
, kSetupMissingBranch = -5
, kSetupInternalError = -4
, kSetupMissingDictionary = -3
,
kSetupMismatch = -2
, kSetupNotACollection = -1
, kSetupMatch
, kSetupNoCheck = 5
,
kSetupMatchLeaf = 6
, kSetupMatchBranch
} |
| | Status flags, 0 is good. More...
|
#include <TTreeReaderArray.h>
◆ BranchProxyRead_t
| typedef bool(ROOT::Detail::TBranchProxy::* ROOT::Internal::TTreeReaderValueBase::BranchProxyRead_t) () |
|
inherited |
◆ Read_t
| typedef EReadStatus(TTreeReaderValueBase::* ROOT::Internal::TTreeReaderValueBase::Read_t) () |
|
protectedinherited |
◆ EReadStatus
| Enumerator |
|---|
| kReadSuccess | Data read okay.
|
| kReadNothingYet | Data now yet accessed.
|
| kReadError | Problem reading data.
|
Definition at line 74 of file TTreeReaderValue.h.
◆ ESetupStatus
Status flags, 0 is good.
| Enumerator |
|---|
| kSetupMatchButEntryBeyondEnd | This branch has been setup, branch data type and reader template type match, but nothing can be read because we have already reached the end of the tree.
|
| kSetupMakeClassModeMismatch | readers disagree on whether TTree::SetMakeBranch() should be on
|
| kSetupTreeDestructed | The TTreeReader has been destructed / not set.
|
| kSetupNotSetup | No initialization has happened yet.
|
| kSetupMissingCounterBranch | The array cannot find its counter branch: Array[CounterBranch].
|
| kSetupMissingBranch | The specified branch cannot be found.
|
| kSetupInternalError | Some other error - hopefully the error message helps.
|
| kSetupMissingDictionary | To read this branch, we need a dictionary.
|
| kSetupMismatch | Mismatch of branch type and reader template type.
|
| kSetupNotACollection | The branch class type is not a collection.
|
| kSetupMatch | This branch has been set up, branch data type and reader template type match, reading should succeed.
|
| kSetupNoCheck | |
| kSetupMatchLeaf | This branch (or TLeaf, really) has been set up, reading should succeed.
|
| kSetupMatchBranch | This branch has been set up, branch data type and reader template type match, reading should succeed.
|
Definition at line 48 of file TTreeReaderValue.h.
◆ TTreeReaderUntypedArray()
| ROOT::Internal::TTreeReaderUntypedArray::TTreeReaderUntypedArray |
( |
TTreeReader & | tr, |
|
|
std::string_view | branchName, |
|
|
std::string_view | innerTypeName ) |
|
inline |
◆ At()
| std::byte * ROOT::Internal::TTreeReaderUntypedArray::At |
( |
std::size_t | idx | ) |
const |
|
inline |
◆ CreateProxy()
| void ROOT::Internal::TTreeReaderArrayBase::CreateProxy |
( |
| ) |
|
|
overrideprotectedvirtualinherited |
◆ ErrorAboutMissingProxyIfNeeded()
| void ROOT::Internal::TTreeReaderValueBase::ErrorAboutMissingProxyIfNeeded |
( |
| ) |
|
|
protectedinherited |
◆ FillStreamerElementArrayInfo()
◆ GetAddress()
| void * ROOT::Internal::TTreeReaderValueBase::GetAddress |
( |
| ) |
|
|
inherited |
◆ GetBranchAndLeaf()
| bool ROOT::Internal::TTreeReaderArrayBase::GetBranchAndLeaf |
( |
TBranch *& | branch, |
|
|
TLeaf *& | myLeaf, |
|
|
TDictionary *& | branchActualType, |
|
|
bool | suppressErrorsForMissingBranch = false ) |
|
protectedinherited |
Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error.
Definition at line 790 of file TTreeReaderArray.cxx.
◆ GetBranchContentDataType()
Access a branch's collection content (not the collection itself) through a proxy.
Retrieve the type of data contained in the collection stored by branch; put its dictionary into dict, If there is no dictionary, put its type name into contentTypeName. The contentTypeName is set to NULL if the branch does not contain a collection; in that case, the type of the branch is returned. In all other cases, NULL is returned.
Definition at line 1016 of file TTreeReaderArray.cxx.
◆ 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 713 of file TTreeReaderValue.cxx.
◆ GetBranchName()
| const char * ROOT::Internal::TTreeReaderValueBase::GetBranchName |
( |
| ) |
const |
|
inlineinherited |
◆ GetDerivedTypeName()
| const char * ROOT::Internal::TTreeReaderUntypedArray::GetDerivedTypeName |
( |
| ) |
const |
|
inlinefinalprotectedvirtual |
◆ GetElementTypeName()
| std::string ROOT::Internal::TTreeReaderValueBase::GetElementTypeName |
( |
const std::type_info & | ti | ) |
|
|
staticprotectedinherited |
◆ GetLeaf()
| TLeaf * ROOT::Internal::TTreeReaderValueBase::GetLeaf |
( |
| ) |
|
|
inlineinherited |
If we are reading a leaf, return the corresponding TLeaf.
Definition at line 97 of file TTreeReaderValue.h.
◆ GetProxy()
◆ GetReadStatus()
| EReadStatus ROOT::Internal::TTreeReaderArrayBase::GetReadStatus |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ GetSetupStatus()
| ESetupStatus ROOT::Internal::TTreeReaderValueBase::GetSetupStatus |
( |
| ) |
const |
|
inlineinherited |
Return this TTreeReaderValue's setup status.
Use this method to check e.g. whether the TTreeReaderValue is correctly setup and ready for reading.
Definition at line 93 of file TTreeReaderValue.h.
◆ GetSize()
| std::size_t ROOT::Internal::TTreeReaderArrayBase::GetSize |
( |
| ) |
const |
|
inlineinherited |
◆ GetValueSize()
| std::size_t ROOT::Internal::TTreeReaderArrayBase::GetValueSize |
( |
| ) |
const |
|
inlineinherited |
Returns the sizeof of the collection value type. Returns 0 in case the value size could not be retrieved.
Definition at line 52 of file TTreeReaderArray.h.
◆ IsContiguous()
| bool ROOT::Internal::TTreeReaderArrayBase::IsContiguous |
( |
| ) |
const |
|
inlineinherited |
◆ IsEmpty()
| bool ROOT::Internal::TTreeReaderArrayBase::IsEmpty |
( |
| ) |
const |
|
inlineinherited |
◆ IsValid()
| bool ROOT::Internal::TTreeReaderValueBase::IsValid |
( |
| ) |
const |
|
inlineinherited |
Return true if the branch was setup and read correctly.
Use GetSetupStatus() to only check the setup status.
Definition at line 90 of file TTreeReaderValue.h.
◆ MarkTreeReaderUnavailable()
| void ROOT::Internal::TTreeReaderValueBase::MarkTreeReaderUnavailable |
( |
| ) |
|
|
inlineprotectedinherited |
◆ NotifyNewTree()
| void ROOT::Internal::TTreeReaderValueBase::NotifyNewTree |
( |
TTree * | newTree | ) |
|
|
protectedinherited |
◆ ProxyRead()
| EReadStatus ROOT::Internal::TTreeReaderValueBase::ProxyRead |
( |
| ) |
|
|
inlineinherited |
◆ ProxyReadDefaultImpl()
◆ ProxyReadTemplate()
Try to read the value from the TBranchProxy, returns the status of the read.
Definition at line 148 of file TTreeReaderValue.cxx.
◆ RegisterWithTreeReader()
| void ROOT::Internal::TTreeReaderValueBase::RegisterWithTreeReader |
( |
| ) |
|
|
protectedinherited |
◆ SearchBranchWithCompositeName()
| TBranch * ROOT::Internal::TTreeReaderValueBase::SearchBranchWithCompositeName |
( |
TLeaf *& | myLeaf, |
|
|
TDictionary *& | branchActualType, |
|
|
std::string & | errMsg ) |
|
protectedinherited |
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 315 of file TTreeReaderValue.cxx.
◆ SetImpl()
| void ROOT::Internal::TTreeReaderArrayBase::SetImpl |
( |
TBranch * | branch, |
|
|
TLeaf * | myLeaf ) |
|
protectedinherited |
◆ UntypedAt()
| void * ROOT::Internal::TTreeReaderArrayBase::UntypedAt |
( |
std::size_t | idx | ) |
const |
|
inlineprotectedinherited |
◆ fArrayElementTypeName
| std::string ROOT::Internal::TTreeReaderUntypedArray::fArrayElementTypeName |
|
private |
◆ fBranchName
| TString ROOT::Internal::TTreeReaderValueBase::fBranchName |
|
protectedinherited |
◆ fDict
| TDictionary* ROOT::Internal::TTreeReaderValueBase::fDict |
|
protectedinherited |
◆ fHaveLeaf
| bool ROOT::Internal::TTreeReaderValueBase::fHaveLeaf |
|
protectedinherited |
◆ fHaveStaticClassOffsets
| bool ROOT::Internal::TTreeReaderValueBase::fHaveStaticClassOffsets |
|
protectedinherited |
◆ fImpl
◆ fLeaf
| TLeaf* ROOT::Internal::TTreeReaderValueBase::fLeaf = nullptr |
|
protectedinherited |
◆ fLeafName
| TString ROOT::Internal::TTreeReaderValueBase::fLeafName |
|
protectedinherited |
◆ fOpaqueRead
| bool ROOT::Internal::TTreeReaderValueBase::fOpaqueRead {false} |
|
protectedinherited |
If true, the reader will not do any type-checking against the actual type held by the branch.
Useful to just check if the current entry can be read or not without caring about its value.
- Note
- Only used by TTreeReaderOpaqueValue.
Definition at line 151 of file TTreeReaderValue.h.
◆ fProxy
◆ fProxyReadFunc
◆ fReadStatus
| EReadStatus ROOT::Internal::TTreeReaderValueBase::fReadStatus |
|
protectedinherited |
◆ fSetupStatus
◆ fStaticClassOffsets
| std::vector<Long64_t> ROOT::Internal::TTreeReaderValueBase::fStaticClassOffsets |
|
protectedinherited |
◆ fTreeReader
| TTreeReader* ROOT::Internal::TTreeReaderValueBase::fTreeReader |
|
protectedinherited |
The documentation for this class was generated from the following file: