3 #ifndef ALIHLTRECONSTRUCTOR_H
4 #define ALIHLTRECONSTRUCTOR_H
5 //* This file is property of and copyright by the ALICE HLT Project *
6 //* ALICE Experiment at CERN, All rights reserved. *
7 //* See cxx source for full Copyright notice *
9 /** @file AliHLTReconstructor.h
10 @author Matthias Richter
12 @brief Binding class for HLT simulation in AliRoot
15 #include "AliReconstructor.h"
16 #include "AliHLTReconstructorBase.h"
22 class AliHLTEsdManager;
25 * @class AliHLTReconstructor
26 * AliHLTReconstructor AliRoot event reconstruction plugin for the HLT.
27 * The AliHLTReconstructor holds an instance of the @ref AliHLTSystem
28 * steering class. The actual reconstruction depends on the loaded component
29 * libraries. Each library must implement a module agent (@ref AliHLTModuleAgent)
30 * in order to provide information on the supported features and the
31 * configurations to be run.
33 * The default component libraries which are loaded through the initialization
34 * are determined by the @ref AliHLTSystem::fgkHLTDefaultLibs array. The library
35 * loading can be overridden by an option to the AliHLTReconstructor through the
36 * <tt>SetOption</tt> method of <tt>AliReconstruction</tt>, e.g.
38 * AliReconstruction rec;
39 * rec.SetOption("HLT", "libAliHLTSample.so");
41 * will only load <tt>libAliHLTSample.so</tt>
43 * Optional arguments:<br>
44 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formating -->
45 * \li loglevel=<i>level</i><br>
46 * level can be a hex number encoding the @ref AliHLTComponentLogSeverity
48 * disables the logging of HLT log messages through <tt>AliLog</tt> <br>
50 * For further information on the AliRoot reconstruction refer to the AliRoot
51 * documentation, namely <tt>AliReconstruction</tt>.
53 class AliHLTReconstructor: public AliReconstructor, public AliHLTReconstructorBase {
55 AliHLTReconstructor();
57 virtual ~AliHLTReconstructor();
59 /** init the reconstructor */
63 * This Reconstructor function is not applicable for the AliHLTReconstructor
64 * as it gets a detector specific digits tree. But HLT processes all detectors.
65 * Furthermore it's purely simulated data. <br>
66 * The function forwards to the default bahavior of AliReconstructor but gives
67 * a warning if there were options set, i.e. the user runs customized
70 * @note HLT reconstruction on simulated data is processed at the end of
73 void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
76 * Reconstruction from RAW data.
77 * The rawReader holds data for all detectors and this version of Reconstruct
78 * is thus applicable for the HLT. The clustersTree is just ignored.
80 void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
83 * This function treats the simulated HLTOUT data.
84 * Opens a handler for simulated HLTOUT data and forwards to ::ProcessHLTOUT.
86 void FillESD(TTree* digitsTree, TTree* clustersTree, AliESDEvent* esd) const;
89 * Process the raw HLTOUT data and fill ESD.
90 * Opens a handler for raw HLTOUT data and forwards to ::ProcessHLTOUT.
92 void FillESD(AliRawReader* rawReader, TTree* clustersTree, AliESDEvent* esd) const;
95 * Process HLTOUT data and fill ESD.
96 * This is the final treatment of the HLTOUT data, either simulated or real.
97 * HLTOUT data is stored in HOMER format, the AliHLTOUT object provides the interface
98 * to the individual data blocks.
100 * During reconstruction (::Reconstruct), module or user defined chains can be
101 * processed and may add additional data to the HLTOUT object. This data is then
102 * treated in the same way.
104 void ProcessHLTOUT(AliHLTOUT* pHLTOUT, AliESDEvent* esd) const;
107 /** copy constructor prohibited */
108 AliHLTReconstructor(const AliHLTReconstructor& src);
109 /** assignment operator prohibited */
110 AliHLTReconstructor& operator=(const AliHLTReconstructor& src);
112 /** function pointer: processing of HLTOUT data */
113 void* fFctProcessHLTOUT; //!transient
115 /** ESD manger instance for this reconstruction */
116 AliHLTEsdManager* fpEsdManager; //!transient
118 ClassDef(AliHLTReconstructor, 5) // class for the HLT reconstruction
122 typedef AliHLTReconstructor AliL3Reconstructor; // for backward compatibility