]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSRawStreamSSD.h
Extra mother volumes for TRD services in back and baby frame. (Ch. Blume)
[u/mrichter/AliRoot.git] / ITS / AliITSRawStreamSSD.h
CommitLineData
2906f4c2 1#ifndef ALIITSRAWSTREAMSSD_H
2#define ALIITSRAWSTREAMSSD_H
308b5ea4 3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
2906f4c2 4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9///
10/// This class provides access to ITS SSD digits in raw data.
bd1231b5 11// Revised by Enrico Fragiacomo
12// Last update: 2007/09/06
2906f4c2 13///
14///////////////////////////////////////////////////////////////////////////////
15
16#include "AliITSRawStream.h"
17
18class AliRawReader;
19
20
21class AliITSRawStreamSSD: public AliITSRawStream {
22 public :
23 AliITSRawStreamSSD(AliRawReader* rawReader);
24 virtual ~AliITSRawStreamSSD() {};
25
26 virtual Bool_t Next();
27
308b5ea4 28 Int_t GetSideFlag() const {return fCoord1;}
29 Int_t GetStrip() const {return fCoord2;}
30 Int_t GetDDL() const {return fddl;}
31 Int_t GetAD() const {return fad;}
32 Int_t GetADC() const {return fadc;}
2906f4c2 33
5c3b40f1 34 void Setv11HybridDDLMapping();
35 void SetvPPRasymmFMDDDLMapping();
36
2906f4c2 37 enum {kDDLsNumber = 16}; // number of DDLs in SSD
bd1231b5 38 enum {kModulesPerDDL = 108}; // number of modules in each DDL
2906f4c2 39
40 static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule)
41 {return fgkDDLModuleMap[iDDL][iModule];}
bd1231b5 42
812a6a14 43 enum ESSDRawStreamError {
44 kWrongModuleIdErr = 1
45 };
2906f4c2 46
bd1231b5 47 Int_t fddl;
48 Int_t fad;
49 Int_t fadc;
50
8297cd8f 51 Bool_t flag;
bd1231b5 52
38300302 53 protected :
5c3b40f1 54 static Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number
2906f4c2 55
56 UInt_t fData; // data read for file
57
58 ClassDef(AliITSRawStreamSSD, 0) // class for reading ITS SSD raw digits
59};
60
61#endif