]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/exa/sim-hlt-rawddl.C
bugfix: taking into account commit 26599 in AliHLTReconstructor
[u/mrichter/AliRoot.git] / HLT / exa / sim-hlt-rawddl.C
CommitLineData
833b3167 1// $Id$
2/**
3 * @file sim-hlt-rawddl.C
4 * @brief Publishing of RAW DDL data into the HLTOUT.
5 *
6 * Example macro to produce ddl raw data blocks in the HLTOUT. The HLT
7 * chain is run embedded into AliRoot simulation.
8 *
9 * The example publishes the ITSSDD data into the HLTOUT according to
10 * the configuration in the conf-hlt-rawddl.C macro. The normal digit
11 * to raw conversion is used to have the raw data available.
12 * \b Note: if you want to change this example for another detector,
13 * you need to change the detector in both this macro and the
14 * configuration.
15 *
16 * Usage: aliroot -b -q sim-hlt-rawddl.C | tee sim-hlt-rawddl.log
17 *
18 * The chain to be run is defined by the macro given to the parameter
19 * 'config='
20 *
21 * The macro asumes the data to be already simulated. If it should run
22 * within the initial simulation, comment the corresponding functions
23 * below (SetRunGeneration etc.)
24 *
25 * @author Matthias.Richter@ift.uib.no
26 * @ingroup alihlt_tutorial
27 */
28void sim_hlt_rawddl() {
29 AliSimulation sim;
30
31 // switch of simulation and data generation
32 // comment all that stuff to also simulate the events and data
33 sim.SetRunGeneration(kFALSE);
34 sim.SetMakeDigits("");
35 sim.SetMakeSDigits("");
36 sim.SetMakeDigitsFromHits("");
37 sim.SetMakeTrigger("");
38
39 // write the raw data for the ITS since we want to publish those
40 // write HLT raw data since we want to replace the original
41 // detector data from the HLTOUT
42 sim.SetWriteRawData("HLT");
43
44 // set the options for the HLT simulation:
45 // libAliHLTUtil.so libAliHLTSample.so
46 // loads the specified libraries since the HLT chain will use components
47 // from those two
48 // loglevel=
49 // the internal logging level in the HLT, use 0x7c for higher verbosity
50 // config=<file>
51 // the configuration to be run
52 // chains=<chain>
53 // run the specified chains, defined in the configuration macro
54 // rawfile=<path>
55 // in this case we want to just forward the DDL data blocks
56 // to the HLTOUT. We need to set the location of the formerly generated
57 // rawfiles with the rawfile
58 sim.SetRunHLT("libAliHLTUtil.so libAliHLTSample.so loglevel=0x7c rawfile=./ "
59 "config=$ALICE_ROOT/HLT/exa/conf-hlt-rawddl.C chains=publisher");
60 sim.Run();
61}