Updated version of the monitoring (Catalin)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2007 16:56:48 +0000 (16:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2007 16:56:48 +0000 (16:56 +0000)
test/PbPbbench/monrec.C
test/PbPbbench/monsim.C
test/ppbench/monrec.C
test/ppbench/monsim.C

index e8e1de3..e418282 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");
 }
index 82e3365..f7a828e 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");
 } 
index a8d9a62..39b5c48 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 pp","aliendb3.cern.ch");
+  new TMonaLisaWriter(gSystem->Getenv("TEST_PLATFORMID"),"Reconstruction pp","aliendb3.cern.ch");
 
 
   gROOT->LoadMacro("rec.C");
@@ -30,4 +24,5 @@ void monrec() {
   gMonitoringWriter->SendParameters(valuelist);
   delete valuelist;
 
+  printf("#Test finished successfully#\n");
 }
index b29bfab..99de62c 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");
+}