12#ifndef ROOT_TEntryListFromFile
13#define ROOT_TEntryListFromFile
52 static constexpr auto kBigNumber = std::numeric_limits<Long64_t>::max();
66 bool Enter(
Long64_t ,
const char * ,
const char * )
override {
return false; };
91 void SetTree(
const char * ,
const char * )
override {}
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Collection abstract base class.
Manages entry lists from different files, when they are not loaded in memory at the same time.
TString fListName
name of the list
void SetTree(const TTree *) override
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
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
Return the entry list, corresponding to treename and filename By default, the filename is first tried...
bool Remove(Long64_t, TTree *) override
Remove entry #entry from the list.
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
Checks if the array representation is more economical and if so, switches to it.
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
If a list for a tree with such name and filename exists, sets it as the current sublist If not,...
Int_t GetTreeNumber() const override
TString fListFileName
from this string names of all files can be found
bool Enter(Long64_t, TTree *) override
Add entry #entry to the list.
void Add(const TEntryList *) override
Add 2 entry lists.
Int_t Merge(TCollection *) override
Merge this list with the lists from the collection.
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
Remove all the entries of this entry list, that are contained in elist.
TEntryList * GetCurrentList() const override
A List of entry numbers in a TTree or TChain.
TString fFileName
name of the file, where the tree is
Int_t fTreeNumber
! the index of the tree in the chain (used when the entry list is used as input (TTree::SetEntryList(...
Long64_t fN
number of entries in the list
TEntryList * fCurrent
! currently filled entry list
TString fTreeName
name of the tree
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
const char * Data() const
A TTree represents a columnar dataset.