2 // ************************************************************************
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 *
7 //*************************************************************************
9 /// @file AliHLTTPCdEdxComponent.h
10 /// @author Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de>
12 /// @brief An ITS tracker processing component for the HLT
14 #ifndef ALIHLTTPCDEDXCOMPONENT_H
15 #define ALIHLTTPCDEDXCOMPONENT_H
17 #include "AliHLTProcessor.h"
18 #include "AliHLTDataTypes.h"
19 class AliTPCclusterMI;
22 * @class AliHLTTPCdEdxComponent
23 * The dEdx calculator component for the HLT TPC
26 class AliHLTTPCdEdxComponent : public AliHLTProcessor
29 /** standard constructor */
30 AliHLTTPCdEdxComponent();
32 /** dummy copy constructor, defined according to effective C++ style */
33 AliHLTTPCdEdxComponent( const AliHLTTPCdEdxComponent& );
35 /** dummy assignment op, but defined according to effective C++ style */
36 AliHLTTPCdEdxComponent& operator=( const AliHLTTPCdEdxComponent& );
38 /** standard destructor */
39 virtual ~AliHLTTPCdEdxComponent();
41 // Public functions to implement AliHLTComponent's interface.
42 // These functions are required for the registration process
44 /** @see component interface @ref AliHLTComponent::GetComponentID */
45 const char* GetComponentID() ;
47 /** @see component interface @ref AliHLTComponent::GetInputDataTypes */
48 void GetInputDataTypes( vector<AliHLTComponentDataType>& list ) ;
50 /** @see component interface @ref AliHLTComponent::GetOutputDataType */
51 AliHLTComponentDataType GetOutputDataType() ;
53 /** @see component interface @ref AliHLTComponent::GetOutputDataSize */
54 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) ;
56 /** @see component interface @ref AliHLTComponent::Spawn */
57 AliHLTComponent* Spawn() ;
61 // Protected functions to implement AliHLTComponent's interface.
62 // These functions provide initialization as well as the actual processing
63 // capabilities of the component.
65 /** @see component interface @ref AliHLTComponent::DoInit */
66 int DoInit( int argc, const char** argv );
68 /** @see component interface @ref AliHLTComponent::DoDeinit */
72 int Reconfigure( const char* cdbEntry, const char* chainId );
74 /** @see component interface @ref AliHLTProcessor::DoEvent */
75 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
76 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
77 AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
82 double fSolenoidBz; // see above
83 double fStatTime; //* total time for DoEvent() [s]
84 Long_t fStatNEvents; //* number of reconstructed events
85 static const Int_t fkNPatches = 36*6; // number of patches in TPC
86 AliTPCclusterMI *fPatchClusters[fkNPatches]; //! arrays of cluster data for each TPC patch
87 Int_t fNPatchClusters[fkNPatches]; //! N of clusters for each TPC patch
89 /** set configuration parameters **/
90 void SetDefaultConfiguration();
91 int ReadConfigurationString( const char* arguments );
92 int ReadCDBEntry( const char* cdbEntry, const char* chainId );
93 int Configure( const char* cdbEntry, const char* chainId, const char *commandLine );
95 ClassDef( AliHLTTPCdEdxComponent, 0 );