]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/exa/rec-from-hltout.C
Fix of doxygen warning
[u/mrichter/AliRoot.git] / HLT / exa / rec-from-hltout.C
CommitLineData
833b3167 1// $Id$
2/**
3 * @file rec-from-hltout.C
4 * @brief Detector reconstruction from HLTOUT data
5 *
6 * Example macro to run detector reconstruction from the HLTOUT data
7 * instead of the original detector data.
8 *
9 * Usage: aliroot -b -q rec-from-hltout.C | tee rec-from-hltout.log
10 *
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)
15 *
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.
20 *
21 * @author Matthias.Richter@ift.uib.no
22 * @ingroup alihlt_tutorial
23 */
24void rec_from_hltout()
25{
26 /////////////////////////////////////////////////////////////////////////
27 /////////////////////////////////////////////////////////////////////////
28 //
29 // setup of the HLT system
30 gSystem->Load("libHLTrec");
31 AliHLTSystem* pHLT=AliHLTReconstructorBase::GetInstance();
32 if (!pHLT) {
33 cerr << "fatal error: can not get HLT instance" << endl;
34 }
35 // load libAliHLTSample in order to make HLTOUT handler available
36 pHLT->LoadComponentLibraries("libAliHLTSample.so");
37 // disable chains from the library agent, not of interest for
38 // this example of data redirection
39 pHLT->ScanOptions("chains=");
40
41 /////////////////////////////////////////////////////////////////////////
42 /////////////////////////////////////////////////////////////////////////
43 //
44 // setup of the reconstruction
45 AliReconstruction rec;
46 rec.SetInput("./");
47 rec.SetRunLocalReconstruction("ITS HLT");
48 rec.SetRunTracking("ITS");
49 rec.SetFillESD("ITS HLT");
5a78a6e3 50 rec.SetRunQA(":");
833b3167 51 rec.SetFillTriggerESD(kFALSE);
52
53 // set the redirection for ITS SDD
54 rec.SetUseHLTData("ITSSDD");
55
56 rec.Run();
57}