]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDigitReaderPacked.h
- abandon TPCLib backward compatibility check for AliRoot releases < v4-03
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitReaderPacked.h
1 // XEmacs -*-C++-*-
2 // @(#) $Id$
3
4 #ifndef ALIHLTTPCDIGITREADERPACKED_H
5 #define ALIHLTTPCDIGITREADERPACKED_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   AliHLTTPCDigitReaderPacked.h
12     @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
13     @date   
14     @brief  A digit reader implementation for simulated, packed TPC 'raw' data.
15 */
16
17 //#define ENABLE_PAD_SORTING 1
18
19 #include "AliHLTTPCDigitReader.h"
20
21 class AliRawReaderMemory;
22 class AliTPCRawStream;
23
24 /**
25  * @class AliHLTTPCDigitReaderPacked
26  * A digit reader implementation for simulated, packed TPC 'raw' data.
27  * Includes reordering of the pads by default, sorting (and time and
28  * memory consuming intermediate storing of the data) can be disabled
29  * by @ref SetUnsorted() with argument <b>kTRUE</b>.
30  * @ingroup alihlt_tpc
31  */
32 class AliHLTTPCDigitReaderPacked : public AliHLTTPCDigitReader{
33 public:
34   /** standard constructor */
35   AliHLTTPCDigitReaderPacked(); 
36   /** destructor */
37   virtual ~AliHLTTPCDigitReaderPacked();
38   
39   /**
40    * Init the reader with a data block.
41    * The function fetches the first and last row for the readout partition
42    * from @ref AliHLTTPCTransform.
43    * @param ptr     pointer to data buffer
44    * @param size    size of the data buffer
45    * @param patch   patch (readout partition) number within the slice
46    * @param slice   sector no (0 to 35)
47    */
48   Int_t InitBlock(void* ptr,ULong_t size, Int_t patch, Int_t slice);
49   void SetOldRCUFormat(bool oldrcuformat){fOldRCUFormat=oldrcuformat;}
50   void SetUnsorted(bool unsorted){fUnsorted=unsorted;}
51   Bool_t NextSignal();
52   Int_t GetRow();
53   Int_t GetPad();
54   Int_t GetSignal();
55   Int_t GetTime();
56     
57 protected:
58     
59 private:
60   /** copy constructor prohibited */
61   AliHLTTPCDigitReaderPacked(const AliHLTTPCDigitReaderPacked&);
62   /** assignment operator prohibited */
63   AliHLTTPCDigitReaderPacked& operator=(const AliHLTTPCDigitReaderPacked&);
64
65   // Initialize AliROOT TPC raw stream parsing class
66   AliRawReaderMemory *fRawMemoryReader; //!transient
67
68   AliTPCRawStream *fTPCRawStream; //!transient
69     
70   //#if ENABLE_PAD_SORTING 
71   Int_t fCurrentRow; //!transient
72   Int_t fCurrentPad; //!transient
73   Int_t fCurrentBin; //!transient
74  
75   Int_t fRowOffset; //!transient
76   Int_t fNRows; //!transient
77
78   Int_t fNMaxRows; //!transient
79   Int_t fNMaxPads; //!transient
80   Int_t fNTimeBins; //!transient
81
82   Int_t *fData;
83   //#endif // ENABLE_PAD_SORTING
84
85   Bool_t fOldRCUFormat; //!transient
86   Bool_t fUnsorted; //!transient
87
88   ClassDef(AliHLTTPCDigitReaderPacked, 1)
89         
90 };
91
92 #endif