]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDigitReaderDecoder.h
added skeleton for HLTpendolino library
[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   void SetUnsorted(bool unsorted);
41   bool NextChannel();
42   int NextBunch();
43   int GetRow();
44   int GetPad();
45   int GetSignal();
46   const UInt_t* GetSignals();
47   int GetTime();
48   int GetBunchSize();
49   int GetRowOffset() const;
50   AliHLTUInt32_t GetAltroBlockHWaddr() const;
51   AliHLTUInt32_t GetAltroBlockHWaddr(Int_t row, Int_t pad) const;
52   
53 protected:
54   bool NextSignal();
55
56 private:
57   /** copy constructor prohibited */
58   AliHLTTPCDigitReaderDecoder(const AliHLTTPCDigitReaderDecoder&);
59   /** assignment operator prohibited */
60   AliHLTTPCDigitReaderDecoder& operator=(const AliHLTTPCDigitReaderDecoder&);
61
62   AliAltroDecoder *fAltroDecoder;                                  //! transient
63   AliAltroData fAltroData;                                         //! transient
64   AliAltroBunch *fAltroBunch;                                      //! transient
65   AliHLTTPCMapping *fMapping;                                      //! transient
66
67   int fNextCounter;                                                //! transient
68   bool fNextSignalMethodUsed;                                      //! transient
69
70   ClassDef(AliHLTTPCDigitReaderDecoder, 2)
71     
72 };
73 #endif
74