#if !defined(__CINT__) || defined(__MAKECINT__) #include #include #include #include "MONITOR/AliMonitorProcess.h" #include "MONITOR/AliMonitorControl.h" #endif void monitor(Bool_t batchMode = kFALSE, const char* alienHost = "alien://aliens7.cern.ch:15000/?direct", const char* alienDir = "/alice_mdc/DC") { // load libraries if (gSystem->Getenv("ALIHLT_USEPACKAGE") && (strcmp(gSystem->Getenv("ALIHLT_USEPACKAGE"), "ALIROOT") == 0)) { if (!gROOT->GetClass("AliLevel3")) { gSystem->Load("libAliL3Src.so"); gSystem->Load("libAliL3Misc.so"); gSystem->Load("libAliL3Hough.so"); gSystem->Load("libAliL3Comp.so"); } } if (!gROOT->GetClass("AliMonitorProcess")) { gSystem->Load("libMONITOR.so"); } // make sure galice.root and compression tables are there if (!gSystem->Which(".", "galice.root")) { gAlice->Init("$ALICE_ROOT/MONITOR/galice.C"); gAlice->GetRunLoader()->Write(); delete gAlice->GetRunLoader(); } if (!gSystem->Which(".", "Table0.dat")) { gSystem->Exec("cp $ALICE_ROOT/RAW/Table*.dat ."); } // start the monitoring AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir); if (batchMode) { process->Run(); delete process; } else { new AliMonitorControl(process); } }