]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/ITS/macros/sim-sddraw-hltout.C
setting pushback interval to 10 s and adding verbosity switch
[u/mrichter/AliRoot.git] / HLT / ITS / macros / sim-sddraw-hltout.C
1 // $Id$
2 /*
3  * @file sim-sddraw-hltout.C
4  * @brief Publishing of SDD 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-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
14  * configuration.
15  *
16  * Usage: aliroot -b -q sim-sddraw-hltout.C | tee sim-sddraw-hltout.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_its
27  */
28 void sim_sddraw_hltout() {
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   sim.SetRunQA(kFALSE)
39
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");
44
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
48   //     from those two
49   // loglevel=
50   //     the internal logging level in the HLT, use 0x7c for higher verbosity
51   // config=<file>
52   //     the configuration to be run
53   // chains=<chain>
54   //     run the specified chains, defined in the configuration macro
55   // rawfile=<path>
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");
61
62   sim.Run();
63 }