Create TRD streamers in recreate mode (to avoid crashes in case of reopen)
authormivanov <marian.ivanov@cern.ch>
Tue, 27 May 2014 06:50:41 +0000 (08:50 +0200)
committerhristov <Peter.Hristov@cern.ch>
Thu, 29 May 2014 14:36:04 +0000 (16:36 +0200)
TRD/AliTRDReconstructor.cxx

index db1b61b..ce3c1c3 100644 (file)
@@ -167,7 +167,7 @@ void AliTRDReconstructor::Init(){
   if(IsDebugStreaming()){
     for(Int_t task = 0; task < AliTRDrecoParam::kTRDreconstructionTasks; task++){
       TDirectory *savedir = gDirectory;
-      fDebugStream[task] = new TTreeSRedirector(Form("TRD.Debug%s.root", fgTaskNames[task]));
+      fDebugStream[task] = new TTreeSRedirector(Form("TRD.Debug%s.root", fgTaskNames[task]),"recreate");
       savedir->cd();
       SETFLG(fSteerParam, kOwner);
     }