]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/misc/AliL3DataHandler.h
New version of SPD raw-data reconstruction. The format now correponds to the actual...
[u/mrichter/AliRoot.git] / HLT / misc / AliL3DataHandler.h
1 // @(#) $Id$
2
3 #ifndef ALIL3DATAHANDLER_H
4 #define ALIL3DATAHANDLER_H
5
6 #include "AliL3MemHandler.h"
7
8 class AliL3TransBit;
9
10 class AliL3DataHandler : public AliL3MemHandler {
11
12  public:
13   AliL3DataHandler();
14   ~AliL3DataHandler();
15     
16   void Convert10to8Bit();
17   Bool_t Memory2CompBinary(UInt_t nrow,AliL3DigitRowData *data);
18   AliL3DigitRowData *CompBinary2Memory(UInt_t &nrows);
19
20  private:
21   
22   AliL3TransBit *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,AliL3DigitRowData *data,Byte_t *comp);
28   UInt_t GetCompMemorySize(UInt_t row,AliL3DigitRowData *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,AliL3DigitRowData *data,Byte_t *comp);
33
34   ClassDef(AliL3DataHandler,1) //Data handler class
35 };
36
37 #endif