12 #ifndef ROOT_TEntryList
13 #define ROOT_TEntryList
97 virtual void SetTreeName(
const char *treename){ fTreeName = treename; };
104 const char *newroot,
const char *oldroot = 0,
const char *enlnm = 0);
108 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
109 #pragma GCC diagnostic push
110 #pragma GCC diagnostic ignored "-Weffc++"
113 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
114 #pragma GCC diagnostic pop
virtual void SetEntriesToProcess(Long64_t nen)
virtual void SetFileName(const char *filename)
Long64_t fEntriesToProcess
virtual void SetTreeName(const char *treename)
virtual Long64_t Next()
Return the next non-zero entry index (next after fLastIndexQueried) this function is faster than GetE...
virtual void SetReapplyCut(Bool_t apply=kFALSE)
virtual TEntryList * GetCurrentList() const
static const char * filename()
virtual ~TEntryList()
Destructor.
virtual void OptimizeStorage()
Checks if the array representation is more economical and if so, switches to it.
virtual void SetShift(Bool_t shift)
Int_t fNBlocks
currently filled entry list
virtual const char * GetFileName() const
static Int_t Scan(const char *fn, TList *roots)
Scan TEntryList in 'fn' to find the common parts of paths.
Long64_t fLastIndexQueried
the index of the tree in the chain (used when the entry
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...
Bool_t fShift
used to optimize GetEntry() function from a loop
TEntryList & operator=(const TEntryList &)
virtual void SetDirectory(TDirectory *dir)
Add reference to directory dir. dir can be 0.
const char * Data() const
virtual Long64_t GetEntriesToProcess() const
The TNamed class is the base class for all named ROOT classes.
TDirectory * fDirectory
true when some sub-lists don't correspond to trees
Bool_t fReapply
Pointer to directory holding this tree.
virtual void Add(const TEntryList *elist)
Add 2 entry lists.
friend TEntryList operator||(TEntryList &elist1, TEntryList &elist2)
Collection abstract base class.
virtual Long64_t GetEntry(Int_t index)
Return the number of the entry #index of this TEntryList in the TTree or TChain See also Next()...
virtual Int_t Contains(Long64_t entry, TTree *tree=0)
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and others to automatically add us to a directory when we are read from a file...
virtual Int_t ScanPaths(TList *roots, Bool_t notify=kTRUE)
Scan the paths to find the common roots.
virtual Int_t GetTreeNumber() const
virtual const char * GetTreeName() const
virtual Long64_t GetEntryAndTree(Int_t index, Int_t &treenum)
Return the index of "index"-th non-zero entry in the TTree or TChain and the # of the corresponding t...
virtual Int_t Merge(TCollection *list)
Merge this list with the lists from the collection.
Long64_t fLastIndexReturned
used to optimize GetEntry() function from a loop
Describe directory structure in memory.
virtual Bool_t Enter(Long64_t entry, TTree *tree=0)
Add entry entry to the list.
virtual Long64_t GetN() const
Int_t fTreeNumber
Hash value of a string of treename and filename.
virtual TDirectory * GetDirectory() const
virtual void Reset()
Reset this list.
virtual Bool_t Remove(Long64_t entry, TTree *tree=0)
Remove entry entry from the list.
virtual Bool_t GetReapplyCut() const
virtual TEntryList * GetEntryList(const char *treename, const char *filename, Option_t *opt="")
Return the entry list, correspoding to treename and filename By default, the filename is first tried ...
virtual void SetTreeNumber(Int_t index)
A TTree object has a header with a name and a title.
static Int_t Relocate(const char *fn, const char *newroot, const char *oldroot=0, const char *enlnm=0)
Relocate entry list 'enlnm' in file 'fn' replacing 'oldroot' with 'newroot' in filenames.
virtual void Print(const Option_t *option="") const
Print this list.
A List of entry numbers in a TTree or TChain.
virtual void Subtract(const TEntryList *elist)
Remove all the entries of this entry list, that are contained in elist.
virtual Int_t RelocatePaths(const char *newloc, const char *oldloc=0)
Relocate the file paths.
virtual TList * GetLists() const