12#ifndef ROOT_TEntryListFromFile
13#define ROOT_TEntryListFromFile
54 static constexpr auto kBigNumber = std::numeric_limits<Long64_t>::max();
68 bool Enter(
Long64_t ,
const char * ,
const char * )
override {
return false; };
93 void SetTree(
const char * ,
const char * )
override {}
int Int_t
Signed integer 4 bytes (int).
long long Long64_t
Portable signed long integer 8 bytes.
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
Collection abstract base class.
TString fListName
name of the list
void SetTree(const TTree *) override
TEntryListFromFile & operator=(const TEntryListFromFile &)
void SetTreeNumber(Int_t index) override
virtual Int_t LoadList(Int_t listnumber)
Loads the list #listnumber This is the only function that can modify fCurrent and fFile data members.
Long64_t GetN() const override
~TEntryListFromFile() override
d-tor
virtual void SetNFiles(Int_t nfiles)
TEntryList * GetEntryList(const char *, const char *, Option_t *) override
bool Remove(Long64_t, TTree *) override
Int_t Contains(Long64_t, TTree *) override
TFile * fFile
currently open file fCurrent points to the currently open list
virtual void SetFileNames(TObjArray *names)
void Print(const Option_t *option="") const override
Print info about this list.
Int_t fNFiles
total number of files
Long64_t Next() override
Returns the next entry in the list.
void OptimizeStorage() override
const char * GetFileName() const override
const char * GetTreeName() const override
bool Enter(Long64_t, const char *, const char *) override
Long64_t GetEntryAndTree(Long64_t index, Int_t &treenum) override
Return the entry corresponding to the index parameter and the number of the tree, where this entry is...
virtual Long64_t GetEntries()
Returns the total number of entries in the list.
static constexpr auto kBigNumber
TEntryListFromFile(const TEntryListFromFile &)
void SetTree(const char *, const char *) override
Int_t GetTreeNumber() const override
TString fListFileName
from this string names of all files can be found
bool Enter(Long64_t, TTree *) override
void Add(const TEntryList *) override
Int_t Merge(TCollection *) override
Long64_t GetEntry(Long64_t index) override
Returns entry #index See also Next() for a faster alternative.
TObjArray * fFileNames
! points to the fFiles data member of the corresponding chain
Long64_t * fListOffset
[fNFiles] numbers of entries in ind. lists
virtual Long64_t GetEntriesFast() const
void Subtract(const TEntryList *) override
TEntryList * GetCurrentList() const override
TString fFileName
name of the file, where the tree is
Long64_t fN
number of entries in the list
TEntryList * fCurrent
! currently filled entry list
TString fTreeName
name of the tree
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
A TTree represents a columnar dataset.