]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDataLoader.cxx
Change of coordinate system x->-x, z->-z
[u/mrichter/AliRoot.git] / STEER / AliDataLoader.cxx
index 2ec209cd7683ccf7c6527022b1e0c05599164564..2ee8be1394f27cd992d94d7f19bb7906e8cabec7 100644 (file)
@@ -245,6 +245,8 @@ void AliDataLoader::Unload()
 void AliDataLoader::UnloadAll()
 {
 //Unloads all data and tasks
+ if ( fFile == 0x0 ) return; //nothing loaded
  TIter next(fBaseLoaders);
  AliBaseLoader* bl;
  while ((bl = (AliBaseLoader*)next()))
@@ -665,6 +667,13 @@ void AliDataLoader::SetBaseQATaskLoader(AliTaskLoader* bl)
   if (GetBaseQATaskLoader()) delete GetBaseQATaskLoader();
   fBaseLoaders->AddAt(bl,kQATask);
 }
+void AliDataLoader::Synchronize()
+{
+  //synchrinizes all writtable files 
+  if ( fFile == 0x0 ) return;
+  if ( fFile->IsWritable() == kFALSE ) return;
+  fFile->Write(0,TObject::kOverwrite);
+}
 
 /*****************************************************************************/ 
 /*****************************************************************************/