3 * @file rec-from-hltout.C
4 * @brief Detector reconstruction from HLTOUT data
6 * Example macro to run detector reconstruction from the HLTOUT data
7 * instead of the original detector data.
9 * Usage: aliroot -b -q rec-from-hltout.C | tee rec-from-hltout.log
11 * The macro asumes detector ddl raw data to be available in the HLTOUT,
12 * e.g. simulated by sim-hlt-rawddl.C
13 * Input replacement is run for the ITS (Note that only the ITSSDD was
14 * published to HLTOUT)
16 * The HLTOUT handler implemented in libAliHLTSample.lib is used to
17 * redirect data blocks of type {DDLRAW :SMPL} from the HLTOUT to the
18 * reconstruction input. \b Note: the origin \em SMPL is a special
19 * id just for the purpose of examples.
21 * @author Matthias.Richter@ift.uib.no
22 * @ingroup alihlt_tutorial
24 void rec_from_hltout()
26 /////////////////////////////////////////////////////////////////////////
27 /////////////////////////////////////////////////////////////////////////
29 // setup of the HLT system
30 AliHLTSystem* pHLT=AliHLTPluginBase::GetInstance();
32 cerr << "fatal error: can not get HLT instance" << endl;
34 // load libAliHLTSample in order to make HLTOUT handler available
35 pHLT->LoadComponentLibraries("libAliHLTSample.so");
36 // disable chains from the library agent, not of interest for
37 // this example of data redirection
38 pHLT->ScanOptions("chains=");
40 /////////////////////////////////////////////////////////////////////////
41 /////////////////////////////////////////////////////////////////////////
43 // setup of the reconstruction
44 AliReconstruction rec;
46 rec.SetRunLocalReconstruction("ITS HLT");
47 rec.SetRunTracking("ITS");
48 rec.SetFillESD("ITS HLT");
50 rec.SetFillTriggerESD(kFALSE);
52 // set the redirection for ITS SDD
53 rec.SetUseHLTData("ITSSDD");