4 #ifndef ALIHLTTPCDEFINITIONS_H
5 #define ALIHLTTPCDEFINITIONS_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 #include "AliHLTDataTypes.h"
14 * @class AliHLTTPCDefinitions
15 * Data type definitions for the libAliHLTTPC library.
17 class AliHLTTPCDefinitions
20 AliHLTTPCDefinitions();
21 virtual ~AliHLTTPCDefinitions();
23 static AliHLTUInt8_t GetMinSliceNr( const AliHLTComponentBlockData& block )
25 return (AliHLTUInt8_t)( (block.fSpecification & 0x00FF0000) >> 16 );
27 static AliHLTUInt8_t GetMinSliceNr( ULong_t spec )
29 return (AliHLTUInt8_t)( (spec & 0x00FF0000) >> 16 );
31 static AliHLTUInt8_t GetMaxSliceNr( const AliHLTComponentBlockData& block )
33 return (AliHLTUInt8_t)( (block.fSpecification & 0xFF000000) >> 24 );
35 static AliHLTUInt8_t GetMaxSliceNr( ULong_t spec )
37 return (AliHLTUInt8_t)( (spec & 0xFF000000) >> 24 );
39 static AliHLTUInt8_t GetMinPatchNr( const AliHLTComponentBlockData& block )
41 return (AliHLTUInt8_t)( (block.fSpecification & 0x000000FF) );
43 static AliHLTUInt8_t GetMinPatchNr( ULong_t spec )
45 return (AliHLTUInt8_t)( (spec & 0x000000FF) );
47 static AliHLTUInt8_t GetMaxPatchNr( const AliHLTComponentBlockData& block )
49 return (AliHLTUInt8_t)( (block.fSpecification & 0x0000FF00) >> 8 );
51 static AliHLTUInt8_t GetMaxPatchNr( ULong_t spec )
53 return (AliHLTUInt8_t)( (spec & 0x0000FF00) >> 8 );
56 static AliHLTUInt32_t EncodeDataSpecification( AliHLTUInt8_t minSliceNr,
57 AliHLTUInt8_t maxSliceNr,
58 AliHLTUInt8_t minPatchNr,
59 AliHLTUInt8_t maxPatchNr )
61 return ((maxSliceNr & 0xFF) << 24) | ((minSliceNr & 0xFF) << 16) | ((maxPatchNr & 0xFF) << 8) | ((minPatchNr & 0xFF));
64 /** DDL packed RAW data */
65 static const AliHLTComponentDataType fgkDDLPackedRawDataType; // see above
66 /** DDL entropy encoded data */
67 static const AliHLTComponentDataType fgkDDLEncodedEntropyRawDataType; // see above
68 /** packed RAW data */
69 static const AliHLTComponentDataType fgkPackedRawDataType; // see above
70 /** unpacked RAW data */
71 static const AliHLTComponentDataType fgkUnpackedRawDataType; // see above
73 static const AliHLTComponentDataType fgkClustersDataType; // see above
74 /** track segments in local coordinates */
75 static const AliHLTComponentDataType fgkTrackSegmentsDataType; // see above
76 /** tracks in global koordinates */
77 static const AliHLTComponentDataType fgkTracksDataType; // see above
78 /** vertex data structure */
79 static const AliHLTComponentDataType fgkVertexDataType; // see above
81 // Cluster & Tracks model data
82 /** cluster tracks model data type */
83 static const AliHLTComponentDataType fgkClusterTracksModelDataType; // see above
84 /** remaining clusters model data type */
85 static const AliHLTComponentDataType fgkRemainingClustersModelDataType; // see above
86 /** cluster tracks compressed data type */
87 static const AliHLTComponentDataType fgkClusterTracksCompressedDataType; // see above
88 /** remaining clusters compressed data type */
89 static const AliHLTComponentDataType fgkRemainingClustersCompressedDataType; // see above
92 /** pedestal calibration data */
93 static const AliHLTComponentDataType fgkCalibPedestalDataType; // see above
94 /** signal calibration data */
95 static const AliHLTComponentDataType fgkCalibPulserDataType; // see above
96 /** central electrode calibration data */
97 static const AliHLTComponentDataType fgkCalibCEDataType; // see above
100 /** offline TreeR tree containing recpoints */
101 static const AliHLTComponentDataType fgkOfflineTreeR; // see above
103 ClassDef(AliHLTTPCDefinitions, 2)