193 using namespace
ROOT::Internal;
201 fEntryStatus(kEntryNotLoaded),
207 Error(
"TTreeReader",
"TTree is NULL!");
221 fEntryStatus(kEntryNotLoaded),
236 for (std::deque<ROOT::Internal::TTreeReaderValueBase*>::const_iterator
238 (*i)->MarkTreeReaderUnavailable();
280 return ((
TChain*)
fTree)->GetChainEntryNumber(currentTreeEntry);
282 return currentTreeEntry;
305 if (loadResult == -2) {
316 for (std::deque<ROOT::Internal::TTreeReaderValueBase*>::const_iterator
320 if (!(*i)->GetProxy()){
373 std::deque<ROOT::Internal::TTreeReaderValueBase*>::iterator iReader
375 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...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
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
readers that use our director
virtual const char * GetDerivedTypeName() const =0
void SetReadEntry(Long64_t entry)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
THashTable fProxies
attached ROOT::TNamedBranchProxies; owned
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.
the tree entry number does not exist
Long64_t GetCurrentEntry() const
Returns the index of the current entry being read.
TDirectory * fDirectory
directory (or current file for chains)
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
EEntryStatus fEntryStatus
status of most recent read request
void Error(const char *location, const char *msgfmt,...)
Long64_t fLastEntry
The last entry to be processed.
void RegisterValueReader(ROOT::Internal::TTreeReaderValueBase *reader)
Add a value reader for this tree.
ROOT::Internal::TBranchProxyDirector * fDirector
proxying director, owned
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual Int_t GetTreeNumber() const
Bool_t fProxiesSet
True if the proxies have been set, false otherwise.
~TTreeReader()
Tell all value readers that the tree reader does not exist anymore.
EEntryStatus SetEntry(Long64_t entry)
Describe directory structure in memory.
TTree * fTree
tree that's read
void Initialize()
Initialization of the director.
void DeregisterValueReader(ROOT::Internal::TTreeReaderValueBase *reader)
Remove a value reader for this tree.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual TTree * GetTree() const
problem reading dictionary info from tree
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.