ROOT logo
// $Id$
/**
 * @file rec-from-hltout.C
 * @brief Detector reconstruction from HLTOUT data
 *
 * Example macro to run detector reconstruction from the HLTOUT data
 * instead of the original detector data.
 *
 * Usage: aliroot -b -q rec-from-hltout.C | tee rec-from-hltout.log
 *
 * The macro asumes detector ddl raw data to be available in the HLTOUT,
 * e.g. simulated by sim-hlt-rawddl.C
 * Input replacement is run for the ITS (Note that only the ITSSDD was
 * published to HLTOUT)
 *
 * The HLTOUT handler implemented in libAliHLTSample.lib is used to
 * redirect data blocks of type {DDLRAW :SMPL} from the HLTOUT to the
 * reconstruction input. \b Note: the origin \em SMPL is a special
 * id just for the purpose of examples.
 *
 * @author Matthias.Richter@ift.uib.no
 * @ingroup alihlt_tutorial
 */
void rec_from_hltout()
{
  /////////////////////////////////////////////////////////////////////////
  /////////////////////////////////////////////////////////////////////////
  //
  // setup of the HLT system
  AliHLTSystem* pHLT=AliHLTPluginBase::GetInstance();
  if (!pHLT) {
    cerr << "fatal error: can not get HLT instance" << endl;
  }
  // load libAliHLTSample in order to make HLTOUT handler available 
  pHLT->LoadComponentLibraries("libAliHLTSample.so");
  // disable chains from the library agent, not of interest for
  // this example of data redirection
  pHLT->ScanOptions("chains=");

  /////////////////////////////////////////////////////////////////////////
  /////////////////////////////////////////////////////////////////////////
  //
  // setup of the reconstruction
  AliReconstruction rec;
  rec.SetInput("./");
  rec.SetRunLocalReconstruction("ITS HLT");
  rec.SetRunTracking("ITS");
  rec.SetFillESD("ITS HLT");
  rec.SetRunQA(":");
  rec.SetFillTriggerESD(kFALSE);

  // set the redirection for ITS SDD
  rec.SetUseHLTData("ITSSDD");

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