12#ifndef ROOT_TEntryListArray
13#define ROOT_TEntryListArray
52 TEntryListArray(
const char *
name,
const char *title,
const char *treename,
const char *filename);
76 virtual void SetTree(
const char *treename,
const char *filename);
99#ifndef ROOT_TEntryListArray
100#define ROOT_TEntryListArray
163 virtual void SetTree(
const char *treename,
const char *filename);
#define ClassDef(name, id)
Collection abstract base class.
Describe directory structure in memory.
A list of entries and subentries in a TTree or TChain.
virtual Bool_t RemoveSubListForEntry(Long64_t entry, TTree *tree=0)
Remove the sublists for the given entry --> not being used...
virtual void Subtract(const TEntryList *elist)
Remove all the entries of this entry list, that are contained in elist.
TEntryListArray(const char *name, const char *title)
virtual void AddEntriesAndSubLists(const TEntryList *elist)
virtual ~TEntryListArray()
d-tor
virtual void SetTree(const TTree *tree)
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
virtual void Reset()
Reset this list.
TEntryListArray(const char *name, const char *title, const char *treename, const char *filename)
virtual Int_t Contains(Long64_t entry, TTree *tree, Long64_t subentry)
virtual Bool_t Enter(Long64_t entry, TTree *tree, Long64_t subentry)
virtual void Reset()
Reset all entries and remove all sublists.
virtual Bool_t Remove(Long64_t entry, TTree *tree, Long64_t subentry)
virtual Bool_t Enter(Long64_t entry, TTree *tree=0)
Add entry #entry to the list.
virtual void SetTree(const char *treename, const char *filename)
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
void Init()
Initialize data members, called by Reset.
TEntryListArray & operator=(const TEntryListArray &)
virtual TEntryListArray * SetEntry(Long64_t entry, TTree *tree=0)
virtual Bool_t Remove(Long64_t entry, TTree *tree, Long64_t subentry)
Remove entry #entry (, #subentry) from the list.
virtual void SetTree(const char *treename, const char *filename)
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
TEntryListArray * fLastSubListQueried
! last sublist checked by GetSubListForEntry
virtual TEntryListArray * SetEntry(Long64_t entry, TTree *tree=0)
Create a sublist for the given entry and returns it --> should be called after calling GetSubListForE...
virtual Bool_t RemoveSubList(TEntryListArray *e, TTree *tree=0)
Remove the given sublist and return true if succeeded.
TEntryListArray()
Default c-tor.
virtual ~TEntryListArray()
virtual void Add(const TEntryList *elist)
Add 2 entry lists.
virtual Int_t Contains(Long64_t entry, TTree *tree=0)
TEntryListArray(const TEntryListArray &elist)
virtual void ConvertToTEntryListArray(TEntryList *e)
Create a TEntryListArray based on the given TEntryList Called by SetTree when the given list is added...
virtual void Print(const Option_t *option="") const
Print this list.
Long64_t fEntry
the entry number, when the list is used for subentries
TEntryListArray(const char *name, const char *title, const TTree *tree)
virtual Bool_t RemoveSubListForEntry(Long64_t entry, TTree *tree=0)
virtual void ConvertToTEntryListArray(TEntryList *e)
virtual TList * GetSubLists() const
virtual Int_t Contains(Long64_t entry, TTree *tree, Long64_t subentry)
virtual Bool_t Enter(Long64_t entry, TTree *tree, Long64_t subentry)
Add entry #entry (, #subentry) to the list.
TList * fSubLists
a list of underlying entry lists for each event of a TEntryList
virtual void AddEntriesAndSubLists(const TEntryList *elist)
The method that really adds two entry lists with sublists If lists are splitted (fLists !...
TEntryListArray(const TEntryList &elist)
virtual Bool_t Remove(Long64_t entry, TTree *tree=0)
Remove entry #entry from the list.
TIter * fSubListIter
! to iterate over fSubLists and keep last one checked
TEntryListArray(const TTree *tree)
virtual void Print(const Option_t *option="") const
Print this list.
virtual Bool_t RemoveSubList(TEntryListArray *e, TTree *tree=0)
virtual void Add(const TEntryList *elist)
Add 2 entry lists.
virtual void Subtract(const TEntryList *elist)
Remove all the entries (and subentries) of this entry list that are contained in elist.
virtual TEntryListArray * GetSubListForEntry(Long64_t entry, TTree *tree=0)
virtual TEntryListArray * GetSubListForEntry(Long64_t entry, TTree *tree=0)
Return the list holding the subentries for the given entry or 0.
A List of entry numbers in a TTree or TChain.
virtual void SetTree(const TTree *tree)
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
virtual Int_t Contains(Long64_t entry, TTree *tree=0)
A TTree object has a header with a name and a title.