1 #if !defined(__CINT__) || defined(__MAKECINT__)
4 #include <TInterpreter.h>
5 #include "MONITOR/AliMonitorProcess.h"
6 #include "MONITOR/AliMonitorControl.h"
9 void monitor(const char* alienHost = "alien://", const char* alienDir = ".")
12 if (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0) {
13 if (!gROOT->GetClass("AliLevel3")) {
14 gSystem->Load("libAliL3Src.so");
15 gSystem->Load("libAliL3Misc.so");
16 gSystem->Load("libAliL3Hough.so");
17 gSystem->Load("libAliL3Comp.so");
20 if (!gROOT->GetClass("AliMonitorProcess")) {
21 gSystem->Load("libMONITOR.so");
24 // make sure galice.root and compression tables are there
25 if (!gSystem->Which(".", "galice.root")) {
26 // gInterpreter->ExecuteMacro("$ALICE_ROOT/MONITOR/galice.C");
27 ::Error("monitor.C", "no galice.root file found.\n"
28 "please copy a galice.root file with the correct TPC and ITS"
29 "parameters\n and the correct magnetic field to the current"
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);
40 new AliMonitorControl(process);