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);
+}
/*****************************************************************************/
/*****************************************************************************/
Bool_t IsFileWritable() const;
Bool_t IsFileOpen() const;
Bool_t IsOptionContrary(const TString& option) const;
+
+ void Synchronize();
+
protected:
Int_t GetDebug() const;
AliRunLoader* GetRunLoader();//gets the run-loader from event folder
det->SetTreeAddress();
}
/*****************************************************************************/
+
+void AliLoader::Synchronize()
+{
+ //synchrinizes all writtable files
+ TIter next(fDataLoaders);
+ AliDataLoader* dl;
+ while ((dl = (AliDataLoader*)next()))
+ {
+ dl->Synchronize();
+ }
+
+}
+/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
void SetDigitsFileNameSuffix(const TString& suffix);//adds the suffix before ".root",
//e.g. TPC.Digits.root -> TPC.DigitsMerged.root
//made on Jiri Chudoba demand
+ void Synchronize();
+
protected:
/*********************************************/
// Called at the end of the run.
//
-
if(fLego)
{
if (GetDebug()) Info("FinishRun"," Finish Lego");
// Clean detector information
if (GetDebug()) Info("FinishRun"," fGenerator->FinishRun()");
fGenerator->FinishRun();
+
+ fRunLoader->Synchronize();
}
//_______________________________________________________________________
}
}
/*****************************************************************************/
+
+void AliRunLoader::Synchronize()
+{
+ //synchrinizes all writtable files
+ TIter next(fLoaders);
+ AliLoader *loader;
+ while((loader = (AliLoader*)next()))
+ {
+ loader->Synchronize();
+ }
+
+ fKineDataLoader->Synchronize();
+ fTrackRefsDataLoader->Synchronize();
+
+}
/*****************************************************************************/
/*****************************************************************************/
const TObjArray* GetArrayOfLoaders() const {return fLoaders;}
Int_t GetDebug() const {return AliLoader::GetDebug();}
void cd(){fgRunLoader = this;}
-
+ void Synchronize();
+
protected:
/**********************************************/
/************ PROTECTED ***************/