15 #include "TDirectory.h"
193 using namespace
ROOT::Internal;
201 fEntryStatus(kEntryNotLoaded),
217 fEntryStatus(kEntryNotLoaded),
232 for (std::deque<ROOT::Internal::TTreeReaderValueBase*>::const_iterator
234 (*i)->MarkTreeReaderUnavailable();
276 return ((
TChain*)
fTree)->GetChainEntryNumber(currentTreeEntry);
278 return currentTreeEntry;
300 if (loadResult == -2) {
306 if (treeNumInChain != currentTreeNumInChain) {
315 for (std::deque<ROOT::Internal::TTreeReaderValueBase*>::const_iterator
319 if (!(*i)->GetProxy()){
372 std::deque<ROOT::Internal::TTreeReaderValueBase*>::iterator iReader
374 if (iReader ==
fValues.end()) {
TTree * SetTree(TTree *newtree)
Long64_t GetReadEntry() const
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
Namespace for new ROOT classes and functions.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void GetObject(const char *namecycle, T *&ptr)
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
std::deque< ROOT::Internal::TTreeReaderValueBase * > fValues
void SetReadEntry(Long64_t entry)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * Data() const
EEntryStatus SetEntryBase(Long64_t entry, Bool_t local)
Load an entry into the tree, return the status of the read.
virtual Long64_t LoadTree(Long64_t entry)
Set current entry.
Long64_t GetCurrentEntry() const
Returns the index of the current entry being read.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
EEntryStatus fEntryStatus
void RegisterValueReader(ROOT::Internal::TTreeReaderValueBase *reader)
Add a value reader for this tree.
ROOT::Internal::TBranchProxyDirector * fDirector
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual Int_t GetTreeNumber() const
~TTreeReader()
Tell all value readers that the tree reader does not exist anymore.
EEntryStatus SetLocalEntry(Long64_t entry)
Describe directory structure in memory.
void Initialize()
Initialization of the director.
void DeregisterValueReader(ROOT::Internal::TTreeReaderValueBase *reader)
Remove a value reader for this tree.
virtual TTree * GetTree() const
virtual const char * GetDerivedTypeName() const =0
A chain is a collection of files containg TTree objects.
A TTree object has a header with a name and a title.
void SetTree(TTree *tree)
Set (or update) the which tree to reader from.
EEntryStatus SetEntriesRange(Long64_t first, Long64_t last)
Set the range of entries to be processed.