]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MONITOR/monitor.C
Corrected size of array
[u/mrichter/AliRoot.git] / MONITOR / monitor.C
CommitLineData
04fa961a 1#if !defined(__CINT__) || defined(__MAKECINT__)
807ee5a3 2#include <TSystem.h>
3#include <TError.h>
4#include <TInterpreter.h>
04fa961a 5#include "MONITOR/AliMonitorProcess.h"
6#include "MONITOR/AliMonitorControl.h"
7#endif
8
807ee5a3 9void monitor(const char* alienHost = "alien://", const char* alienDir = ".")
04fa961a 10{
97d6eb66 11 // load libraries
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");
18 }
19 }
20 if (!gROOT->GetClass("AliMonitorProcess")) {
21 gSystem->Load("libMONITOR.so");
22 }
23
24 // make sure galice.root and compression tables are there
04fa961a 25 if (!gSystem->Which(".", "galice.root")) {
a3697eb5 26 gAlice->Init("$ALICE_ROOT/MONITOR/galice.C");
27 gAlice->GetRunLoader()->Write();
28 delete gAlice->GetRunLoader();
04fa961a 29 }
30 if (!gSystem->Which(".", "Table0.dat")) {
31 gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
32 }
97d6eb66 33
34 // start the monitoring
807ee5a3 35 AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir);
0f801e38 36 // process->Run();
37 new AliMonitorControl(process);
04fa961a 38}