]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/exa/monitoring.C
removing r43353: temporary workaround for loading of additional library dependencies
[u/mrichter/AliRoot.git] / HLT / exa / monitoring.C
1 // $Id$
2 /**
3  * @file monitoring.C
4  * @brief Sample macro for the a monitoring component;
5  *
6  * Usage:
7  * <pre>
8  *   aliroot -b -q monitoring.C | tee monitoring.log
9  * </pre>
10  *
11  * This macro illustrates the creation of an HLT monitoring component.
12  * The \b Sample-MonitoringComponent component ignores all input data
13  * and just fakes some histograms. The histograms can be sent out via
14  * different ways. A real component has to have input data and a parent
15  * component providing the data in the chain.
16  *
17  * The ROOTFileWriter component (AliHLTRootFileWriterComponent) provides
18  * a simple means to write ROOT objects to a ROOT file.
19  *
20  * See AliHLTSampleMonitoringComponent for detailed description.
21  *
22  * @author Matthias.Richter@ift.uib.no
23  * @ingroup alihlt_tutorial
24  */
25 {
26   /////////////////////////////////////////////////////////////////////////
27   /////////////////////////////////////////////////////////////////////////
28   /////////////////////////////////////////////////////////////////////////
29   // global initialization of the HLT
30
31   // this is just a tool to switch the logging systems
32   AliHLTLogging log;
33   //log.SwitchAliLog(0);
34
35   AliHLTSystem gHLT;
36   gHLT.SetGlobalLoggingLevel(0x7c);
37
38   // load the component library
39   gHLT.LoadComponentLibraries("libAliHLTUtil.so");
40   gHLT.LoadComponentLibraries("libAliHLTSample.so");
41
42   /////////////////////////////////////////////////////////////////////////
43   /////////////////////////////////////////////////////////////////////////
44   /////////////////////////////////////////////////////////////////////////
45   // now we build up a small chain
46
47   // publisher for the reconfigure event
48   TString arg;
49   AliHLTConfiguration monitoring("monitoring", "Sample-MonitoringComponent", NULL , "-push-histograms");
50
51   AliHLTConfiguration writer("writer", "ROOTFileWriter", "monitoring" , "");
52
53   // run the chain
54   gHLT.BuildTaskList("writer");
55   gHLT.Run(1);
56
57   /////////////////////////////////////////////////////////////////////////
58   /////////////////////////////////////////////////////////////////////////
59   /////////////////////////////////////////////////////////////////////////
60   // cleanup
61
62 }