Correct sign for calculated b_y (outside measured region).
[u/mrichter/AliRoot.git] / TPC / AliTPCRawStreamOld.h
CommitLineData
5bbd01a6 1#ifndef ALITPCRAWSTREAMOLD_H
2#define ALITPCRAWSTREAMOLD_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6///////////////////////////////////////////////////////////////////////////////
7///
8/// This class provides access to TPC digits in raw data.
9///
10///////////////////////////////////////////////////////////////////////////////
11
12#include "AliAltroRawStreamOld.h"
13
14class AliRawReader;
15class AliAltroMapping;
16
17class AliTPCRawStreamOld: public AliAltroRawStreamOld {
18 public :
19 AliTPCRawStreamOld(AliRawReader* rawReader);
20 virtual ~AliTPCRawStreamOld();
21
22 virtual void Reset();
23 virtual Bool_t Next();
24
25 inline Int_t GetSector() const { return fSector; } // Provide index of current sector
26 inline Int_t GetPrevSector() const { return fPrevSector; } // Provide index of previous sector
27 inline Bool_t IsNewSector() const {return fSector != fPrevSector;};
28 inline Int_t GetRow() const { return fRow; } // Provide index of current row
29 inline Int_t GetPrevRow() const { return fPrevRow; } // Provide index of previous row
30 inline Bool_t IsNewRow() const {return (fRow != fPrevRow) || IsNewSector();};
31 inline Int_t GetPad() const { return fPad; } // Provide index of current pad
32 inline Int_t GetPrevPad() const { return fPrevPad; } // Provide index of previous pad
33 inline Bool_t IsNewPad() const {return (fPad != fPrevPad) || IsNewRow();};
34
35 protected :
36 AliTPCRawStreamOld(const AliTPCRawStreamOld& stream);
37 AliTPCRawStreamOld& operator = (const AliTPCRawStreamOld& stream);
38
39 virtual void ApplyAltroMapping();
40
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
48 AliAltroMapping *fMapping[6]; // Pointers to ALTRO mapping
49
50 ClassDef(AliTPCRawStreamOld, 0) // base class for reading TPC raw digits
51};
52
53#endif