]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFRawStream.h
MUON trigger classes to collaborate with CTP (E. Lopez Torres)
[u/mrichter/AliRoot.git] / TOF / AliTOFRawStream.h
CommitLineData
571dda3d 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 */
5
6/* $Id$ */
7
8////////////////////////////////////////////////////////////
9//
10// This class provides the key-reading for TOF raw data.
11//
12////////////////////////////////////////////////////////////
13
14#include <TObject.h>
15
16class AliRawReader;
17
18
19class AliTOFRawStream: public TObject {
20 public :
21
22 AliTOFRawStream(AliRawReader* rawReader);
23 virtual ~AliTOFRawStream();
24
25 virtual Bool_t Next();
26
27 //void ResetCounter() {fCounter = -1;}; // v0.01
28
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;};
33
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;
39
40 Int_t GetTofBin() const {return fTof;};
41 Int_t GetADCbin() const {return fADC;};
42
43 enum {kDDLOffset = 0x500}; // offset for DDL numbers
44
45 private :
46
47 AliTOFRawStream(const AliTOFRawStream& stream);
48 AliTOFRawStream& operator = (const AliTOFRawStream& stream);
49
50 AliRawReader* fRawReader; // object for reading the raw data
51
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
59
d3c7bfac 60 AliTOFGeometry *fTOFGeometry; // pointer to the TOF geometry
61
571dda3d 62 //Int_t fCounter; // counter for TOF raw data rows in DDL files // v0.01
63
64 ClassDef(AliTOFRawStream, 1) // class for reading TOF raw digits
65};
66
67#endif