ROOT logo
// $Id$
/*
 * @file sim-sddraw-hltout.C
 * @brief Publishing of SDD RAW DDL data into the HLTOUT.
 *
 * Example macro to produce ddl raw data blocks in the HLTOUT. The HLT
 * chain is run embedded into AliRoot simulation. 
 *
 * The example publishes the ITSSDD data into the HLTOUT according to
 * the configuration in the conf-sddraw-hltout.C macro. The normal digit
 * to raw conversion is used to have the raw data available.
 * \b Note: if you want to change this example for another detector,
 * you need to change the detector in both this macro and the
 * configuration.
 *
 * Usage: aliroot -b -q sim-sddraw-hltout.C | tee sim-sddraw-hltout.log
 *
 * The chain to be run is defined by the macro given to the parameter
 * 'config='
 *
 * The macro asumes the data to be already simulated. If it should run
 * within the initial simulation, comment the corresponding functions
 * below (SetRunGeneration etc.)
 *
 * @author Matthias.Richter@ift.uib.no
 * @ingroup alihlt_its
 */
void sim_sddraw_hltout() {
  AliSimulation sim;

  // switch of simulation and data generation
  // comment all that stuff to also simulate the events and data
  sim.SetRunGeneration(kFALSE);
  sim.SetMakeDigits("");
  sim.SetMakeSDigits("");
  sim.SetMakeDigitsFromHits("");
  sim.SetMakeTrigger("");
  sim.SetRunQA(kFALSE)

  // write the raw data for the ITS since we want to publish those
  // write HLT raw data since we want to replace the original
  // detector data from the HLTOUT
  sim.SetWriteRawData("ITS HLT");

  // set the options for the HLT simulation:
  // libAliHLTUtil.so libAliHLTSample.so
  //     loads the specified libraries since the HLT chain will use components
  //     from those two
  // loglevel=
  //     the internal logging level in the HLT, use 0x7c for higher verbosity
  // config=<file>
  //     the configuration to be run
  // chains=<chain>
  //     run the specified chains, defined in the configuration macro
  // rawfile=<path>
  //     in this case we want to just forward the DDL data blocks
  //     to the HLTOUT. We need to set the location of the formerly generated
  //     rawfiles with the rawfile
  sim.SetRunHLT("libAliHLTITS.so loglevel=0x7c rawfile=./ "
		"config=$ALICE_ROOT/HLT/ITS/macros/conf-sddraw-hltout.C chains=publisher");

  sim.Run();
}
 sim-sddraw-hltout.C:1
 sim-sddraw-hltout.C:2
 sim-sddraw-hltout.C:3
 sim-sddraw-hltout.C:4
 sim-sddraw-hltout.C:5
 sim-sddraw-hltout.C:6
 sim-sddraw-hltout.C:7
 sim-sddraw-hltout.C:8
 sim-sddraw-hltout.C:9
 sim-sddraw-hltout.C:10
 sim-sddraw-hltout.C:11
 sim-sddraw-hltout.C:12
 sim-sddraw-hltout.C:13
 sim-sddraw-hltout.C:14
 sim-sddraw-hltout.C:15
 sim-sddraw-hltout.C:16
 sim-sddraw-hltout.C:17
 sim-sddraw-hltout.C:18
 sim-sddraw-hltout.C:19
 sim-sddraw-hltout.C:20
 sim-sddraw-hltout.C:21
 sim-sddraw-hltout.C:22
 sim-sddraw-hltout.C:23
 sim-sddraw-hltout.C:24
 sim-sddraw-hltout.C:25
 sim-sddraw-hltout.C:26
 sim-sddraw-hltout.C:27
 sim-sddraw-hltout.C:28
 sim-sddraw-hltout.C:29
 sim-sddraw-hltout.C:30
 sim-sddraw-hltout.C:31
 sim-sddraw-hltout.C:32
 sim-sddraw-hltout.C:33
 sim-sddraw-hltout.C:34
 sim-sddraw-hltout.C:35
 sim-sddraw-hltout.C:36
 sim-sddraw-hltout.C:37
 sim-sddraw-hltout.C:38
 sim-sddraw-hltout.C:39
 sim-sddraw-hltout.C:40
 sim-sddraw-hltout.C:41
 sim-sddraw-hltout.C:42
 sim-sddraw-hltout.C:43
 sim-sddraw-hltout.C:44
 sim-sddraw-hltout.C:45
 sim-sddraw-hltout.C:46
 sim-sddraw-hltout.C:47
 sim-sddraw-hltout.C:48
 sim-sddraw-hltout.C:49
 sim-sddraw-hltout.C:50
 sim-sddraw-hltout.C:51
 sim-sddraw-hltout.C:52
 sim-sddraw-hltout.C:53
 sim-sddraw-hltout.C:54
 sim-sddraw-hltout.C:55
 sim-sddraw-hltout.C:56
 sim-sddraw-hltout.C:57
 sim-sddraw-hltout.C:58
 sim-sddraw-hltout.C:59
 sim-sddraw-hltout.C:60
 sim-sddraw-hltout.C:61
 sim-sddraw-hltout.C:62
 sim-sddraw-hltout.C:63
 sim-sddraw-hltout.C:64