3 #ifndef ALIHLTGLOBALESDCONVERTERCOMPONENT_H
4 #define ALIHLTGLOBALESDCONVERTERCOMPONENT_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 AliHLTGlobalEsdConverterComponent.h
10 @author Matthias Richter
12 @brief Global ESD converter component.
15 #include "AliHLTProcessor.h"
18 // forward declarations
21 struct AliHLTTracksData;
24 * @class AliHLTGlobalEsdConverterComponent
25 * Global collector for information designated for the HLT ESD.
27 * componentid: \b GlobalEsdConverter <br>
28 * componentlibrary: \b libAliHLTGlobal.so <br>
30 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
32 * write ESD directly to output (::kAliHLTDataTypeESDObject)
33 * this has been made the default behavior in Sep 2008.
35 * write ESD directly to TTree and to output (::kAliHLTDataTypeESDTree)
37 * @ingroup alihlt_tpc_components
39 class AliHLTGlobalEsdConverterComponent : public AliHLTProcessor
42 /** standard constructor */
43 AliHLTGlobalEsdConverterComponent();
45 virtual ~AliHLTGlobalEsdConverterComponent();
47 // interface methods of base class
48 const char* GetComponentID() {return "GlobalEsdConverter";};
49 void GetInputDataTypes(AliHLTComponentDataTypeList& list);
50 AliHLTComponentDataType GetOutputDataType();
51 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
52 AliHLTComponent* Spawn() {return new AliHLTGlobalEsdConverterComponent;}
55 // interface methods of base class
56 int DoInit(int argc, const char** argv);
58 int DoEvent( const AliHLTComponentEventData& evtData,
59 AliHLTComponentTriggerData& trigData);
61 using AliHLTProcessor::DoEvent;
64 * Process the input data blocks.
65 * @param pTree tree to be filled
66 * @param pESD ESD to be filled
67 * @return neg. error code if failed
69 int ProcessBlocks(TTree* pTree, AliESDEvent* pESD);
72 /** copy constructor prohibited */
73 AliHLTGlobalEsdConverterComponent(const AliHLTGlobalEsdConverterComponent&);
74 /** assignment operator prohibited */
75 AliHLTGlobalEsdConverterComponent& operator=(const AliHLTGlobalEsdConverterComponent&);
78 * (Re)Configure from the CDB
79 * Loads the following objects:
80 * - HLT/ConfigHLT/SolenoidBz
82 int Reconfigure(const char* cdbEntry, const char* chainId);
85 * Configure the component.
86 * Parse a string for the configuration arguments and set the component
89 int Configure(const char* arguments);
91 /// write object to TTree or directly
92 int fWriteTree; //!transient
95 int fVerbosity; //!transient
100 AliESDEvent* fESD; //! transient value
103 Double_t fSolenoidBz; //! transient
105 /// fill track parameters, constrained to vertex
106 Bool_t fFillVtxConstrainedTracks; //! transient
108 ClassDef(AliHLTGlobalEsdConverterComponent, 0)