]>
Commit | Line | Data |
---|---|---|
c391f9d9 | 1 | #ifndef ALIITSRAWSTREAMSPD_H |
2 | #define ALIITSRAWSTREAMSPD_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
bea6b2a4 | 6 | /* $Id$ */ |
7 | ||
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | /// | |
10 | /// This class provides access to ITS SPD digits in raw data. | |
11 | /// | |
12 | /////////////////////////////////////////////////////////////////////////////// | |
13 | ||
c391f9d9 | 14 | #include "AliITSRawStream.h" |
c391f9d9 | 15 | |
16 | ||
17 | class AliITSRawStreamSPD: public AliITSRawStream { | |
18 | public : | |
7941072e | 19 | AliITSRawStreamSPD(AliRawReader* rawReader); |
42d20574 | 20 | virtual ~AliITSRawStreamSPD() {}; |
c391f9d9 | 21 | |
22 | virtual Bool_t Next(); | |
23 | ||
3e2a7959 | 24 | Int_t GetRow() const {return fCoord2;}; |
25 | Int_t GetColumn() const {return fCoord1;}; | |
c391f9d9 | 26 | |
0421c3d1 | 27 | enum {kDDLOffset = 0x100}; // offset for DDL numbers |
a864f8e9 | 28 | enum {kDDLsNumber = 20}; // number of DDLs in SPD |
29 | enum {kModulesPerDDL = 12}; // number of modules in each DDL | |
30 | ||
31 | static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule) | |
32 | {return fgkDDLModuleMap[iDDL][iModule];} | |
33 | ||
c391f9d9 | 34 | private : |
a864f8e9 | 35 | static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number |
36 | ||
c391f9d9 | 37 | UShort_t fData; // data read for file |
b6f3eb76 | 38 | Int_t fDDLNumber; // current DDL number |
39 | Int_t fEventNumber; // event trigger number | |
40 | Int_t fModuleNumber; // sequential module number | |
c391f9d9 | 41 | UInt_t fOffset; // offset for cell column |
42 | UInt_t fHitCount; // counter of hits | |
43 | ||
44 | ClassDef(AliITSRawStreamSPD, 0) // class for reading ITS SPD raw digits | |
45 | }; | |
46 | ||
47 | #endif |