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 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");
 }
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");
 } 
index a8d9a62c3652515ddef64d959896567ce0aec0e6..39b5c487930d710cc1bb6c2a2609056122c0627a 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 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");
+}