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 gSystem->Load("libHLTrec");
31 AliHLTSystem* pHLT=AliHLTReconstructorBase::GetInstance();
33 cerr << "fatal error: can not get HLT instance" << endl;
36 /////////////////////////////////////////////////////////////////////////
37 /////////////////////////////////////////////////////////////////////////
39 // the configuration chain
42 // the publisher configuration
43 arg.Form("-typeid ESD_TREE -typeid ALIESDV0");
44 AliHLTConfiguration publisher("hltout-publisher", "AliHLTOUTPublisher" , NULL, arg.Data());
46 // the writer configuration
48 AliHLTConfiguration collector("sink1", "EsdCollector" , "hltout-publisher", arg.Data());
50 /////////////////////////////////////////////////////////////////////////
51 /////////////////////////////////////////////////////////////////////////
53 // setup of the reconstruction
54 AliReconstruction rec;
56 rec.SetRunLocalReconstruction("HLT");
57 rec.SetRunTracking("");
60 rec.SetFillTriggerESD(kFALSE);
61 rec.SetRunVertexFinder(kFALSE);
62 rec.SetOption("HLT", "libAliHLTUtil.so loglevel=0x7c chains=sink1");