20 #include <TObjString.h> 43 fLastEventSerialNr(-1),
45 fCurrentFileIndex(-1),
57 fLastEventSerialNr(-1),
59 fCurrentFileIndex(-1),
63 fEventFolderName(foldername)
106 TObjString *name =
new TObjString(fileName);
121 if (currentloader == 0x0)
124 "Can not get RL from folder named %s. Attempting to open next file",
127 if ( res == 0)
return kFALSE;
150 delete currentloader;
163 AliInfo(
"No more files in the stream") ;
170 TFile *
f = (TFile *)(
gROOT->GetListOfFiles()->FindObject(filename));
177 delete currentloader;
183 if (currentloader == 0x0)
197 AliError(
"Problems with loading header");
200 fEvents =
static_cast<Int_t
>(currentloader->
TreeE()->GetEntries());
228 if (!
gAlice)
return kFALSE;
239 if (order >
fFileNames->GetLast())
return fileName;
240 TObjString *fileNameStored =
dynamic_cast<TObjString*
>(
fFileNames->At(order));
241 if (fileNameStored) fileName = fileNameStored->GetString();
TString fMode
nr. of events in the current file
static Bool_t TestFileOption(Option_t *opt)
Bool_t NextEventInStream()
void Copy(TObject &as) const
TString fileName(const char *dir, int runNumber, const char *da, int i, const char *type)
static AliRunLoader * Open(const char *filename="galice.root", const char *eventfoldername=AliConfig::GetDefaultEventFolderName(), Option_t *option="READ")
void ChangeMode(Option_t *option)
#define AliFatal(message)
Int_t GetEvent(Int_t evno)
#define AliDebug(logLevel, message)
TString GetFileName(Int_t order) const
#define AliError(message)
static AliRunLoader * GetRunLoader(const char *eventfoldername)
void AddFile(const char *fileName)
AliRun * GetAliRun() const