DCS map is stored in a file in the temp folder where the detector is processed.
authoracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2007 16:15:47 +0000 (16:15 +0000)
committeracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2007 16:15:47 +0000 (16:15 +0000)
If the preprocessor fails, the temp folder is not removed. This will help the debugging of the problem.

SHUTTLE/AliShuttle.cxx

index 0643eaa..328ee00 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.63  2007/11/02 10:53:16  acolla
+Protection added to AliShuttle::CopyFileLocally
+
 Revision 1.62  2007/10/31 18:23:13  acolla
 Furter developement on the Shuttle:
 
@@ -1635,11 +1638,12 @@ Bool_t AliShuttle::Process(AliShuttleLogbookEntry* entry)
                        Bool_t success = ProcessCurrentDetector();
                        
                        gSystem->ChangeDirectory(wd.Data());
-                       
-                       gSystem->Exec(Form("rm -rf %s",tmpDir.Data()));
-                       
+                                               
                        if (success) // Preprocessor finished successfully!
                        { 
+                               // remove temporary folder
+                               gSystem->Exec(Form("rm -rf %s",tmpDir.Data()));
+                               
                                // Update time_processed field in FXS DB
                                if (UpdateTable() == kFALSE)
                                        Log("SHUTTLE", Form("Process - %s: Could not update FXS databases!", 
@@ -1859,6 +1863,13 @@ Bool_t AliShuttle::ProcessCurrentDetector()
                }
        }
        
+       // save map into file, to help debugging in case of preprocessor error
+       TFile* f = TFile::Open("DCSMap.root","recreate");
+       f->cd();
+       dcsMap->Write("DCSMap", TObject::kSingleKey);
+       f->Close();
+       delete f;
+       
        // DCS Archive DB processing successful. Call Preprocessor!
        UpdateShuttleStatus(AliShuttleStatus::kPPStarted);