12 #ifndef ROOT_TTreeReader 13 #define ROOT_TTreeReader 25 #ifndef ROOT_THashTable 31 #ifndef ROOT_TTreeReaderUtils 44 class TBranchProxyDirector;
60 public std::iterator<std::input_iterator_tag, const Long64_t, Long64_t> {
66 bool IsValid()
const {
return fEntry >= 0; }
75 fEntry(entry), fReader(&reader) {}
80 if (!IsValid() && !lhs.
IsValid())
return true;
86 return !(*
this == lhs);
113 if (fReader->
SetEntry(fEntry) != kEntryValid) {
141 fEntryStatus(kEntryNoTree),
152 void SetTree(
TTree* tree);
158 Bool_t Next() {
return SetEntry(GetCurrentEntry() + 1) == kEntryValid; }
197 std::deque<ROOT::Internal::TTreeReaderValueBase*>
fValues;
208 #endif // defined TTreeReader ROOT::Internal::TNamedBranchProxy * FindProxy(const char *branchname) const
bool operator!=(const Iterator_t &lhs) const
TCollection * GetProxies()
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
Namespace for new ROOT classes and functions.
std::deque< ROOT::Internal::TTreeReaderValueBase * > fValues
void SetTree(const char *, TDirectory *)
TTreeReader(const char *, TFileCollection *)
THashTable implements a hash table to store TObject's.
#define ClassDef(name, id)
EEntryStatus fEntryStatus
const Long64_t & operator*()
ROOT::Internal::TBranchProxyDirector * fDirector
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
void Initialize(Bool_t useTMVAStyle=kTRUE)
This class defines an abstract interface that must be implemented by all classes that contain diction...
TTime operator*(const TTime &t1, const TTime &t2)
Collection abstract base class.
Long64_t GetEntries(Bool_t force) const
EEntryStatus SetEntry(Long64_t entry)
const Long64_t & operator*() const
void SetChain(const char *, TFileCollection *)
Iterator_t operator++(int)
EEntryStatus SetLocalEntry(Long64_t entry)
Describe directory structure in memory.
EEntryStatus GetEntryStatus() const
Iterator_t & operator++()
Mother of all ROOT objects.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
bool operator==(const Iterator_t &lhs) const
A TTree object has a header with a name and a title.
void SetLastEntry(Long64_t entry)
void Error(ErrorHandler_t func, int code, const char *va_(fmt),...)
Write error message and call a handler, if required.
Iterator_t(TTreeReader &reader, Long64_t entry)