update to adapt to QA framework modifications
[u/mrichter/AliRoot.git] / test / PbPbbench / monrec.C
index e8e1de3..234c790 100644 (file)
@@ -3,18 +3,12 @@ void monrec() {
   gSystem->Load("libNet.so");
   gSystem->Load("libMonaLisa.so");
 
-  SysInfo_t info;
-  gSystem->GetSysInfo(&info);
-
-  TString platform(info.fOS);
-  platform += ".";
-  platform += info.fCpuType;
-  new TMonaLisaWriter(platform.Data(),"Reconstruction PbPb","aliendb3.cern.ch");
+  new TMonaLisaWriter("aliendb3.cern.ch", "Reconstruction PbPb", gSystem->Getenv("TEST_PLATFORMID"), gSystem->Getenv("TEST_PLATFORMID"), "global");
 
 
   gROOT->LoadMacro("rec.C");
   rec();
-  gMonitoringWriter->SendProcessingProgress(1,1,kTRUE);  
+  if (gMonitoringWriter) gMonitoringWriter->SendProcessingProgress(1,1,kTRUE);  
 
   // Send the size of the AliESDs.root file
 
@@ -27,7 +21,8 @@ void monrec() {
   TMonaLisaValue* valdouble = new TMonaLisaValue("AliESDs.root size",buf.fSize);
   valuelist->Add(valdouble);
 
-  gMonitoringWriter->SendParameters(valuelist);
+  if (gMonitoringWriter) gMonitoringWriter->SendParameters(valuelist);
   delete valuelist;
 
+  printf("#Test finished successfully#\n");
 }