]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/AliZDCRawStream.h
Digitizer and raw data decoding updated
[u/mrichter/AliRoot.git] / ZDC / AliZDCRawStream.h
CommitLineData
8309c1ab 1#ifndef ALIZDCRAWSTREAM_H
2#define ALIZDCRAWSTREAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8///////////////////////////////////////////////////////////////////////////////
9///
10/// This class provides access to ZDC digits in raw data.
11///
12///////////////////////////////////////////////////////////////////////////////
13
14#include <TObject.h>
15
16class AliRawReader;
17
18
19class AliZDCRawStream: public TObject {
20 public :
21 AliZDCRawStream(AliRawReader* rawReader);
22 virtual ~AliZDCRawStream();
23
24 virtual Bool_t Next();
25
26 Int_t GetSector(Int_t i) const {return fSector[i];};
abf60186 27 Int_t GetADCModule() const {return fADCModule;};
8309c1ab 28 Int_t GetADCValue() const {return fADCValue;};
29 UInt_t GetADCRaw() const {return fRawADC;};
30 Int_t GetADCGain() const {return fADCGain;};
31 Bool_t IsADCDataWord() const {return fIsADCDataWord;};
8309c1ab 32
33 private :
34 AliZDCRawStream(const AliZDCRawStream& stream);
35 AliZDCRawStream& operator = (const AliZDCRawStream& stream);
36
37 AliRawReader* fRawReader; // object for reading the raw data
38
39 UInt_t fRawADC; // raw ADC
40 Int_t fSector[2]; // index of current sector
abf60186 41 Int_t fADCModule; // ADC module;
8309c1ab 42 Int_t fADCValue; // ADC value;
43 Int_t fADCGain; // ADC gain (0=high range; 1=low range)
44 Bool_t fIsADCDataWord; //True when data word
45
abf60186 46 ClassDef(AliZDCRawStream, 2) // class for reading ZDC raw digits
8309c1ab 47};
48
49#endif