4 #ifndef ALIHLTTPCDIGITREADERPACKED_H
5 #define ALIHLTTPCDIGITREADERPACKED_H
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 *
11 /** @file AliHLTTPCDigitReaderPacked.h
12 @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
14 @brief A digit reader implementation for simulated, packed TPC 'raw' data.
17 //#define ENABLE_PAD_SORTING 1
19 #include "AliHLTTPCDigitReader.h"
21 class AliRawReaderMemory;
22 class AliTPCRawStream;
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>.
33 class AliHLTTPCDigitReaderPacked : public AliHLTTPCDigitReader{
35 /** standard constructor */
36 AliHLTTPCDigitReaderPacked();
38 virtual ~AliHLTTPCDigitReaderPacked();
41 * Init the reader with a data block.
42 * The function fetches the first and last row for the readout partition
43 * from @ref AliHLTTPCTransform.
44 * @param ptr pointer to data buffer
45 * @param size size of the data buffer
46 * @param patch patch (readout partition) number within the slice
47 * @param slice sector no (0 to 35)
49 Int_t InitBlock(void* ptr,ULong_t size, Int_t patch, Int_t slice);
50 void SetUnsorted(bool unsorted){fUnsorted=unsorted;}
56 AliHLTUInt32_t GetAltroBlockHWaddr() const;
61 /** copy constructor prohibited */
62 AliHLTTPCDigitReaderPacked(const AliHLTTPCDigitReaderPacked&);
63 /** assignment operator prohibited */
64 AliHLTTPCDigitReaderPacked& operator=(const AliHLTTPCDigitReaderPacked&);
66 // Initialize AliROOT TPC raw stream parsing class
67 AliRawReaderMemory *fRawMemoryReader; //!transient
69 AliTPCRawStream *fTPCRawStream; //!transient
71 //#if ENABLE_PAD_SORTING
72 Int_t fCurrentRow; //!transient
73 Int_t fCurrentPad; //!transient
74 Int_t fCurrentBin; //!transient
76 Int_t fRowOffset; //!transient
77 Int_t fNRows; //!transient
79 Int_t fNMaxRows; //!transient
80 Int_t fNMaxPads; //!transient
81 Int_t fNTimeBins; //!transient
83 Int_t *fData; //!transient
84 //#endif // ENABLE_PAD_SORTING
86 Bool_t fUnsorted; //!transient
88 ClassDef(AliHLTTPCDigitReaderPacked, 2)