12 #ifndef ROOT_TEntryList 13 #define ROOT_TEntryList 59 TEntryList(
const char *name,
const char *title,
const char *treename,
const char *filename);
83 if ((fLists || fBlocks))
return kTRUE;
101 virtual void SetTree(
const char *treename,
const char *filename);
102 virtual void SetTreeName(
const char *treename){ fTreeName = treename; };
103 virtual void SetFileName(
const char *filename){ fFileName = 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 virtual void SetEntriesToProcess(Long64_t nen)
virtual void SetFileName(const char *filename)
Long64_t fEntriesToProcess
used on proof to set the number of entries to process in a packet
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 TDirectory * GetDirectory() const
virtual Long64_t GetN() const
virtual void SetReapplyCut(Bool_t apply=kFALSE)
virtual const char * GetFileName() const
virtual Int_t GetTreeNumber() const
virtual TList * GetLists() const
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
number of TEntryListBlocks
TList * fLists
a list of underlying entry lists for each tree of a chain
static Int_t Scan(const char *fn, TList *roots)
Scan TEntryList in 'fn' to find the common parts of paths.
Long64_t fLastIndexQueried
! used to optimize GetEntry() function from a loop
ULong_t fStringHash
! Hash value of a string of treename and filename
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
! true when some sub-lists don't correspond to trees (when the entry list is used as input in TChain)...
TEntryList & operator=(const TEntryList &)
virtual void SetDirectory(TDirectory *dir)
Add reference to directory dir. dir can be 0.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
virtual Long64_t GetEntriesToProcess() const
TDirectory * fDirectory
! Pointer to directory holding this tree
Bool_t fReapply
If true, TTree::Draw will 'reapply' the original cut.
virtual void Add(const TEntryList *elist)
Add 2 entry lists.
TString fTreeName
name of the tree
friend TEntryList operator||(TEntryList &elist1, TEntryList &elist2)
TEntryList * fCurrent
! currently filled entry list
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.
Long64_t fN
number of entries in the 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 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 GetReapplyCut() const
TEntryList()
default c-tor
virtual Bool_t Enter(Long64_t entry, TTree *tree=0)
Add entry #entry to the list.
TObjArray * fBlocks
blocks with indices of passing events (TEntryListBlocks)
Int_t fTreeNumber
! the index of the tree in the chain (used when the entry list is used as input (TTree::SetEntryList(...
virtual TEntryList * GetCurrentList() const
virtual void Print(const Option_t *option="") const
Print this list.
virtual void Reset()
Reset this list.
virtual const char * GetTreeName() const
virtual Bool_t Remove(Long64_t entry, TTree *tree=0)
Remove entry #entry from the list.
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...
virtual void SetTreeNumber(Int_t index)
A TTree object has a header with a name and a title.
TString fFileName
name of the file, where the tree is
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.
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.
decltype(auto) constexpr apply(F &&f, Tuple &&t)
virtual Int_t RelocatePaths(const char *newloc, const char *oldloc=0)
Relocate the file paths.
const char * Data() const