]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCDigitReaderUnpacked.h
code cleanup, coding rules, eff C++
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitReaderUnpacked.h
CommitLineData
a38a7850 1// XEmacs -*-C++-*-
2// @(#) $Id$
3
4#ifndef ALIHLTTPCDIGITREADERUNPACKED_H
5#define ALIHLTTPCDIGITREADERUNPACKED_H
6
7/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
9
84645eb0 10/** @file AliHLTTPCDigitReaderUnpacked.h
11 @author Timm Steinbeck, Jochen Thaeder, Matthias Richter
12 @date
13 @brief A digit reader implementation for unpacked TPC data.
14*/
a38a7850 15
16#include "AliHLTTPCDigitReader.h"
17#include "AliHLTTPCDigitData.h"
18
19class AliHLTTPCDigitRowData;
20
84645eb0 21/**
22 * @class AliHLTTPCDigitReaderPacked
23 * A digit reader implementation for unpacked TPC data.
24 * @ingroup alihlt_tpc
25 */
a38a7850 26class AliHLTTPCDigitReaderUnpacked : public AliHLTTPCDigitReader{
27public:
84645eb0 28 /** standard constructor */
a38a7850 29 AliHLTTPCDigitReaderUnpacked();
84645eb0 30 /** destructor */
a38a7850 31 virtual ~AliHLTTPCDigitReaderUnpacked();
5df0cbb9 32
33 /**
34 * Init the reader
35 * @param ptr pointer to input buffer
36 * @param size size of the input buffer
37 * @param patch readout partition
38 * @param slice sector no
39 */
84645eb0 40 int InitBlock(void* ptr,unsigned long size, Int_t patch, Int_t slice);
5df0cbb9 41
42 /**
43 * place the reader at the next signal
44 * @return 1 if there was a nest signal, 0 if not
45 */
a38a7850 46 bool Next();
5df0cbb9 47
48 /**
49 * Get row number of the current signal
50 * @return row number of the current signal
51 */
a38a7850 52 int GetRow();
5df0cbb9 53
54 /**
55 * Get pad number of the current signal
56 * @return pad number of the current signal
57 */
a38a7850 58 int GetPad();
5df0cbb9 59
60 /**
61 * Get signal
62 * @return ADC signal
63 */
a38a7850 64 int GetSignal();
5df0cbb9 65
66 /**
67 * Get time of the current signal
68 * @return time of the current signal
69 */
a38a7850 70 int GetTime();
71
72protected:
73
74
75private:
8f8bf0af 76 /** copy constructor prohibited */
77 AliHLTTPCDigitReaderUnpacked(const AliHLTTPCDigitReaderUnpacked&);
78 /** assignment operator prohibited */
79 AliHLTTPCDigitReaderUnpacked& operator=(const AliHLTTPCDigitReaderUnpacked&);
80
5df0cbb9 81 /** intermediate row data structure (pointer in fPtr buffer) */
a38a7850 82 AliHLTTPCDigitRowData *fDigitRowData; //!
5df0cbb9 83 /** current row data structure (pointer in fPtr buffer) */
a38a7850 84 AliHLTTPCDigitRowData *fActRowData; //!
5df0cbb9 85 /** the current digit data */
a38a7850 86 AliHLTTPCDigitData *fData; //!
5df0cbb9 87
88 /** input buffer */
84645eb0 89 void* fPtr; //!
5df0cbb9 90 /** size of the input buffer */
91 unsigned long fSize; // see above
92
93 /** current bin */
94 Int_t fBin; // see above
95 /** current row */
96 Int_t fRow; // see above
97 /** first row */
98 Int_t fFirstRow; // see above
99 /** last row */
100 Int_t fLastRow; // see above
a38a7850 101
102 ClassDef(AliHLTTPCDigitReaderUnpacked, 0)
103};
104#endif
105
106
107