4 #ifndef ALIHLTPHOSDEFINITIONS_H
5 #define ALIHLTPHOSDEFINITIONS_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"
13 //#include "TObject.h"
16 class AliHLTPHOSDefinitions
20 static AliHLTUInt8_t GetMinSliceNr( const AliHLTComponentBlockData& block )
22 return (AliHLTUInt8_t)( (block.fSpecification & 0x00FF0000) >> 16 );
24 static AliHLTUInt8_t GetMinSliceNr( ULong_t spec )
26 return (AliHLTUInt8_t)( (spec & 0x00FF0000) >> 16 );
28 static AliHLTUInt8_t GetMaxSliceNr( const AliHLTComponentBlockData& block )
30 return (AliHLTUInt8_t)( (block.fSpecification & 0xFF000000) >> 24 );
32 static AliHLTUInt8_t GetMaxSliceNr( ULong_t spec )
34 return (AliHLTUInt8_t)( (spec & 0xFF000000) >> 24 );
36 static AliHLTUInt8_t GetMinPatchNr( const AliHLTComponentBlockData& block )
38 return (AliHLTUInt8_t)( (block.fSpecification & 0x000000FF) );
40 static AliHLTUInt8_t GetMinPatchNr( ULong_t spec )
42 return (AliHLTUInt8_t)( (spec & 0x000000FF) );
44 static AliHLTUInt8_t GetMaxPatchNr( const AliHLTComponentBlockData& block )
46 return (AliHLTUInt8_t)( (block.fSpecification & 0x0000FF00) >> 8 );
48 static AliHLTUInt8_t GetMaxPatchNr( ULong_t spec )
50 return (AliHLTUInt8_t)( (spec & 0x0000FF00) >> 8 );
53 static AliHLTUInt32_t EncodeDataSpecification( AliHLTUInt8_t minSliceNr,
54 AliHLTUInt8_t maxSliceNr,
55 AliHLTUInt8_t minPatchNr,
56 AliHLTUInt8_t maxPatchNr )
58 return ((maxSliceNr & 0xFF) << 24) | ((minSliceNr & 0xFF) << 16) | ((maxPatchNr & 0xFF) << 8) | ((minPatchNr & 0xFF));
62 static const AliHLTComponentDataType gkDDLPackedRawDataType;
63 static const AliHLTComponentDataType gkCellEnergyDataType;
64 // static const AliHLTComponentDataType gkPackedRawDataType;
65 // static const AliHLTComponentDataType gkUnpackedRawDataType;
66 // static const AliHLTComponentDataType gkClustersDataType;
67 // static const AliHLTComponentDataType gkTrackSegmentsDataType;
68 // static const AliHLTComponentDataType gkVertexDataType;
70 // ClassDef(AliHLTPHOSDefinitions, 0)