1 #if !defined(__CINT__) || defined(__MAKECINT__)
4 #include <TInterpreter.h>
5 #include "MONITOR/AliMonitorProcess.h"
6 #include "MONITOR/AliMonitorControl.h"
9 void monitor(Bool_t batchMode = kFALSE,
10 const char* alienHost = "alien://aliens7.cern.ch:15000/?direct",
11 const char* alienDir = "/alice_mdc/DC")
14 if (gSystem->Getenv("ALIHLT_USEPACKAGE") &&
15 (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0)) {
16 if (!gROOT->GetClass("AliLevel3")) {
17 gSystem->Load("libAliL3Src.so");
18 gSystem->Load("libAliL3Misc.so");
19 gSystem->Load("libAliL3Hough.so");
20 gSystem->Load("libAliL3Comp.so");
23 if (!gROOT->GetClass("AliMonitorProcess")) {
24 gSystem->Load("libMONITOR.so");
27 // make sure galice.root and compression tables are there
28 if (!gSystem->Which(".", "galice.root")) {
29 gAlice->Init("$ALICE_ROOT/MONITOR/galice.C");
30 gAlice->GetRunLoader()->Write();
31 delete gAlice->GetRunLoader();
33 if (!gSystem->Which(".", "Table0.dat")) {
34 gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
37 // start the monitoring
38 AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir);
43 new AliMonitorControl(process);