]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/exa/hltout-collect-esd.C
- switching MultFinder depending on 'ITS' in reconstruction recraw-local.C
[u/mrichter/AliRoot.git] / HLT / exa / hltout-collect-esd.C
CommitLineData
c1292031 1// $Id$
2/**
3 * @file hltout-collect-esd.C
4 * @brief Example for the AliHLTEsdCollectorComponent
5 *
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.
10 *
11 * Usage: aliroot -b -q hltout-collect-esd.C | tee hltout-collect-esd.log
12 *
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.
16 *
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.
20 *
21 * @author Matthias.Richter@ift.uib.no
22 * @ingroup alihlt_tutorial
23 */
24void hltout_collect_esd()
25{
26 /////////////////////////////////////////////////////////////////////////
27 /////////////////////////////////////////////////////////////////////////
28 //
29 // setup of the HLT system
7bf6c76d 30 AliHLTSystem* pHLT=AliHLTPluginBase!::GetInstance();
c1292031 31 if (!pHLT) {
32 cerr << "fatal error: can not get HLT instance" << endl;
33 }
34
35 /////////////////////////////////////////////////////////////////////////
36 /////////////////////////////////////////////////////////////////////////
37 //
38 // the configuration chain
39 TString arg;
40
41 // the publisher configuration
42 arg.Form("-typeid ESD_TREE -typeid ALIESDV0");
43 AliHLTConfiguration publisher("hltout-publisher", "AliHLTOUTPublisher" , NULL, arg.Data());
44
45 // the writer configuration
46 arg.Form("");
47 AliHLTConfiguration collector("sink1", "EsdCollector" , "hltout-publisher", arg.Data());
48
49 /////////////////////////////////////////////////////////////////////////
50 /////////////////////////////////////////////////////////////////////////
51 //
52 // setup of the reconstruction
53 AliReconstruction rec;
54 rec.SetInput("./");
55 rec.SetRunLocalReconstruction("HLT");
56 rec.SetRunTracking("");
57 rec.SetFillESD("");
5a78a6e3 58 rec.SetRunQA(":");
c1292031 59 rec.SetFillTriggerESD(kFALSE);
60 rec.SetRunVertexFinder(kFALSE);
61 rec.SetOption("HLT", "libAliHLTUtil.so loglevel=0x7c chains=sink1");
62 rec.Run();
63}