]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Post returns error when file is opened in read only mode and there is no data inside...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Mar 2004 16:41:03 +0000 (16:41 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Mar 2004 16:41:03 +0000 (16:41 +0000)
STEER/AliDataLoader.cxx
STEER/AliDataLoader.h

index 37128dced4fd355b64d2fc059daf016ec4c49bb9..cf59dd8b91c33febf66e0013814a044bceed42bd 100644 (file)
@@ -820,7 +820,8 @@ Int_t AliBaseLoader::Post()
      }
     else
      {
-        Warning("Post","Can not find %s in file %s", GetName(),GetDataLoader()->GetFile()->GetName());
+        Error("Post","Can not find %s in file %s", GetName(),GetDataLoader()->GetFile()->GetName());
+        return 5;
      }
    }
   return 0;
index 68d189bf10aeeef28858d84593d1d539a1dc1284..8af97f8a0229d869c208ee1af5f5c8cefc308c20 100644 (file)
@@ -149,8 +149,8 @@ class AliBaseLoader: public TNamed
     virtual Int_t      Reload();
     virtual Int_t      WriteData(Option_t* opt="");
     virtual void       Clean();
-    virtual Int_t      Post();
-    virtual Int_t      Post(TObject* data);
+    virtual Int_t      Post();//Takes from file and sends to proper TFolder (Data Folder)
+    virtual Int_t      Post(TObject* data);//Sends to proper TFolder (Data Folder)
     virtual TObject*   Get() const = 0; 
     Bool_t             IsLoaded()const{return fIsLoaded;}
     void               SetDataLoader(AliDataLoader* dl){fDataLoader = dl;}