4 #ifndef ALIHLTTPCDIGITREADERPACKED_H
5 #define ALIHLTTPCDIGITREADERPACKED_H
7 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
10 /** @file AliHLTTPCDigitReaderPacked.h
11 @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
13 @brief A digit reader implementation for simulated, packed TPC 'raw' data.
16 #define ENABLE_PAD_SORTING 1
18 #include "AliHLTTPCDigitReader.h"
20 #if defined(HAVE_ALIRAWDATA) && defined(HAVE_ALITPCRAWSTREAM_H)
22 class AliRawReaderMemory;
24 class AliTPCRawStream;
27 * @class AliHLTTPCDigitReaderPacked
28 * A digit reader implementation for simulated, packed TPC 'raw' data.
29 * Includes reordering of the pads if @ref ENABLE_PAD_SORTING is 1.
32 class AliHLTTPCDigitReaderPacked : public AliHLTTPCDigitReader{
34 /** standard constructor */
35 AliHLTTPCDigitReaderPacked();
37 virtual ~AliHLTTPCDigitReaderPacked();
40 * Init the reader with a data block.
41 * The function fetches the first and last row for the readout partition
42 * from @ref AliHLTTransform.
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)
48 Int_t InitBlock(void* ptr,ULong_t size, Int_t patch, Int_t slice);
49 void SetOldRCUFormat(bool oldrcuformat){fOldRCUFormat=oldrcuformat;}
59 /** copy constructor prohibited */
60 AliHLTTPCDigitReaderPacked(const AliHLTTPCDigitReaderPacked&);
61 /** assignment operator prohibited */
62 AliHLTTPCDigitReaderPacked& operator=(const AliHLTTPCDigitReaderPacked&);
64 // Initialize AliROOT TPC raw stream parsing class
65 AliRawReaderMemory *fRawMemoryReader;
67 AliTPCRawStream *fTPCRawStream;
69 #if ENABLE_PAD_SORTING
82 #endif // ENABLE_PAD_SORTING
86 ClassDef(AliHLTTPCDigitReaderPacked, 0)
91 // add a dummy class to make CINT happy
92 class AliHLTTPCDigitReaderPacked : public AliHLTLogging{
94 AliHLTTPCDigitReaderPacked()
96 HLTFatal("AliHLTTPCDigitReaderPacked not build");
99 ClassDef(AliHLTTPCDigitReaderPacked, 0)
101 #endif //defined(HAVE_ALIRAWDATA) && defined(HAVE_ALITPCRAWSTREAM_H)