Fix - clean (remove) run's reconstructed directory after reco/viz
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jul 2012 13:40:20 +0000 (13:40 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Jul 2012 13:40:20 +0000 (13:40 +0000)
MONITOR/AliOnlineReco.cxx

index 8049833..a894180 100644 (file)
@@ -235,7 +235,6 @@ void AliOnlineReco::StartAliEve(mIntInt_i& mi)
              Form("%s(\"mem://@*:\")", gSystem->ExpandPathName(recMacroPath.Data())),
              (char*) 0);
 
-        gSystem->Exec(Form("rm -rf %s/reco/run%d_%d",gSystem->Getenv("ONLINERECO_BASE_DIR"),run,(Int_t)procPID));
       }
 
       if (s == -1)
@@ -383,6 +382,10 @@ void AliOnlineReco::ChildProcTerm(Int_t pid, Int_t status)
   {
     Int_t run = i->first;
     fRunList->RemoveEntry(run);
+    
+    // clean (remove) run's reconstructed directory
+    gSystem->Exec(Form("rm -rf %s/reco/run%d_%d",gSystem->Getenv("ONLINERECO_BASE_DIR"),run,pid));
+      
     if (status == 0)
     {
       fRunList->AddEntrySort(TString::Format("%-20d -- PROCESSED", run), run);