1 #if !defined(__CINT__) || defined(__MAKECINT__)
3 #include "TInterpreter.h"
4 #include "MONITOR/AliMonitorProcess.h"
5 #include "MONITOR/AliMonitorControl.h"
8 void monitor(const char* alienDir = ".")
11 if (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0) {
12 if (!gROOT->GetClass("AliLevel3")) {
13 gSystem->Load("libAliL3Src.so");
14 gSystem->Load("libAliL3Misc.so");
15 gSystem->Load("libAliL3Hough.so");
16 gSystem->Load("libAliL3Comp.so");
19 if (!gROOT->GetClass("AliMonitorProcess")) {
20 gSystem->Load("libMONITOR.so");
23 // make sure galice.root and compression tables are there
24 if (!gSystem->Which(".", "galice.root")) {
25 gInterpreter->ExecuteMacro("$ALICE_ROOT/MONITOR/galice.C");
27 if (!gSystem->Which(".", "Table0.dat")) {
28 gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
31 // start the monitoring
32 AliMonitorProcess *process = new AliMonitorProcess(alienDir);
34 new AliMonitorControl(process);