12#ifndef ROOT_TEntryList
13#define ROOT_TEntryList
59 TEntryList(
const char *
name,
const char *title,
const char *treename,
const char *filename);
101 virtual void SetTree(
const char *treename,
const char *filename);
109 const char *newroot,
const char *oldroot = 0,
const char *enlnm = 0);
113#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
114#pragma GCC diagnostic push
115#pragma GCC diagnostic ignored "-Weffc++"
118#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
119#pragma GCC diagnostic pop
#define ClassDef(name, id)
Collection abstract base class.
Describe directory structure in memory.
A List of entry numbers in a TTree or TChain.
Long64_t fLastIndexQueried
! used to optimize GetEntry() function from a loop
virtual TEntryList * GetEntryList(const char *treename, const char *filename, Option_t *opt="")
Return the entry list, corresponding to treename and filename By default, the filename is first tried...
Long64_t fEntriesToProcess
used on proof to set the number of entries to process in a packet
Bool_t fReapply
If true, TTree::Draw will 'reapply' the original cut.
virtual Int_t GetTreeNumber() const
TString fFileName
name of the file, where the tree is
virtual void OptimizeStorage()
Checks if the array representation is more economical and if so, switches to it.
virtual void SetShift(Bool_t shift)
virtual TList * GetLists() const
Int_t fTreeNumber
! the index of the tree in the chain (used when the entry list is used as input (TTree::SetEntryList(...
virtual void SetReapplyCut(Bool_t apply=kFALSE)
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 Long64_t GetEntriesToProcess() const
TDirectory * fDirectory
! Pointer to directory holding this tree
virtual void SetEntriesToProcess(Long64_t nen)
virtual TDirectory * GetDirectory() const
TObjArray * fBlocks
blocks with indices of passing events (TEntryListBlocks)
TEntryList & operator=(const TEntryList &)
virtual Int_t Contains(Long64_t entry, TTree *tree=0)
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.
virtual void DirectoryAutoAdd(TDirectory *)
Called by TKey and others to automatically add us to a directory when we are read from a file.
virtual ~TEntryList()
Destructor.
Long64_t fN
number of entries in the list
virtual void SetTreeNumber(Int_t index)
Long64_t fLastIndexReturned
! used to optimize GetEntry() function from a loop
virtual Bool_t GetReapplyCut() const
virtual Long64_t Next()
Return the next non-zero entry index (next after fLastIndexQueried) this function is faster than GetE...
virtual void SetDirectory(TDirectory *dir)
Add reference to directory dir. dir can be 0.
virtual TEntryList * GetCurrentList() const
virtual void SetTreeName(const char *treename)
virtual void Reset()
Reset this list.
virtual Bool_t Enter(Long64_t entry, TTree *tree=0)
Add entry #entry to the list.
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().
Int_t fNBlocks
number of TEntryListBlocks
virtual void SetFileName(const char *filename)
virtual const char * GetTreeName() const
virtual Int_t Merge(TCollection *list)
Merge this list with the lists from the collection.
TEntryList * fCurrent
! currently filled entry list
virtual void Print(const Option_t *option="") const
Print this list.
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 RelocatePaths(const char *newloc, const char *oldloc=0)
Relocate the file paths.
virtual Bool_t Remove(Long64_t entry, TTree *tree=0)
Remove entry #entry from the list.
Bool_t fShift
! true when some sub-lists don't correspond to trees (when the entry list is used as input in TChain)
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.
ULong_t fStringHash
! Hash value of a string of treename and filename
TList * fLists
a list of underlying entry lists for each tree of a chain
virtual Int_t ScanPaths(TList *roots, Bool_t notify=kTRUE)
Scan the paths to find the common roots.
TString fTreeName
name of the tree
TEntryList()
default c-tor
virtual void Subtract(const TEntryList *elist)
Remove all the entries of this entry list, that are contained in elist.
virtual void Add(const TEntryList *elist)
Add 2 entry lists.
friend TEntryList operator||(TEntryList &elist1, TEntryList &elist2)
virtual Long64_t GetN() const
The TNamed class is the base class for all named ROOT classes.
const char * Data() const
A TTree represents a columnar dataset.