9 #ifndef ALIHLTTPCCADATACOMPRESSOR_H
10 #define ALIHLTTPCCADATACOMPRESSOR_H
12 #include "AliHLTTPCCADef.h"
27 RowCluster(
unsigned int iRow,
unsigned int iCluster )
28 : fRow( iRow ), fCluster( iCluster ) {}
29 unsigned int Row()
const {
return fRow; }
30 unsigned int Cluster()
const {
return fCluster; }
32 unsigned int fRow : 8;
33 unsigned int fCluster : 24;
41 : fSlice( s ), fRow( r ), fCluster( c ) {}
42 unsigned int Slice()
const {
return fSlice; }
43 unsigned int Row()
const {
return fRow; }
44 unsigned int Cluster()
const {
return fCluster; }
46 unsigned int fSlice : 6;
47 unsigned int fRow : 8;
48 unsigned int fCluster : 18;
55 YZ(
float Y,
float Z );
65 inline YZ::YZ(
float _Y,
float _Z )
69 const float kMult = 255. / 6.;
70 _Y = ( _Y + 3. ) * kMult;
71 _Z = ( _Z + 3. ) * kMult;
74 }
else if ( _Y > 255.f ) {
77 fY =
static_cast<unsigned char>( CAMath::Round( _Y ) );
81 }
else if ( _Z > 255.f ) {
84 fZ =
static_cast<unsigned char>( CAMath::Round( _Z ) );
88 inline float YZ::Y()
const
92 const float kMult = 6. / 255.;
93 return fY * kMult - 3.f;
96 inline float YZ::Z()
const
100 const float kMult = 6. / 255.;
101 return fZ * kMult - 3.f;
106 namespace DataCompressor