]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MONITOR/monitor.C
Full Hough->deconvolution->fit chain implemented (C.Cheshkov)
[u/mrichter/AliRoot.git] / MONITOR / monitor.C
CommitLineData
04fa961a 1#if !defined(__CINT__) || defined(__MAKECINT__)
2#include "TSystem.h"
3#include "TInterpreter.h"
4#include "MONITOR/AliMonitorProcess.h"
5#include "MONITOR/AliMonitorControl.h"
6#endif
7
8void monitor(const char* alienDir = ".")
9{
97d6eb66 10 // load libraries
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");
17 }
18 }
19 if (!gROOT->GetClass("AliMonitorProcess")) {
20 gSystem->Load("libMONITOR.so");
21 }
22
23 // make sure galice.root and compression tables are there
04fa961a 24 if (!gSystem->Which(".", "galice.root")) {
25 gInterpreter->ExecuteMacro("$ALICE_ROOT/MONITOR/galice.C");
26 }
27 if (!gSystem->Which(".", "Table0.dat")) {
28 gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
29 }
97d6eb66 30
31 // start the monitoring
0f801e38 32 AliMonitorProcess *process = new AliMonitorProcess(alienDir);
33 // process->Run();
34 new AliMonitorControl(process);
04fa961a 35}