|
ROOT 6.12/07 Reference Guide |
Extracts array data from a TTree.
Definition at line 63 of file TTreeReaderArray.h.
Classes | |
| class | Iterator_t |
| Random access iterator to the elements of a TTreeReaderArray. More... | |
Public Types | |
| using | const_iterator = Iterator_t< const TTreeReaderArray< T > > |
| using | iterator = Iterator_t< TTreeReaderArray< T > > |
Public Types inherited from ROOT::Internal::TTreeReaderValueBase | |
| 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 | |
| TTreeReaderArray (TTreeReader &tr, const char *branchname) | |
| Create an array reader of branch "branchname" for TTreeReader "tr". More... | |
| T & | At (std::size_t idx) |
| const T & | At (std::size_t idx) const |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| iterator | end () |
| const_iterator | end () const |
| T & | operator[] (std::size_t idx) |
| const T & | operator[] (std::size_t idx) const |
Public Member Functions inherited from ROOT::Internal::TTreeReaderArrayBase | |
| TTreeReaderArrayBase (TTreeReader *reader, const char *branchname, TDictionary *dict) | |
| virtual EReadStatus | GetReadStatus () const |
| std::size_t | GetSize () const |
| Bool_t | IsEmpty () const |
Public Member Functions inherited from ROOT::Internal::TTreeReaderValueBase | |
| 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... | |
| 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 | |
| virtual const char * | GetDerivedTypeName () const |
Protected Member Functions inherited from ROOT::Internal::TTreeReaderArrayBase | |
| virtual void | CreateProxy () |
| Create the proxy object for our branch. More... | |
| bool | GetBranchAndLeaf (TBranch *&branch, TLeaf *&myLeaf, TDictionary *&branchActualType) |
| Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error. More... | |
| const char * | GetBranchContentDataType (TBranch *branch, TString &contentTypeName, TDictionary *&dict) |
| Access a branch's collection content (not the collection itself) through a proxy. More... | |
| void | SetImpl (TBranch *branch, TLeaf *myLeaf) |
| Create the TVirtualCollectionReader object for our branch. More... | |
| void * | UntypedAt (std::size_t idx) const |
Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase | |
| TTreeReaderValueBase (TTreeReader *reader, const char *branchname, TDictionary *dict) | |
| Construct a tree value reader and register it with the reader object. More... | |
| TTreeReaderValueBase (const TTreeReaderValueBase &) | |
| Copy-construct. 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... | |
| 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... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase | |
| static std::string | GetElementTypeName (const std::type_info &ti) |
| Stringify the template argument. More... | |
Protected Attributes inherited from ROOT::Internal::TTreeReaderArrayBase | |
| TVirtualCollectionReader * | fImpl |
Protected Attributes inherited from ROOT::Internal::TTreeReaderValueBase | |
| TString | fBranchName |
| TDictionary * | fDict |
| int | fHaveLeaf: 1 |
| int | fHaveStaticClassOffsets: 1 |
| TLeaf * | fLeaf = nullptr |
| TString | fLeafName |
| Detail::TBranchProxy * | fProxy = nullptr |
| EReadStatus | fReadStatus: 2 |
| ESetupStatus | fSetupStatus = kSetupNotSetup |
| std::vector< Long64_t > | fStaticClassOffsets |
| TTreeReader * | fTreeReader |
#include <TTreeReaderArray.h>
| using TTreeReaderArray< T >::const_iterator = Iterator_t<const TTreeReaderArray<T> > |
Definition at line 185 of file TTreeReaderArray.h.
| using TTreeReaderArray< T >::iterator = Iterator_t<TTreeReaderArray<T> > |
Definition at line 184 of file TTreeReaderArray.h.
|
inline |
Create an array reader of branch "branchname" for TTreeReader "tr".
Definition at line 188 of file TTreeReaderArray.h.
|
inline |
Definition at line 191 of file TTreeReaderArray.h.
|
inline |
Definition at line 192 of file TTreeReaderArray.h.
|
inline |
Definition at line 196 of file TTreeReaderArray.h.
|
inline |
Definition at line 198 of file TTreeReaderArray.h.
|
inline |
Definition at line 200 of file TTreeReaderArray.h.
|
inline |
Definition at line 201 of file TTreeReaderArray.h.
|
inline |
Definition at line 197 of file TTreeReaderArray.h.
|
inline |
Definition at line 199 of file TTreeReaderArray.h.
|
inlineprotectedvirtual |
Implements ROOT::Internal::TTreeReaderValueBase.
Definition at line 205 of file TTreeReaderArray.h.
|
inline |
Definition at line 193 of file TTreeReaderArray.h.
|
inline |
Definition at line 194 of file TTreeReaderArray.h.