1 #ifndef ALIITSRAWSTREAMSDDV2_H
2 #define ALIITSRAWSTREAMSDDV2_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 /// This class provides access to ITS SDD digits in test beam raw data.
12 ///////////////////////////////////////////////////////////////////////////////
14 #include "AliITSRawStream.h"
19 class AliITSRawStreamSDDv2: public AliITSRawStream {
21 AliITSRawStreamSDDv2(AliRawReader* rawReader);
22 virtual ~AliITSRawStreamSDDv2() {};
24 virtual Bool_t Next();
26 Int_t GetAnode() const {return fCoord1;};
27 Int_t GetTimeBin() const {return fCoord2;};
31 Int_t DecompAmbra(Int_t value) const;
33 UInt_t fData; // data read for file
35 static const UInt_t fgkCodeLength[8]; // length of coded data word
36 Int_t fSkip; // number of skipped words
37 Int_t fEventId; // event ID from the header
38 Int_t fCarlosId; // carlos ID from the header
39 Int_t fChannel; // current channel
40 ULong64_t fChannelData[2]; // packed data for the 2 channels
41 UInt_t fLastBit[2]; // last filled bit in fChannelData
42 UInt_t fChannelCode[2]; // current channel code
43 Bool_t fReadCode[2]; // next bits are code or data
44 UInt_t fReadBits[2]; // number of bits to read
45 Int_t fTimeBin[2]; // current time bin
46 Int_t fAnode[2]; // current anode number
47 Int_t fLowThreshold[2]; // low Carlos threshold
49 ClassDef(AliITSRawStreamSDDv2, 0) // class for reading ITS SDD raw digits