L3 becomes HLT
[u/mrichter/AliRoot.git] / HLT / misc / AliHLTDDLTPCRawStream.h
CommitLineData
240d63be 1// @(#) $Id$
2
3#ifndef ALIL3DDLTPCRAWSTREAM_H
4#define ALIL3DDLTPCRAWSTREAM_H
5
4aa41877 6#include "AliHLTRootTypes.h"
1f1942b8 7
4aa41877 8class AliHLTDDLRawReader;
240d63be 9
4aa41877 10class AliHLTDDLTPCRawStream
240d63be 11{
12 public :
4aa41877 13 AliHLTDDLTPCRawStream(AliHLTDDLRawReader* rawReader);
14 virtual ~AliHLTDDLTPCRawStream();
240d63be 15
16 virtual Bool_t Next();
17 Bool_t SetDDLID(Int_t d); //choose ddlid to readout
18
54b54089 19 Int_t GetSector() const {return fSector;};
20 Int_t GetPrevSector() const {return fPrevSector;};
21 Bool_t IsNewSector() const {return fSector != fPrevSector;};
22 Int_t GetRow() const {return fRow;};
23 Int_t GetPrevRow() const {return fPrevRow;};
24 Bool_t IsNewRow() const {return (fRow != fPrevRow) || IsNewSector();};
25 Int_t GetPad() const {return fPad;};
26 Int_t GetPrevPad() const {return fPrevPad;};
27 Bool_t IsNewPad() const {return (fPad != fPrevPad) || IsNewRow();};
28 Int_t GetTime() const {return fTime;};
29 Int_t GetSignal() const {return fSignal;};
240d63be 30
31 protected :
54b54089 32 UShort_t Get10BitWord(UChar_t* buffer, Int_t position) const;
240d63be 33
54b54089 34 static const Int_t fgkOffset = 1; // offset of signal
35 static const Int_t fgkDataMax = 10000000; // size of array for uncompressed raw data
240d63be 36
4aa41877 37 AliHLTDDLRawReader* fRawReader; // object for reading the raw data
240d63be 38
54b54089 39 UShort_t* fData; //[fgkDataMax] uncompressed raw data
240d63be 40 Int_t fDataSize; // actual size of the uncompressed raw data
41 Int_t fPosition; // current position in fData
42 Int_t fCount; // counter of words to be read for current trailer
43 Int_t fBunchLength; // remaining number of signal bins in the current bunch
44
45 Int_t fSector; // index of current sector
46 Int_t fPrevSector; // index of previous sector
47 Int_t fRow; // index of current row
48 Int_t fPrevRow; // index of previous row
49 Int_t fPad; // index of current pad
50 Int_t fPrevPad; // index of previous pad
51 Int_t fTime; // index of current time bin
52 Int_t fSignal; // signal in ADC counts
53
4aa41877 54 ClassDef(AliHLTDDLTPCRawStream, 1) // AliHLTDDLTPCRawStream
240d63be 55};
56
4aa41877 57typedef AliHLTDDLTPCRawStream AliL3DDLTPCRawStream; // for backward compatibility
58
240d63be 59#endif