]>
Commit | Line | Data |
---|---|---|
a38a7850 | 1 | // XEmacs -*-C++-*- |
2 | // @(#) $Id$ | |
3 | ||
4 | #ifndef ALIHLTTPCDIGITREADERPACKED_H | |
5 | #define ALIHLTTPCDIGITREADERPACKED_H | |
6 | ||
db16520a | 7 | #define ENABLE_PAD_SORTING 1 |
8 | ||
a38a7850 | 9 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
10 | * See cxx source for full Copyright notice */ | |
11 | ||
12 | /* AliHLTTPCDigitReaderPacked | |
13 | */ | |
14 | ||
74c73e5a | 15 | #include "AliHLTLogging.h" |
a38a7850 | 16 | #include "AliHLTTPCDigitReader.h" |
17 | ||
74c73e5a | 18 | #if defined(HAVE_ALIRAWDATA) && defined(HAVE_ALITPCRAWSTREAM_H) |
19 | ||
a38a7850 | 20 | class AliRawReaderMemory; |
db16520a | 21 | |
a38a7850 | 22 | class AliTPCRawStream; |
23 | ||
24 | class AliHLTTPCDigitReaderPacked : public AliHLTTPCDigitReader{ | |
25 | public: | |
db16520a | 26 | AliHLTTPCDigitReaderPacked(); |
27 | virtual ~AliHLTTPCDigitReaderPacked(); | |
a38a7850 | 28 | |
db16520a | 29 | Int_t InitBlock(void* ptr,ULong_t size, Int_t firstrow, Int_t lastrow, Int_t patch, Int_t slice); |
30 | Bool_t Next(); | |
31 | Int_t GetRow(); | |
32 | Int_t GetPad(); | |
33 | Int_t GetSignal(); | |
34 | Int_t GetTime(); | |
35 | ||
a38a7850 | 36 | protected: |
db16520a | 37 | |
a38a7850 | 38 | private: |
db16520a | 39 | // Initialize AliROOT TPC raw stream parsing class |
40 | AliRawReaderMemory *fRawMemoryReader; | |
41 | ||
42 | AliTPCRawStream *fTPCRawStream; | |
a38a7850 | 43 | |
db16520a | 44 | #if ENABLE_PAD_SORTING |
45 | Int_t fCurrentRow; | |
46 | Int_t fCurrentPad; | |
47 | Int_t fCurrentBin; | |
48 | ||
49 | Int_t fRowOffset; | |
50 | Int_t fNRows; | |
51 | ||
52 | Int_t fNMaxRows; | |
53 | Int_t fNMaxPads; | |
54 | Int_t fNTimeBins; | |
55 | ||
56 | Int_t *fData; | |
57 | #endif // ENABLE_PAD_SORTING | |
58 | ClassDef(AliHLTTPCDigitReaderPacked, 0) | |
59 | ||
a38a7850 | 60 | }; |
a38a7850 | 61 | |
74c73e5a | 62 | #else |
63 | // add a dummy class to make CINT happy | |
64 | class AliHLTTPCDigitReaderPacked : public AliHLTLogging{ | |
65 | public: | |
66 | AliHLTTPCDigitReaderPacked() | |
67 | { | |
68 | HLTFatal("AliHLTTPCDigitReaderPacked not build"); | |
69 | } | |
70 | }; | |
71 | #endif //defined(HAVE_ALIRAWDATA) && defined(HAVE_ALITPCRAWSTREAM_H) | |
a38a7850 | 72 | |
74c73e5a | 73 | #endif |