]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/misc/AliHLTDataHandler.h
compilation warnings corrected
[u/mrichter/AliRoot.git] / HLT / misc / AliHLTDataHandler.h
1 // @(#) $Id$
2
3 #ifndef ALIL3DATAHANDLER_H
4 #define ALIL3DATAHANDLER_H
5
6 #include "AliHLTMemHandler.h"
7
8 class AliHLTTransBit;
9
10 class AliHLTDataHandler : public AliHLTMemHandler {
11
12  public:
13   AliHLTDataHandler();
14   ~AliHLTDataHandler();
15     
16   void Convert10to8Bit();
17   Bool_t Memory2CompBinary(UInt_t nrow,AliHLTDigitRowData *data);
18   AliHLTDigitRowData *CompBinary2Memory(UInt_t &nrows);
19
20  private:
21   
22   AliHLTTransBit *fBitTransformer; //! bit transsformer
23   
24   void Write(Byte_t *comp,UInt_t &index,UShort_t value);
25   Short_t Read(Byte_t *comp,UInt_t &index);
26   Short_t Test(Byte_t *comp,UInt_t index);
27   Bool_t Memory2CompMemory(UInt_t nrow,AliHLTDigitRowData *data,Byte_t *comp);
28   UInt_t GetCompMemorySize(UInt_t row,AliHLTDigitRowData *data);
29   UInt_t GetMemorySize(UInt_t nrow,Byte_t *comp);
30   Bool_t CompMemory2CompBinary(UInt_t nrow,Byte_t *comp,UInt_t size);
31   Bool_t CompBinary2CompMemory(UInt_t &nrow,Byte_t *comp);
32   UInt_t CompMemory2Memory(UInt_t nrow,AliHLTDigitRowData *data,Byte_t *comp);
33
34   ClassDef(AliHLTDataHandler,1) //Data handler class
35 };
36
37 typedef AliHLTDataHandler AliL3DataHandler; // for backward compatibility
38
39 #endif