Updated version of the monitoring (Catalin)
[u/mrichter/AliRoot.git] / test / PbPbbench / monrec.C
index e8e1de3fdb6bd8c6d87dae5722762ec63e03ef5b..e4182826d981d27a707207bd503568c3463344f2 100644 (file)
@@ -3,13 +3,7 @@ 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(gSystem->Getenv("TEST_PLATFORMID"),"Reconstruction PbPb","aliendb3.cern.ch");
 
 
   gROOT->LoadMacro("rec.C");
@@ -30,4 +24,5 @@ void monrec() {
   gMonitoringWriter->SendParameters(valuelist);
   delete valuelist;
 
+  printf("#Test finished successfully#\n");
 }