]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/TPCbase/AliTPCRawStreamV3.h
doxy: TPC/TPCbase converted
[u/mrichter/AliRoot.git] / TPC / TPCbase / AliTPCRawStreamV3.h
CommitLineData
c3066940 1#ifndef ALITPCRAWSTREAMV3_H
2#define ALITPCRAWSTREAMV3_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
7d855b04 6/// \class AliTPCRawStreamV3
7/// \brief This class provides access to TPC digits in raw data.
c3066940 8
9#include "AliAltroRawStreamV3.h"
10
11class AliRawReader;
12class AliAltroMapping;
13
14class AliTPCRawStreamV3: public AliAltroRawStreamV3 {
15 public :
16 AliTPCRawStreamV3(AliRawReader* rawReader, AliAltroMapping **mapping = NULL);
17 virtual ~AliTPCRawStreamV3();
18
19 virtual void Reset();
20 virtual Bool_t NextChannel();
21 virtual Bool_t NextDDL();
7d855b04 22
c3066940 23 inline Int_t GetSector() const { return fSector; } // Provide index of current sector
24 inline Int_t GetPrevSector() const { return fPrevSector; } // Provide index of previous sector
25 inline Bool_t IsNewSector() const {return fSector != fPrevSector;};
26 inline Int_t GetRow() const { return fRow; } // Provide index of current row
27 inline Int_t GetPrevRow() const { return fPrevRow; } // Provide index of previous row
28 inline Bool_t IsNewRow() const {return (fRow != fPrevRow) || IsNewSector();};
29 inline Int_t GetPad() const { return fPad; } // Provide index of current pad
30 inline Int_t GetPrevPad() const { return fPrevPad; } // Provide index of previous pad
31 inline Bool_t IsNewPad() const {return (fPad != fPrevPad) || IsNewRow();};
92ae9768 32 inline Int_t GetPatchIndex() const { return fPatchIndex; } // Provide index of current patch
c3066940 33
34
35 protected :
36 AliTPCRawStreamV3& operator = (const AliTPCRawStreamV3& stream);
37 AliTPCRawStreamV3(const AliTPCRawStreamV3& stream);
38
39 virtual void ApplyAltroMapping();
40
7d855b04 41 Int_t fSector; ///< index of current sector
42 Int_t fPrevSector; ///< index of previous sector
43 Int_t fRow; ///< index of current row
44 Int_t fPrevRow; ///< index of previous row
45 Int_t fPad; ///< index of current pad
46 Int_t fPrevPad; ///< index of previous pad
47 Int_t fPatchIndex; ///< current patch
c3066940 48
7d855b04 49 AliAltroMapping *fMapping[6]; ///< Pointers to ALTRO mapping
50 Bool_t fIsMapOwner; ///< does object own its mappings?
c3066940 51
7d855b04 52 /// \cond CLASSIMP
c3066940 53 ClassDef(AliTPCRawStreamV3, 0) // base class for reading TPC raw digits using the fast algorithm
7d855b04 54 /// \endcond
c3066940 55};
56
57#endif