Updated version of the monitoring (Catalin)
[u/mrichter/AliRoot.git] / test / ppbench / monsim.C
index b29bfab43b513b575daf87f9a14691cb12b3086a..99de62cfa69c16a1165e1a3b72bd32f8d835367a 100644 (file)
@@ -3,13 +3,7 @@ void monsim(Int_t nev=20){
   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(),"Simulation pp","aliendb3.cern.ch");
+  new TMonaLisaWriter(gSystem->Getenv("TEST_PLATFORMID"),"Simulation pp","aliendb3.cern.ch");
 
   gROOT->LoadMacro("sim.C");
   sim(nev);
@@ -29,4 +23,5 @@ void monsim(Int_t nev=20){
   gMonitoringWriter->SendParameters(valuelist);
   delete valuelist;
 
-} 
+  printf("#Test finished successfully#\n");
+}