]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MONITOR/monitor.C
alien host and directory updated
[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
b25129f1 9void monitor(const char* alienHost = "alien://aliens7.cern.ch:15000/?direct",
10 const char* alienDir = "/alice_mdc/DC")
04fa961a 11{
97d6eb66 12 // load libraries
13 if (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0) {
14 if (!gROOT->GetClass("AliLevel3")) {
15 gSystem->Load("libAliL3Src.so");
16 gSystem->Load("libAliL3Misc.so");
17 gSystem->Load("libAliL3Hough.so");
18 gSystem->Load("libAliL3Comp.so");
19 }
20 }
21 if (!gROOT->GetClass("AliMonitorProcess")) {
22 gSystem->Load("libMONITOR.so");
23 }
24
25 // make sure galice.root and compression tables are there
04fa961a 26 if (!gSystem->Which(".", "galice.root")) {
a3697eb5 27 gAlice->Init("$ALICE_ROOT/MONITOR/galice.C");
28 gAlice->GetRunLoader()->Write();
29 delete gAlice->GetRunLoader();
04fa961a 30 }
31 if (!gSystem->Which(".", "Table0.dat")) {
32 gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat .");
33 }
97d6eb66 34
35 // start the monitoring
807ee5a3 36 AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir);
0f801e38 37 // process->Run();
38 new AliMonitorControl(process);
04fa961a 39}