AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
monitor.C
Go to the documentation of this file.
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <TSystem.h>
3 #include <TError.h>
4 #include <TInterpreter.h>
5 #include "AliRun.h"
6 #include "MONITOR/AliMonitorProcess.h"
7 #include "MONITOR/AliMonitorControl.h"
8 #endif
9 
10 void monitor(Bool_t batchMode = kFALSE,
11  const char* selection = "ALL",
12  const char* alienHost = "alien://aliens7.cern.ch:15000/?direct",
13  const char* alienDir = "/alice_mdc/DC")
14 {
15  // load libraries
16  if (!gROOT->GetClass("AliLevel3")) {
17  gSystem->Load("libAliHLTSrc");
18  gSystem->Load("libAliHLTMisc");
19  gSystem->Load("libAliHLTHough");
20  gSystem->Load("libAliHLTComp");
21  }
22  if (!gROOT->GetClass("AliMonitorProcess")) {
23  gSystem->Load("libMONITOR");
24  }
25 
26  // make sure galice.root is there
27  if (!gSystem->Which(".", "galice.root")) {
28  gAlice->InitMC("$ALICE_ROOT/MONITOR/galice.C");
29  AliRunLoader::Instance()->Write();
30  delete AliRunLoader::Instance();
31  }
32 
33  // start the monitoring
34  AliMonitorProcess *process = new AliMonitorProcess(alienHost, alienDir,
35  selection);
36  if (batchMode) {
37  process->Run();
38  delete process;
39  } else {
40  new AliMonitorControl(process);
41  }
42 }
void monitor(Bool_t batchMode=kFALSE, const char *selection="ALL", const char *alienHost="alien://aliens7.cern.ch:15000/?direct", const char *alienDir="/alice_mdc/DC")
Definition: monitor.C:10
TROOT * gROOT
AliRun * gAlice