3 * @file sim-sddraw-hltout.C
4 * @brief Publishing of SDD RAW DDL data into the HLTOUT.
6 * Example macro to produce ddl raw data blocks in the HLTOUT. The HLT
7 * chain is run embedded into AliRoot simulation.
9 * The example publishes the ITSSDD data into the HLTOUT according to
10 * the configuration in the conf-sddraw-hltout.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
16 * Usage: aliroot -b -q sim-sddraw-hltout.C | tee sim-sddraw-hltout.log
18 * The chain to be run is defined by the macro given to the parameter
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.)
25 * @author Matthias.Richter@ift.uib.no
28 void sim_sddraw_hltout() {
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("");
40 // write the raw data for the ITS since we want to publish those
41 // write HLT raw data since we want to replace the original
42 // detector data from the HLTOUT
43 sim.SetWriteRawData("ITS HLT");
45 // set the options for the HLT simulation:
46 // libAliHLTUtil.so libAliHLTSample.so
47 // loads the specified libraries since the HLT chain will use components
50 // the internal logging level in the HLT, use 0x7c for higher verbosity
52 // the configuration to be run
54 // run the specified chains, defined in the configuration macro
56 // in this case we want to just forward the DDL data blocks
57 // to the HLTOUT. We need to set the location of the formerly generated
58 // rawfiles with the rawfile
59 sim.SetRunHLT("libAliHLTITS.so loglevel=0x7c rawfile=./ "
60 "config=$ALICE_ROOT/HLT/ITS/macros/conf-sddraw-hltout.C chains=publisher");