3 * @file hltout-collect-esd.C
4 * @brief Example for the AliHLTEsdCollectorComponent
6 * Example macro to run a small chain with the AliHLTOUTPublisherComponent
7 * and the AliHLTEsdCollectorComponent. The AliHLTOUTPublisherComponent
8 * is configured to publish all ESD objects from the HLTOUT data, the
9 * AliHLTEsdCollectorComponent writes the files using the AliHLTEsdManager.
11 * Usage: aliroot -b -q hltout-collect-esd.C | tee hltout-collect-esd.log
13 * The macro asumes HLTOUT raw data ddl files in order to open an
14 * AliRawReaderFile, e.g. simulated using the default AliSimulation with
15 * at least SetWriteRawData("HLT") enabled.
17 * \b Note: The example disables a few steps in the AliReconstruction,
18 * mainly because of crashes in various parts of AliRoot. This does not
19 * have any impact to the HLT features to be presented.
21 * @author Matthias.Richter@ift.uib.no
22 * @ingroup alihlt_tutorial
24 void hltout_collect_esd()
26 /////////////////////////////////////////////////////////////////////////
27 /////////////////////////////////////////////////////////////////////////
29 // setup of the HLT system
30 AliHLTSystem* pHLT=AliHLTPluginBase!::GetInstance();
32 cerr << "fatal error: can not get HLT instance" << endl;
35 /////////////////////////////////////////////////////////////////////////
36 /////////////////////////////////////////////////////////////////////////
38 // the configuration chain
41 // the publisher configuration
42 arg.Form("-typeid ESD_TREE -typeid ALIESDV0");
43 AliHLTConfiguration publisher("hltout-publisher", "AliHLTOUTPublisher" , NULL, arg.Data());
45 // the writer configuration
47 AliHLTConfiguration collector("sink1", "EsdCollector" , "hltout-publisher", arg.Data());
49 /////////////////////////////////////////////////////////////////////////
50 /////////////////////////////////////////////////////////////////////////
52 // setup of the reconstruction
53 AliReconstruction rec;
55 rec.SetRunLocalReconstruction("HLT");
56 rec.SetRunTracking("");
59 rec.SetFillTriggerESD(kFALSE);
60 rec.SetRunVertexFinder(kFALSE);
61 rec.SetOption("HLT", "libAliHLTUtil.so loglevel=0x7c chains=sink1");