]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliITSRawStreamSSD.h
export AliBitPacking.h
[u/mrichter/AliRoot.git] / RAW / AliITSRawStreamSSD.h
CommitLineData
c391f9d9 1#ifndef ALIITSRAWSTREAMSSD_H
2#define ALIITSRAWSTREAMSSD_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 SSD digits in raw data.
11///
12///////////////////////////////////////////////////////////////////////////////
13
c391f9d9 14#include "AliITSRawStream.h"
42d20574 15
16class AliRawReader;
c391f9d9 17
18
19class AliITSRawStreamSSD: public AliITSRawStream {
20 public :
7941072e 21 AliITSRawStreamSSD(AliRawReader* rawReader);
42d20574 22 virtual ~AliITSRawStreamSSD() {};
c391f9d9 23
24 virtual Bool_t Next();
25
42d20574 26 Int_t GetSideFlag() const {return fCoord1;};
27 Int_t GetStrip() const {return fCoord2;};
c391f9d9 28
0421c3d1 29 enum {kDDLOffset = 0x300}; // offset for DDL numbers
a864f8e9 30 enum {kDDLsNumber = 16}; // number of DDLs in SSD
31 enum {kModulesPerDDL = 109}; // number of modules in each DDL
32
33 static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
34 {return fgkDDLModuleMap[iDDL][iModule];}
35
c391f9d9 36 private :
a864f8e9 37 static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
42d20574 38
c391f9d9 39 UInt_t fData; // data read for file
40
41 ClassDef(AliITSRawStreamSSD, 0) // class for reading ITS SSD raw digits
42};
43
44#endif