fFileNumber = 0;
// Get number of events from esd tree
printf("AliESDInputHandlerRP::Init() %d %d\n",__LINE__, fNEvents);
+ //
+ AliESDInputHandler::Init(opt);
+ //
return kTRUE;
}
}
if (entry >= fNEvents) {
- AliWarning(Form("AliESDInputHandlerRP: Event number out of range %5d %5d\n", entry, fNEvents));
+ AliWarning(Form("AliESDInputHandlerRP: Event number out of range %5lld %5d\n", entry, fNEvents));
return kFALSE;
}
}
// Folder name
char folder[20];
- sprintf(folder, "Event%d", iev);
+ snprintf(folder, 20, "Event%d", iev);
// Tree R
TIter next(fRFiles);
TFile* file;
// Notify about directory change
// The directory is taken from the 'path' argument
//
- AliInfo(Form("Directory change %s \n", path));
+
// Get path to directory
TString fileName(path);
+ if (fileName.IsNull()) return kFALSE;
+ AliInfo(Form("Directory change %s \n", path));
if(fileName.Contains("#")){
// If this is an archive it will contain a #
{
TString name(entry->GetName());
TObjArray* tokens = name.Tokenize(".");
- Int_t ntok = tokens->GetEntries();
+ Int_t ntok = 0;
+ if (tokens) {
+ ntok = tokens->GetEntries();
+ } else {
+ continue;
+ }
if (ntok <= 1) continue;
TString str = ((TObjString*) tokens->At(1))->GetString();
if (!(strcmp(str.Data(), "RecPoints"))){
// Some clean-up
if (members) members->Delete();
+ AliESDInputHandler::Notify(path);
+
return kTRUE;
}