1 #ifndef ALIITSCOMPRESSRAWDATASDD_H
2 #define ALIITSCOMPRESSRAWDATASDD_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
11 #include"AliRawReader.h"
13 ///////////////////////////////////////////////////////////////////
15 // Class to decode the SDD Raw Data from the CarlosRX format to //
16 // a compressed format consisting in a word of 32 bit per cell //
17 // Origin: F.Prino, Torino, prino@to.infn.it //
19 ///////////////////////////////////////////////////////////////////
21 class AliITSCompressRawDataSDD : public TObject {
24 AliITSCompressRawDataSDD();
25 ~AliITSCompressRawDataSDD();
26 void SetRawReader(AliRawReader* rd){
29 void SetPointerToData(UChar_t* pt){
32 void SetSize(UInt_t siz){
36 UInt_t CompressEvent(UChar_t* inputPtr);
38 static UInt_t MakeDataWord(Int_t carlos, Int_t side, Int_t anode, Int_t tb, Int_t adc){
39 UInt_t word= (carlos<<27) + (side<<26) + (anode<<18) + (tb<<10) + adc;
43 static UInt_t MakeEndOfModuleWord(Int_t carlos){
44 UInt_t word= (15<<28) + carlos;
48 static UInt_t MakeJitterWord(Int_t jitter){
49 UInt_t word= (8<<28) + jitter;
56 AliITSCompressRawDataSDD(const AliITSCompressRawDataSDD& /*c*/);
58 AliITSCompressRawDataSDD& operator=(const AliITSCompressRawDataSDD& /*c*/);
61 AliRawReader* fRawReader; // pointer to raw reader
62 UChar_t* fPointerToData; // pointer to the start of data in memory
63 UInt_t fSizeInMemory; // free space in memory in Bytes
65 ClassDef(AliITSCompressRawDataSDD, 0)