X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSRawStreamSSD.h;h=5bb1db06dba9b8a9a1cd863394c71cb5515c3e84;hb=be806700f92f2b4a6ab22142ede42fcae482fd24;hp=79e15ec61701a730001bd02cf5d52e360371c89f;hpb=2906f4c209bc8d1af57f1b830d458f4ee94b85c5;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSRawStreamSSD.h b/ITS/AliITSRawStreamSSD.h index 79e15ec6170..5bb1db06dba 100644 --- a/ITS/AliITSRawStreamSSD.h +++ b/ITS/AliITSRawStreamSSD.h @@ -1,6 +1,6 @@ #ifndef ALIITSRAWSTREAMSSD_H #define ALIITSRAWSTREAMSSD_H -/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * +/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ @@ -8,6 +8,8 @@ /////////////////////////////////////////////////////////////////////////////// /// /// This class provides access to ITS SSD digits in raw data. +// Revised by Enrico Fragiacomo +// Last update: 2007/09/06 /// /////////////////////////////////////////////////////////////////////////////// @@ -23,18 +25,34 @@ class AliITSRawStreamSSD: public AliITSRawStream { virtual Bool_t Next(); - Int_t GetSideFlag() const {return fCoord1;}; - Int_t GetStrip() const {return fCoord2;}; + Int_t GetSideFlag() const {return fCoord1;} + Int_t GetStrip() const {return fCoord2;} + Int_t GetDDL() const {return fddl;} + Int_t GetAD() const {return fad;} + Int_t GetADC() const {return fadc;} + + static Bool_t InitDDLModuleMap(); // Initialize DLL module map + static void Setv11HybridDDLMapping(); + static void SetvPPRasymmFMDDDLMapping(); - enum {kDDLOffset = 0x300}; // offset for DDL numbers enum {kDDLsNumber = 16}; // number of DDLs in SSD - enum {kModulesPerDDL = 109}; // number of modules in each DDL + enum {kModulesPerDDL = 108}; // number of modules in each DDL + + static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule); + + enum ESSDRawStreamError { + kWrongModuleIdErr = 1 + }; + + Int_t fddl; // ddl + Int_t fad; // ad module + Int_t fadc; // adc - static Int_t GetModuleNumber(UInt_t iDDL, UInt_t iModule) - {return fgkDDLModuleMap[iDDL][iModule];} + Bool_t flag; // - private : - static const Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number + protected : + static Bool_t fgkDDLModuleMapInit; // Module map is initialized or not + static Int_t fgkDDLModuleMap[kDDLsNumber][kModulesPerDDL]; // mapping DDL/module -> module number UInt_t fData; // data read for file