12#ifndef ROOT_TEntryListFromFile
13#define ROOT_TEntryListFromFile
52 static constexpr auto kBigNumber = std::numeric_limits<Long64_t>::max();
91 virtual void SetTree(
const char * ,
const char * ) {}
#define ClassDef(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.
virtual ~TEntryListFromFile()
d-tor
virtual Int_t Contains(Long64_t, TTree *)
TString fListName
name of the list
virtual Bool_t Enter(Long64_t, TTree *)
Add entry #entry to the list.
virtual void OptimizeStorage()
Checks if the array representation is more economical and if so, switches to it.
virtual Long64_t Next()
Returns the next entry in the list.
TEntryListFromFile & operator=(const TEntryListFromFile &)
virtual TEntryList * GetCurrentList() const
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 Int_t Merge(TCollection *)
Merge this list with the lists from the collection.
virtual void SetTreeNumber(Int_t index)
virtual void SetNFiles(Int_t nfiles)
TFile * fFile
currently open file fCurrent points to the currently open list
virtual void SetFileNames(TObjArray *names)
Int_t fNFiles
total number of files
virtual TEntryList * GetEntryList(const char *, const char *, Option_t *)
Return the entry list, corresponding to treename and filename By default, the filename is first tried...
virtual void Print(const Option_t *option="") const
Print info about this list.
virtual Long64_t GetEntryAndTree(Long64_t index, Int_t &treenum)
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 &)
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 Remove(Long64_t, TTree *)
Remove entry #entry from the list.
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,...
TString fListFileName
from this string names of all files can be found
virtual Long64_t GetN() const
virtual Bool_t Enter(Long64_t, const char *, const char *)
TObjArray * fFileNames
! points to the fFiles data member of the corresponding chain
virtual void Subtract(const TEntryList *)
Remove all the entries of this entry list, that are contained in elist.
Long64_t * fListOffset
[fNFiles] numbers of entries in ind. lists
virtual const char * GetTreeName() const
virtual Long64_t GetEntriesFast() const
virtual Long64_t GetEntry(Long64_t index)
Returns entry #index See also Next() for a faster alternative.
virtual Int_t GetTreeNumber() const
virtual const char * GetFileName() const
virtual void Add(const TEntryList *)
Add 2 entry lists.
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 a suite of consecutive data records (TKey instances) with a well defined format.
const char * Data() const
A TTree represents a columnar dataset.