- Removed not implemented methods AddData(), GetGlobalTriggerPattern
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStreamTracker.h
CommitLineData
c0751163 1#ifndef ALIMUONRAWSTREAMTRACKER_H
2#define ALIMUONRAWSTREAMTRACKER_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
241560c2 8/// \ingroup base
c0751163 9/// \class AliMUONRawStreamTracker
10/// \brief Class for reading MUON raw digits
11///
c4ee792d 12// Author: Christian Finck
c0751163 13
14#include <TObject.h>
313a427d 15#include "AliMUONPayloadTracker.h"
c0751163 16
17class AliRawReader;
18class AliMUONDDLTracker;
313a427d 19
c0751163 20
21class AliMUONRawStreamTracker: public TObject {
22 public :
23 AliMUONRawStreamTracker();
24 AliMUONRawStreamTracker(AliRawReader* rawReader);
c0751163 25 virtual ~AliMUONRawStreamTracker();
26
27 virtual Bool_t Next();
28 virtual Bool_t NextDDL();
c0751163 29
30 Int_t GetMaxDDL() const {return fMaxDDL;}
313a427d 31 Int_t GetMaxBlock() const {return fPayload->GetMaxBlock();}
32 Int_t GetMaxDsp() const {return fPayload->GetMaxDsp();}
33 Int_t GetMaxBus() const {return fPayload->GetMaxBus();}
c0751163 34
35 // check input before assigment
36 void SetMaxDDL(Int_t ddl);
37 void SetMaxBlock(Int_t blk);
38
39 // does not check, done via BusPatchManager
313a427d 40 void SetMaxDsp(Int_t dsp) {fPayload->SetMaxDsp(dsp);}
41 void SetMaxBus(Int_t bus) {fPayload->SetMaxBus(bus);}
c0751163 42
43
44 void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;}
45
313a427d 46 AliMUONDDLTracker* GetDDLTracker() const {return fPayload->GetDDLTracker();}
c0751163 47 Int_t GetDDL() const {return fDDL - 1;}
48
9f5dcca3 49 private :
c0751163 50
829425a5 51 AliRawReader* fRawReader; ///< object for reading the raw data
c0751163 52
829425a5 53 Int_t fDDL; ///< number of DDL
54 Int_t fBusPatchId; ///< entry of buspatch structure
55 Int_t fDspId; ///< entry of Dsp header
56 Int_t fBlkId; ///< entry of Block header
c0751163 57
829425a5 58 Bool_t fNextDDL; ///< flag for next DDL to be read
c0751163 59
313a427d 60 Int_t fMaxDDL; ///< maximum number of DDL in DATE file
c0751163 61
313a427d 62 AliMUONPayloadTracker* fPayload; ///< pointer to payload decoder
c0751163 63
9f5dcca3 64 AliMUONRawStreamTracker(const AliMUONRawStreamTracker& stream);
65 AliMUONRawStreamTracker& operator = (const AliMUONRawStreamTracker& stream);
66
313a427d 67 ClassDef(AliMUONRawStreamTracker, 2) // base class for reading MUON raw digits
c0751163 68};
69
70#endif