1 #ifndef ALITOFRAWSTREAM_H
2 #define ALITOFRAWSTREAM_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 the key-reading for TOF raw data.
12 ////////////////////////////////////////////////////////////
19 class AliTOFRawStream: public TObject {
22 AliTOFRawStream(AliRawReader* rawReader);
23 virtual ~AliTOFRawStream();
25 virtual Bool_t Next();
27 //void ResetCounter() {fCounter = -1;}; // v0.01
29 Int_t GetDDL() const {return fDDL;};
30 Int_t GetTRM() const {return fTRM;};
31 Int_t GetTDC() const {return fTDC;};
32 Int_t GetChannel() const {return fTDCChannel;};
34 Int_t GetSector() const;
35 Int_t GetPlate() const;
36 Int_t GetStrip() const;
37 Int_t GetPadZ() const;
38 Int_t GetPadX() const;
40 Int_t GetTofBin() const {return fTof;};
41 Int_t GetADCbin() const {return fADC;};
43 enum {kDDLOffset = 0x500}; // offset for DDL numbers
47 AliTOFRawStream(const AliTOFRawStream& stream);
48 AliTOFRawStream& operator = (const AliTOFRawStream& stream);
50 AliRawReader* fRawReader; // object for reading the raw data
52 Int_t fDDL; // index of current DDL file
53 Int_t fTRM; // index of current TRM
54 Int_t fTDC; // index of current TDC
55 Int_t fTDCChannel; // index of current channel of the TDC
56 Int_t fTof; // time-of-flight measurement
57 Int_t fADC; // 'charge' measurement
58 Int_t fErrorFlag; // error flag
60 AliTOFGeometry *fTOFGeometry; // pointer to the TOF geometry
62 //Int_t fCounter; // counter for TOF raw data rows in DDL files // v0.01
64 ClassDef(AliTOFRawStream, 1) // class for reading TOF raw digits