]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/MUON/OfflineInterface/AliHLTMUONESDMaker.h
Improving documentation and macros.
[u/mrichter/AliRoot.git] / HLT / MUON / OfflineInterface / AliHLTMUONESDMaker.h
CommitLineData
649ab027 1#ifndef ALIHLTMUONESDMAKER_H
2#define ALIHLTMUONESDMAKER_H
3/* This file is property of and copyright by the ALICE HLT Project *
4 * ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
1d8ae082 7// $Id: $
649ab027 8
9///
10/// @file AliHLTMUONESDMaker.h
11/// @author Artur Szostak <artursz@iafrica.com>
12/// @date 30 June 2008
13/// @brief Component for converting dHLT raw data into AliESDEvent objects.
14///
15
16#include "AliHLTMUONProcessor.h"
17
18/**
19 * @class AliHLTMUONESDMaker
1d8ae082 20 * \brief Component for converting dHLT results into ESD format.
21 *
649ab027 22 * The component is used to convert dHLT reconstructed data into AliESDEvent
23 * objects which can be stored in ROOT files during offline reconstruction.
24 * Only the dHLT track and trigger record data is converted, then filled in the ESD.
25 * These should then be merged together with ESDs from all the other parts of
26 * HLT (eg. TPC HLT).<br>
27 * This component can also be run online to have ESDs directly in the raw
28 * HLT output data stream.<br>
29 *
30 * Component ID: \b MUONESDMaker <br>
31 * Library: \b libAliHLTMUON.so <br>
32 *
33 * Optional arguments:<br>
34 * \li -make_minimal_esd <br>
35 * Indicates that AliESDEvent objects should be created with only the TClonesArray
36 * for the muon tracks created. (default is to generate all standard ESD objects)<br>
1d8ae082 37 * \li -add_rootified_objects <br>
38 * If specified then the any rootified dHLT event data that is found is added to the
39 * ESD list of objects as a custom data object.<br>
649ab027 40 * \li -warn_on_unexpected_block <br>
41 * If set, then warning messages are generated for any data block types that
42 * were not expected. (default is to generate only debug messages)<br>
1d8ae082 43 * \li -dumponerror <br>
44 * This flag will cause the component to dump the data blocks it received if
45 * an error occurs during the processing of an event. <br>
46 * \li -dumppath <i>path</i> <br>
47 * Allows one to specify the path in which to dump the received data blocks
48 * if an error occurs. <br>
649ab027 49 *
50 * @ingroup alihlt_dimuon_component
51 */
52class AliHLTMUONESDMaker : public AliHLTMUONProcessor
53{
54public:
55
56 AliHLTMUONESDMaker();
57 virtual ~AliHLTMUONESDMaker();
58
59 virtual const char* GetComponentID();
60
ffb64d3e 61 virtual void GetInputDataTypes(AliHLTComponentDataTypeList& list);
649ab027 62 virtual AliHLTComponentDataType GetOutputDataType();
63 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
64
65 virtual AliHLTComponent* Spawn();
66
67protected:
68
69 virtual int DoInit(int argc, const char** argv);
70 virtual int DoDeinit();
71 virtual int DoEvent(const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
ffb64d3e 72 virtual bool IgnoreArgument(const char* arg) const;
649ab027 73 using AliHLTProcessor::DoEvent;
74
75private:
76
77 // Prevent copying of these objects.
78 AliHLTMUONESDMaker(const AliHLTMUONESDMaker& /*object*/);
79 AliHLTMUONESDMaker& operator = (const AliHLTMUONESDMaker& /*object*/);
80
81 bool fWarnForUnexpecedBlock; /// Flag indicating if we should log a warning if we got a block of an unexpected type.
82 bool fMakeMinimalESD; /// Flag to indicate if a minimal ESD object should be created.
73ed798e 83 bool fAddCustomData; /// Flag to turn on adding of all dHLT rootified objects to the ESD.
649ab027 84
85 ClassDef(AliHLTMUONESDMaker, 0); // Component for converting dHLT reconstructed data into the ESD format.
86};
87
88#endif // ALIHLTMUONESDMAKER_H