]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDigitReaderDecoder.h
TPCZeroSuppressionComponent finalized, utility methods in digit reader interface...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitReaderDecoder.h
1 // XEmacs -*-C++-*-
2 // $Id$
3
4 #ifndef ALIHLTTPCDIGITREADERDECODER_H
5 #define ALIHLTTPCDIGITREADERDECODER_H
6
7 //* This file is property of and copyright by the ALICE HLT Project        * 
8 //* ALICE Experiment at CERN, All rights reserved.                         *
9 //* See cxx source for full Copyright notice                               */
10
11 /** @file   AliHLTTPCDigitReaderDecoder.h
12     @author Kenneth Aamodt, Matthias Richter
13     @date   
14     @brief  DigitReader for the fast ALTRO Decoder
15 */
16
17 #include "AliHLTTPCDigitReader.h"
18 #include "AliAltroData.h"
19 class AliHLTTPCMapping;
20 class AliAltroDecoder;
21 class AliAltroBunch;
22
23 /**
24  * @class AliHLTTPCDigitReaderDecoder
25  * Digit reader implementation for real ALTRO/RCU data using the fast
26  * AliAltroDecoder class.
27  *
28  * @ingroup alihlt_tpc
29  */
30 class AliHLTTPCDigitReaderDecoder : public AliHLTTPCDigitReader {
31 public:
32   /** standard constructor 
33    */
34   AliHLTTPCDigitReaderDecoder();
35   /** destructor */
36   virtual ~AliHLTTPCDigitReaderDecoder();
37
38   // interface functions  
39   int InitBlock(void* ptr,unsigned long size, Int_t patch, Int_t slice);
40   bool NextChannel();
41   int NextBunch();
42   int GetRow();
43   int GetPad();
44   int GetSignal();
45   const UInt_t* GetSignals();
46   int GetTime();
47   int GetBunchSize();
48   int GetRowOffset() const;
49   AliHLTUInt32_t GetAltroBlockHWaddr() const;
50   AliHLTUInt32_t GetAltroBlockHWaddr(Int_t row, Int_t pad) const;
51   
52 protected:
53   bool NextSignal();
54
55 private:
56   /** copy constructor prohibited */
57   AliHLTTPCDigitReaderDecoder(const AliHLTTPCDigitReaderDecoder&);
58   /** assignment operator prohibited */
59   AliHLTTPCDigitReaderDecoder& operator=(const AliHLTTPCDigitReaderDecoder&);
60
61   AliAltroDecoder *fAltroDecoder;                                  //! transient
62   AliAltroData fAltroData;                                         //! transient
63   AliAltroBunch *fAltroBunch;                                      //! transient
64   AliHLTTPCMapping *fMapping;                                      //! transient
65
66   int fNextCounter;                                                //! transient
67   bool fNextSignalMethodUsed;                                      //! transient
68
69   ClassDef(AliHLTTPCDigitReaderDecoder, 2)
70     
71 };
72 #endif
73