X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliESDInputHandlerRP.cxx;h=6a9f9055d01c76daa4634d5782613e21721b56e3;hb=8f16115a61ede20ac71354ccf4a126d81c099942;hp=4e2971045210ac843623c93049dd9bc27c330569;hpb=73bbf779c8b5bc4b17167d036f2603ccfda77e61;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliESDInputHandlerRP.cxx b/STEER/AliESDInputHandlerRP.cxx index 4e297104521..6a9f9055d01 100644 --- a/STEER/AliESDInputHandlerRP.cxx +++ b/STEER/AliESDInputHandlerRP.cxx @@ -118,6 +118,9 @@ Bool_t AliESDInputHandlerRP::Init(Option_t* opt) fFileNumber = 0; // Get number of events from esd tree printf("AliESDInputHandlerRP::Init() %d %d\n",__LINE__, fNEvents); + // + AliESDInputHandler::Init(opt); + // return kTRUE; } @@ -213,9 +216,11 @@ Bool_t AliESDInputHandlerRP::Notify(const char *path) // 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 # @@ -262,7 +267,12 @@ Bool_t AliESDInputHandlerRP::Notify(const char *path) { 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"))){