]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCDefinitions.h
effC++ and warnings
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDefinitions.h
CommitLineData
71d7c760 1// XEmacs -*-C++-*-
2// @(#) $Id$
3
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 */
8
9/* AliHLTTPCDefinitions
10 */
11
12#include "AliHLTDataTypes.h"
96bda103 13#include "Rtypes.h"
71d7c760 14
15class AliHLTTPCDefinitions
96bda103 16{
17public:
2a083ac4 18 AliHLTTPCDefinitions();
19 virtual ~AliHLTTPCDefinitions();
71d7c760 20
8ede8717 21 static AliHLTUInt8_t GetMinSliceNr( const AliHLTComponentBlockData& block )
71d7c760 22 {
23 return (AliHLTUInt8_t)( (block.fSpecification & 0x00FF0000) >> 16 );
24 }
a6c02c85 25 static AliHLTUInt8_t GetMinSliceNr( ULong_t spec )
26 {
27 return (AliHLTUInt8_t)( (spec & 0x00FF0000) >> 16 );
28 }
8ede8717 29 static AliHLTUInt8_t GetMaxSliceNr( const AliHLTComponentBlockData& block )
71d7c760 30 {
31 return (AliHLTUInt8_t)( (block.fSpecification & 0xFF000000) >> 24 );
32 }
a6c02c85 33 static AliHLTUInt8_t GetMaxSliceNr( ULong_t spec )
34 {
35 return (AliHLTUInt8_t)( (spec & 0xFF000000) >> 24 );
36 }
8ede8717 37 static AliHLTUInt8_t GetMinPatchNr( const AliHLTComponentBlockData& block )
71d7c760 38 {
39 return (AliHLTUInt8_t)( (block.fSpecification & 0x000000FF) );
40 }
a6c02c85 41 static AliHLTUInt8_t GetMinPatchNr( ULong_t spec )
42 {
43 return (AliHLTUInt8_t)( (spec & 0x000000FF) );
44 }
8ede8717 45 static AliHLTUInt8_t GetMaxPatchNr( const AliHLTComponentBlockData& block )
71d7c760 46 {
47 return (AliHLTUInt8_t)( (block.fSpecification & 0x0000FF00) >> 8 );
48 }
a6c02c85 49 static AliHLTUInt8_t GetMaxPatchNr( ULong_t spec )
50 {
51 return (AliHLTUInt8_t)( (spec & 0x0000FF00) >> 8 );
52 }
71d7c760 53
54 static AliHLTUInt32_t EncodeDataSpecification( AliHLTUInt8_t minSliceNr,
55 AliHLTUInt8_t maxSliceNr,
56 AliHLTUInt8_t minPatchNr,
57 AliHLTUInt8_t maxPatchNr )
58 {
59 return ((maxSliceNr & 0xFF) << 24) | ((minSliceNr & 0xFF) << 16) | ((maxPatchNr & 0xFF) << 8) | ((minPatchNr & 0xFF));
60 }
61
96bda103 62 /** DDL packed RAW data */
63 static const AliHLTComponentDataType fgkDDLPackedRawDataType; // see above
64 /** packed RAW data */
65 static const AliHLTComponentDataType fgkPackedRawDataType; // see above
66 /** unpacked RAW data */
67 static const AliHLTComponentDataType fgkUnpackedRawDataType; // see above
68 /** cluster data */
69 static const AliHLTComponentDataType fgkClustersDataType; // see above
70 /** track segments in local coordinates */
71 static const AliHLTComponentDataType fgkTrackSegmentsDataType; // see above
72 /** tracks in global koordinates */
73 static const AliHLTComponentDataType fgkTracksDataType; // see above
74 /** vertex data structure */
75 static const AliHLTComponentDataType fgkVertexDataType; // see above
71d7c760 76
96bda103 77 ClassDef(AliHLTTPCDefinitions, 0);
71d7c760 78
96bda103 79};
71d7c760 80
81#endif