4 * @brief Sample macro for the a monitoring component;
8 * aliroot -b -q monitoring.C | tee monitoring.log
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.
17 * The ROOTFileWriter component (AliHLTRootFileWriterComponent) provides
18 * a simple means to write ROOT objects to a ROOT file.
20 * See AliHLTSampleMonitoringComponent for detailed description.
22 * @author Matthias.Richter@ift.uib.no
23 * @ingroup alihlt_tutorial
26 /////////////////////////////////////////////////////////////////////////
27 /////////////////////////////////////////////////////////////////////////
28 /////////////////////////////////////////////////////////////////////////
29 // global initialization of the HLT
31 // this is just a tool to switch the logging systems
33 //log.SwitchAliLog(0);
36 gHLT.SetGlobalLoggingLevel(0x7c);
38 // load the component library
39 gHLT.LoadComponentLibraries("libAliHLTUtil.so");
40 gHLT.LoadComponentLibraries("libAliHLTSample.so");
42 /////////////////////////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////////////////////////
44 /////////////////////////////////////////////////////////////////////////
45 // now we build up a small chain
47 // publisher for the reconfigure event
49 AliHLTConfiguration monitoring("monitoring", "Sample-MonitoringComponent", NULL , "-push-histograms");
51 AliHLTConfiguration writer("writer", "ROOTFileWriter", "monitoring" , "");
54 gHLT.BuildTaskList("writer");
57 /////////////////////////////////////////////////////////////////////////
58 /////////////////////////////////////////////////////////////////////////
59 /////////////////////////////////////////////////////////////////////////