]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliITSRawStream.h
PMD utility class
[u/mrichter/AliRoot.git] / RAW / AliITSRawStream.h
CommitLineData
c391f9d9 1#ifndef ALIITSRAWSTREAM_H
2#define ALIITSRAWSTREAM_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6#include <TObject.h>
7941072e 7#include "AliRawReader.h"
c391f9d9 8
9
10class AliITSRawStream: public TObject {
11 public :
7941072e 12 AliITSRawStream(AliRawReader* rawReader);
c391f9d9 13
14 virtual Bool_t Next() = 0;
15
16 inline Int_t GetModuleID() const {return fModuleID;};
17 inline Int_t GetPrevModuleID() const {return fPrevModuleID;};
18 inline Bool_t IsNewModule() const {return fModuleID != fPrevModuleID;};
19 inline Int_t GetCoord1() const {return fCoord1;};
20 inline Int_t GetCoord2() const {return fCoord2;};
21 inline Int_t GetSignal() const {return fSignal;};
22
23 protected :
7941072e 24 AliRawReader* fRawReader; // object for reading the raw data
25
c391f9d9 26 Int_t fModuleID; // index of current module
27 Int_t fPrevModuleID; // index of previous module
28 Int_t fCoord1; // current 1st coordinate
29 // SPD: column cell number (z)
30 // SDD: anode cell number (z)
31 // SSD: N/P, flag for side
32 Int_t fCoord2; // current 2nd coordinate
33 // SPD: row cell number (y)
34 // SDD: time bin number (y)
35 // SSD: strip number
36 Int_t fSignal; // signal in ADC counts
37
38 ClassDef(AliITSRawStream, 0) // base class for reading ITS raw digits
39};
40
41#endif