3 // ************************************************************************
4 // This file is property of and copyright by the ALICE HLT Project *
5 // ALICE Experiment at CERN, All rights reserved. *
6 // See cxx source for full Copyright notice *
8 //*************************************************************************
10 /// @file AliHLTITSTrackerComponent.h
11 /// @author Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de>
13 /// @brief An ITS tracker processing component for the HLT
15 #ifndef ALIHLTITSTRACKERCOMPONENT_H
16 #define ALIHLTITSTRACKERCOMPONENT_H
18 #include "AliHLTProcessor.h"
19 #include "AliHLTDataTypes.h"
20 #include "AliHLTComponentBenchmark.h"
21 class AliITStrackerHLT;
25 * @class AliHLTITSTrackerComponent
26 * The HL ITS tracker component.
28 * <h2>General properties:</h2>
30 * Component ID: \b ITSTracker <br>
31 * Library: \b libAliHLTITS.so <br>
32 * Input Data Types: <br>
33 * kAliHLTDataTypeTrack|kAliHLTDataOriginTPC <br>
34 * kAliHLTDataTypeClusters|kAliHLTDataOriginITSSSD <br>
35 * kAliHLTDataTypeClusters|kAliHLTDataOriginITSSPD <br>
36 * kAliHLTDataTypeClusters|kAliHLTDataOriginITSSDD <br>
38 * Output Data Types: <br>
39 * kAliHLTDataTypeTrack|kAliHLTDataOriginITS <br>
41 * <h2>Mandatory arguments:</h2>
42 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
44 * <h2>Optional arguments:</h2>
45 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
47 * <h2>Configuration:</h2>
48 * <!-- NOTE: ignore the \li. <i> and </i>: it's just doxygen formatting -->
49 * \li -config1 <i> teststring </i> <br>
50 * a configuration argument with one parameter
52 * a configuration argument without parameters
54 * <h2>Default CDB entries:</h2>
59 * ITS/Calib/PITConditions
62 * ITS/Calib/DriftSpeedSDD
64 * ITS/Calib/MapsTimeSDD
67 * ITS/Calib/BadChannelsSSD
69 * <h2>Performance:</h2>
72 * <h2>Memory consumption:</h2>
75 * <h2>Output size:</h2>
78 * @ingroup alihlt_its_components
80 class AliHLTITSTrackerComponent : public AliHLTProcessor
83 /** standard constructor */
84 AliHLTITSTrackerComponent();
86 /** dummy copy constructor, defined according to effective C++ style */
87 AliHLTITSTrackerComponent( const AliHLTITSTrackerComponent& );
89 /** dummy assignment op, but defined according to effective C++ style */
90 AliHLTITSTrackerComponent& operator=( const AliHLTITSTrackerComponent& );
92 /** standard destructor */
93 virtual ~AliHLTITSTrackerComponent();
95 // Public functions to implement AliHLTComponent's interface.
96 // These functions are required for the registration process
98 /** @see component interface @ref AliHLTComponent::GetComponentID */
99 const char* GetComponentID() ;
101 /** @see component interface @ref AliHLTComponent::GetInputDataTypes */
102 void GetInputDataTypes( vector<AliHLTComponentDataType>& list ) ;
104 /** @see component interface @ref AliHLTComponent::GetOutputDataType */
105 AliHLTComponentDataType GetOutputDataType() ;
107 /** @see component interface @ref AliHLTComponent::GetOutputDataType */
108 int GetOutputDataTypes(AliHLTComponentDataTypeList& tgtList);
110 /** @see component interface @ref AliHLTComponent::GetOutputDataSize */
111 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) ;
113 /** @see component interface @ref AliHLTComponent::Spawn */
114 AliHLTComponent* Spawn() ;
118 // Protected functions to implement AliHLTComponent's interface.
119 // These functions provide initialization as well as the actual processing
120 // capabilities of the component.
122 /** @see component interface @ref AliHLTComponent::DoInit */
123 int DoInit( int argc, const char** argv );
125 /** @see component interface @ref AliHLTComponent::DoDeinit */
129 int Reconfigure( const char* cdbEntry, const char* chainId );
131 /** @see component interface @ref AliHLTProcessor::DoEvent */
132 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
133 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
134 AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
138 /** magnetic field */
139 double fSolenoidBz; // see above
140 AliHLTComponentBenchmark fBenchmark;// benchmark
141 AliITStrackerHLT *fTracker; // the tracker itself
143 /** set configuration parameters **/
144 void SetDefaultConfiguration();
145 int ReadConfigurationString( const char* arguments );
146 int ReadCDBEntry( const char* cdbEntry, const char* chainId );
147 int Configure( const char* cdbEntry, const char* chainId, const char *commandLine );
149 ClassDef( AliHLTITSTrackerComponent, 0 );