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