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