4 #ifndef ALIHLTGLOBALESDCONVERTERCOMPONENT_H
5 #define ALIHLTGLOBALESDCONVERTERCOMPONENT_H
6 //* This file is property of and copyright by the ALICE HLT Project *
7 //* ALICE Experiment at CERN, All rights reserved. *
8 //* See cxx source for full Copyright notice *
10 // @file AliHLTGlobalEsdConverterComponent.h
11 // @author Matthias Richter
13 // @brief Global ESD converter component.
16 #include "AliHLTProcessor.h"
17 #include "AliHLTComponentBenchmark.h"
20 // forward declarations
24 struct AliHLTTracksData;
25 class AliTPCclusterMI;
28 * @class AliHLTGlobalEsdConverterComponent
29 * Global collector for information designated for the HLT ESD.
31 * componentid: \b GlobalEsdConverter <br>
32 * componentlibrary: \b libAliHLTGlobal.so <br>
34 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
36 * write ESD directly to output (::kAliHLTDataTypeESDObject)
37 * this has been made the default behavior in Sep 2008.
39 * write ESD directly to TTree and to output (::kAliHLTDataTypeESDTree)
40 * \li -skipobject=name1,name2,... <br>
41 * comma separated list of ESD object names to be skipped, default is
42 * AliESDZDC,AliESDFMD,Cascades,Kinks,AliRawDataErrorLogs,AliESDACORDE
43 * leave blank to disable the option
45 * @ingroup alihlt_global_components
47 class AliHLTGlobalEsdConverterComponent : public AliHLTProcessor
50 /** standard constructor */
51 AliHLTGlobalEsdConverterComponent();
53 virtual ~AliHLTGlobalEsdConverterComponent();
55 // interface methods of base class
56 const char* GetComponentID() {return "GlobalEsdConverter";};
57 void GetInputDataTypes(AliHLTComponentDataTypeList& list);
58 AliHLTComponentDataType GetOutputDataType();
59 int GetOutputDataTypes(AliHLTComponentDataTypeList& tgtList);
60 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
61 AliHLTComponent* Spawn() {return new AliHLTGlobalEsdConverterComponent;}
64 // interface methods of base class
65 int DoInit(int argc, const char** argv);
67 int DoEvent( const AliHLTComponentEventData& evtData,
68 AliHLTComponentTriggerData& trigData);
70 using AliHLTProcessor::DoEvent;
73 * Process the input data blocks.
74 * @param pTree tree to be filled
75 * @param pESD ESD to be filled
76 * @return neg. error code if failed
78 int ProcessBlocks(TTree* pTree, AliESDEvent* pESD, AliESDfriend *pESDfriend);
80 // void FillBenchmarkHistos(Double_t *statistics, TString *names);
82 /** copy constructor prohibited */
83 AliHLTGlobalEsdConverterComponent(const AliHLTGlobalEsdConverterComponent&);
84 /** assignment operator prohibited */
85 AliHLTGlobalEsdConverterComponent& operator=(const AliHLTGlobalEsdConverterComponent&);
88 * (Re)Configure from the CDB
89 * Loads the following objects:
90 * - HLT/ConfigHLT/SolenoidBz
92 int Reconfigure(const char* cdbEntry, const char* chainId);
95 * Configure the component.
96 * Parse a string for the configuration arguments and set the component
99 int Configure(const char* arguments);
101 /// write object to TTree or directly
102 int fWriteTree; //!transient
105 int fVerbosity; //!transient
109 static const Int_t fkNPartition = 36*6; // number of patches in TPC
112 AliESDEvent* fESD; //! transient value
115 AliESDfriend* fESDfriend; //! transient value
118 Double_t fSolenoidBz; //! transient
120 Bool_t fMakeFriends; // flag to create friends
121 AliTPCclusterMI *fPartitionClusters[fkNPartition]; //! arrays of cluster data for each TPC partition
122 Int_t fNPartitionClusters[fkNPartition]; //! number of clusters for each TPC partition
124 AliHLTComponentBenchmark fBenchmark; // benchmark
126 ClassDef(AliHLTGlobalEsdConverterComponent, 0)