]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/monitor.C
Use PHOS version Run1
[u/mrichter/AliRoot.git] / MONITOR / monitor.C
index 4d9e02615950e3196c40e7463422019594a5acdd..91572515b158ec7ea5bf01359a20f8b2b78f1541 100644 (file)
@@ -2,40 +2,37 @@
 #include <TSystem.h>
 #include <TError.h>
 #include <TInterpreter.h>
+#include "AliRun.h"
 #include "MONITOR/AliMonitorProcess.h"
 #include "MONITOR/AliMonitorControl.h"
 #endif
 
 void monitor(Bool_t batchMode = kFALSE,
+            const char* selection = "ALL",
             const char* alienHost = "alien://aliens7.cern.ch:15000/?direct",
             const char* alienDir = "/alice_mdc/DC")
 {
   // load libraries
-  if (gSystem->Getenv("ALIHLT_USEPACKAGE") &&
-      (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0)) {
-    if (!gROOT->GetClass("AliLevel3")) {
-      gSystem->Load("libAliL3Src.so");
-      gSystem->Load("libAliL3Misc.so");
-      gSystem->Load("libAliL3Hough.so");
-      gSystem->Load("libAliL3Comp.so");
-    }
+  if (!gROOT->GetClass("AliLevel3")) {
+    gSystem->Load("libAliHLTSrc");
+    gSystem->Load("libAliHLTMisc");
+    gSystem->Load("libAliHLTHough");
+    gSystem->Load("libAliHLTComp");
   }
   if (!gROOT->GetClass("AliMonitorProcess")) {
-    gSystem->Load("libMONITOR.so");
+    gSystem->Load("libMONITOR");
   }
 
-  // make sure galice.root and compression tables are there
+  // make sure galice.root is there
   if (!gSystem->Which(".", "galice.root")) {
-    gAlice->Init("$ALICE_ROOT/MONITOR/galice.C");
-    gAlice->GetRunLoader()->Write();
-    delete gAlice->GetRunLoader();
-  }
-  if (!gSystem->Which(".", "Table0.dat")) {
-    gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
+    gAlice->InitMC("$ALICE_ROOT/MONITOR/galice.C");
+    AliRunLoader::Instance()->Write();
+    delete AliRunLoader::Instance();
   }
 
   // start the monitoring
-  AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir);
+  AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir,
+                                                    selection);
   if (batchMode) {
     process->Run();
     delete process;