]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ITSSPDFOda.cxx
fix in calling of gaussian spread function
[u/mrichter/AliRoot.git] / ITS / ITSSPDFOda.cxx
index 032ee490fb9f2a9f9c956a90b6fd90ce4f679bbb..ad4a8ed3967ef212c75d5d6162719ab2a2e9038a 100644 (file)
@@ -47,6 +47,7 @@ extern "C" {
 #include <TString.h>
 #include <TFitter.h>
 #include <TFile.h>
+#include <cstdlib>
 
 int main(int argc, char **argv) {
   if (argc<2) {
@@ -85,11 +86,9 @@ int main(int argc, char **argv) {
                                        "TStreamerInfo()");
   
   // turn off annoying warning messages
-  new AliLog;
-  AliLog::Instance()->SetGlobalDebugLevel(-20);
-  
-  
-  
+  // NB: Should not be handled here 
+  AliLog* logger = AliLog::GetRootLogger();
+  logger->SetGlobalDebugLevel(-20);
   
 // ********* STEP 0: Get configuration files from db (if there are any) , then read parameters*********  
   
@@ -356,6 +355,21 @@ int main(int argc, char **argv) {
       idsFXSfile << Form("%s\n",idf.Data());   
     }
     
+
+
+  printf("Preparing id list file\n");
+  idsFXSfile.close();
+  TString idlist = "SPD_id_list";
+#ifndef SPD_DA_OFF
+  status = daqDA_FES_storeFile(idsFXSFileName.Data(),idlist.Data());
+  if (status!=0) {
+    printf("Failed to export file %s , status %d\n",idsFXSFileName.Data(),status);
+    return -1;
+  }
+#endif
+
+
+
     timer.Stop();
     timer.Print();   
     printf("DA finished.\n");