44 fListFileName(
""), fListName(
""), fNFiles(0), fListOffset(0), fFile(0), fFileNames(0)
65 fListFileName(
filename), fListName(listname), fNFiles(nfiles), fListOffset(0), fFile(0), fFileNames(0)
92 if (
index<0)
return -1;
95 Error(
"GetEntry",
"Index value is too large\n");
108 Error(
"GetEntry",
"All lists are empty\n");
136 Error(
"GetEntry",
"Entry number is too big\n");
192 Error(
"Next",
"All lists are empty\n");
215 Error(
"Next",
"Something wrong with reading the current list, even though the file #%d and the list exist\n",
fTreeNumber);
248 if (filename_short.
Contains(
".root")){
253 filename_short.
Append(
"_elist.root");
258 filename.ReplaceAll(
"$", filename_short);
276 while ((key=(
TKey*)nextkey())){
307 printf(
"total number of files: %d\n",
fNFiles);
311 Error(
"Print",
"fFileNames was not set properly.");
313 for (
Int_t listnumber=0; listnumber<
fNFiles; listnumber++){
316 if (filename_short.
Contains(
".root")){
321 filename_short.
Append(
"_elist.root");
326 filename.ReplaceAll(
"$", filename_short);
330 if (
f && !
f->IsZombie()){
333 TIter nextkey(
f->GetListOfKeys());
334 while ((key=(
TKey*)nextkey())){
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 Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
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
TList * GetListOfKeys() const override
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
Manages entry lists from different files, when they are not loaded in memory at the same time.
TString fListName
name of the list
virtual Int_t LoadList(Int_t listnumber)
Loads the list #listnumber This is the only function that can modify fCurrent and fFile data members.
~TEntryListFromFile() override
d-tor
TFile * fFile
currently open file fCurrent points to the currently open list
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.
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.
TString fListFileName
from this string names of all files can be found
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
A List of entry numbers in a TTree or TChain.
Long64_t fLastIndexQueried
! used to optimize GetEntry() function from a loop
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
Long64_t fLastIndexReturned
! used to optimize GetEntry() function from a loop
virtual Long64_t Next()
Return the next non-zero entry index (next after fLastIndexQueried) this function is faster than GetE...
virtual Long64_t GetEntry(Long64_t index)
Return the number of the entry #index of this TEntryList in the TTree or TChain See also Next().
TEntryList * fCurrent
! currently filled entry list
void Print(const Option_t *option="") const override
Print this list.
virtual Long64_t GetN() const
A ROOT file is composed of a header, followed by consecutive data records (TKey instances) with a wel...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
virtual TObject * ReadObj()
To read a TObject* from the file.
The TNamed class is the base class for all named ROOT classes.
const char * GetTitle() const override
Returns title of object.
TObject * At(Int_t idx) const override
R__ALWAYS_INLINE Bool_t IsZombie() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * Data() const
TString & Remove(Ssiz_t pos)
TString & Append(const char *cs)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static constexpr Long64_t kMaxEntries