Root6-enabled version
[u/mrichter/AliRoot.git] / test / PbPbbench / monsim.C
index f7a828ef4a80cd8808a1286b465f11134d175bd4..f540c13f84b93db38b39b1beb22915827c770d65 100644 (file)
@@ -1,13 +1,22 @@
 void monsim(Int_t nev=1){ 
+  gSystem->Load("liblhapdf");
+  gSystem->Load("libEGPythia6");
+  gSystem->Load("libpythia6");
+  gSystem->Load("libAliPythia6");
+  gSystem->Load("libgeant321");
+  
+  gSystem->Load("libhijing");
+  gSystem->Load("libTHijing");
+
   // MonaLisa monitoring
   gSystem->Load("libNet.so");
   gSystem->Load("libMonaLisa.so");
 
-  new TMonaLisaWriter(gSystem->Getenv("TEST_PLATFORMID"),"Simulation PbPb","aliendb3.cern.ch");
+  new TMonaLisaWriter("aliendb3.cern.ch", "Simulation PbPb", gSystem->Getenv("TEST_PLATFORMID"), gSystem->Getenv("TEST_PLATFORMID"), "global");
 
   gROOT->LoadMacro("sim.C");
   sim(nev);
-  gMonitoringWriter->SendProcessingProgress(1,1,kTRUE);  
+  if (gMonitoringWriter) gMonitoringWriter->SendProcessingProgress(1,1,kTRUE);  
 
   // Send the size of the raw.root file
 
@@ -20,7 +29,7 @@ void monsim(Int_t nev=1){
   TMonaLisaValue* valdouble = new TMonaLisaValue("raw.root size",buf.fSize);
   valuelist->Add(valdouble);
 
-  gMonitoringWriter->SendParameters(valuelist);
+  if (gMonitoringWriter) gMonitoringWriter->SendParameters(valuelist);
   delete valuelist;
 
   printf("#Test finished successfully#\n");