4 #ifndef ALIHLTTPCDEFINITIONS_H
5 #define ALIHLTTPCDEFINITIONS_H
6 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 /* AliHLTTPCDefinitions
12 #include "AliHLTDataTypes.h"
15 class AliHLTTPCDefinitions
18 AliHLTTPCDefinitions();
19 virtual ~AliHLTTPCDefinitions();
21 static AliHLTUInt8_t GetMinSliceNr( const AliHLTComponentBlockData& block )
23 return (AliHLTUInt8_t)( (block.fSpecification & 0x00FF0000) >> 16 );
25 static AliHLTUInt8_t GetMinSliceNr( ULong_t spec )
27 return (AliHLTUInt8_t)( (spec & 0x00FF0000) >> 16 );
29 static AliHLTUInt8_t GetMaxSliceNr( const AliHLTComponentBlockData& block )
31 return (AliHLTUInt8_t)( (block.fSpecification & 0xFF000000) >> 24 );
33 static AliHLTUInt8_t GetMaxSliceNr( ULong_t spec )
35 return (AliHLTUInt8_t)( (spec & 0xFF000000) >> 24 );
37 static AliHLTUInt8_t GetMinPatchNr( const AliHLTComponentBlockData& block )
39 return (AliHLTUInt8_t)( (block.fSpecification & 0x000000FF) );
41 static AliHLTUInt8_t GetMinPatchNr( ULong_t spec )
43 return (AliHLTUInt8_t)( (spec & 0x000000FF) );
45 static AliHLTUInt8_t GetMaxPatchNr( const AliHLTComponentBlockData& block )
47 return (AliHLTUInt8_t)( (block.fSpecification & 0x0000FF00) >> 8 );
49 static AliHLTUInt8_t GetMaxPatchNr( ULong_t spec )
51 return (AliHLTUInt8_t)( (spec & 0x0000FF00) >> 8 );
54 static AliHLTUInt32_t EncodeDataSpecification( AliHLTUInt8_t minSliceNr,
55 AliHLTUInt8_t maxSliceNr,
56 AliHLTUInt8_t minPatchNr,
57 AliHLTUInt8_t maxPatchNr )
59 return ((maxSliceNr & 0xFF) << 24) | ((minSliceNr & 0xFF) << 16) | ((maxPatchNr & 0xFF) << 8) | ((minPatchNr & 0xFF));
62 static const AliHLTComponentDataType gkDDLPackedRawDataType;
63 static const AliHLTComponentDataType gkPackedRawDataType;
64 static const AliHLTComponentDataType gkUnpackedRawDataType;
65 static const AliHLTComponentDataType gkClustersDataType;
66 /** track segments in local coordinates */
67 static const AliHLTComponentDataType gkTrackSegmentsDataType;
68 /** tracks in global koordinates */
69 static const AliHLTComponentDataType gkTracksDataType;
70 static const AliHLTComponentDataType gkVertexDataType;
72 ClassDef(AliHLTTPCDefinitions, 0)