12 #ifndef ROOT_TEntryListFromFile 13 #define ROOT_TEntryListFromFile 52 static constexpr
auto kBigNumber = std::numeric_limits<Long64_t>::max();
90 virtual void SetTree(
const char * ,
const char * ){};
virtual Long64_t GetEntriesFast() const
TString fListName
name of the list
Manages entry lists from different files, when they are not loaded in memory at the same time...
TString fListFileName
from this string names of all files can be found
virtual void SetTree(const char *, const char *)
If a list for a tree with such name and filename exists, sets it as the current sublist If not...
virtual Bool_t Enter(Long64_t, TTree *)
Add entry #entry to the list.
TObjArray * fFileNames
! points to the fFiles data member of the corresponding chain
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Int_t fNFiles
total number of files
virtual Int_t Contains(Long64_t, TTree *)
virtual Int_t Merge(TCollection *)
Merge this list with the lists from the collection.
static constexpr auto kBigNumber
virtual void OptimizeStorage()
Checks if the array representation is more economical and if so, switches to it.
#define ClassDef(name, id)
TFile * fFile
currently open file fCurrent points to the currently open list
virtual void Print(const Option_t *option="") const
Print info about this list.
virtual void SetNFiles(Int_t nfiles)
virtual Int_t LoadList(Int_t listnumber)
Loads the list #listnumber This is the only function that can modify fCurrent and fFile data members...
virtual Long64_t Next()
Returns the next entry in the list.
TString fTreeName
name of the tree
virtual Long64_t GetEntry(Int_t index)
Returns entry #index See also Next() for a faster alternative.
TEntryListFromFile & operator=(const TEntryListFromFile &)
virtual void Add(const TEntryList *)
Add 2 entry lists.
virtual TEntryList * GetEntryList(const char *, const char *, Option_t *)
Return the entry list, correspoding to treename and filename By default, the filename is first tried ...
TEntryList * fCurrent
! currently filled entry list
Collection abstract base class.
virtual Bool_t Remove(Long64_t, TTree *)
Remove entry #entry from the list.
virtual void Subtract(const TEntryList *)
Remove all the entries of this entry list, that are contained in elist.
virtual ~TEntryListFromFile()
d-tor
Long64_t fN
number of entries in the list
virtual const char * GetTreeName() const
virtual void SetTreeNumber(Int_t index)
virtual const char * GetFileName() const
virtual Long64_t GetN() const
Long64_t * fListOffset
[fNFiles] numbers of entries in ind. lists
Int_t fTreeNumber
! the index of the tree in the chain (used when the entry list is used as input (TTree::SetEntryList(...
virtual Long64_t GetEntries()
Returns the total number of entries in the list.
virtual Long64_t GetEntryAndTree(Int_t index, Int_t &treenum)
Return the entry corresponding to the index parameter and the number of the tree, where this entry is...
virtual Int_t GetTreeNumber() const
virtual void SetTree(const TTree *)
If a list for a tree with such name and filename exists, sets it as the current sublist If not...
A TTree object has a header with a name and a title.
TString fFileName
name of the file, where the tree is
A List of entry numbers in a TTree or TChain.
virtual void SetFileNames(TObjArray *names)
virtual TEntryList * GetCurrentList() const
const char * Data() const