3 * @file rec-sdd-from-hltout.C
4 * @brief SDD reconstruction from HLTOUT data
6 * Example macro to run SDD reconstruction from the HLTOUT data
7 * instead of the original detector data.
9 * Usage: aliroot -b -q rec-sdd-from-hltout.C | tee rec-sdd-from-hltout.log
11 * The macro asumes SDD ddl raw data to be available in the HLTOUT,
12 * e.g. simulated by sim-sddraw-hltout.C this publishes ITSSDD raw data
13 * into HLTOUT. Input replacement is run for the ITS.
15 * The HLTOUT handler implemented in libAliHLTITS.lib is used to
16 * redirect data blocks of type {DDLRAW :ITS } from the HLTOUT to the
17 * reconstruction input.
19 * @author Matthias.Richter@ift.uib.no
22 void rec_sdd_from_hltout()
24 /////////////////////////////////////////////////////////////////////////
25 /////////////////////////////////////////////////////////////////////////
27 // setup of the HLT system
28 gSystem->Load("libHLTrec");
29 AliHLTSystem* pHLT=AliHLTReconstructorBase::GetInstance();
31 cerr << "fatal error: can not get HLT instance" << endl;
33 // disable chains from the library agent, not of interest for
34 // this example of data redirection
35 pHLT->ScanOptions("chains=");
37 /////////////////////////////////////////////////////////////////////////
38 /////////////////////////////////////////////////////////////////////////
40 // setup of the reconstruction
41 AliReconstruction rec;
43 rec.SetRunLocalReconstruction("ITS HLT");
44 rec.SetRunTracking("ITS");
45 rec.SetFillESD("ITS HLT");
47 rec.SetFillTriggerESD(kFALSE);
49 // set the redirection for ITS SDD
50 rec.SetUseHLTData("ITSSDD");