- Removed not implemented methods AddData(), GetGlobalTriggerPattern
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStreamTrigger.h
CommitLineData
972432c1 1#ifndef ALIMUONRAWSTREAMTRIGGER_H
2#define ALIMUONRAWSTREAMTRIGGER_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
972432c1 9/// \class AliMUONRawStreamTrigger
10/// \brief Class for reading MUON raw digits
11///
c4ee792d 12// Author: Christian Finck
972432c1 13
14#include <TObject.h>
313a427d 15#include "AliMUONPayloadTrigger.h"
972432c1 16
17class AliRawReader;
18class AliMUONDDLTrigger;
313a427d 19
972432c1 20
21class AliMUONRawStreamTrigger: public TObject {
22 public :
23 AliMUONRawStreamTrigger();
24 AliMUONRawStreamTrigger(AliRawReader* rawReader);
972432c1 25 virtual ~AliMUONRawStreamTrigger();
26
27 virtual Bool_t Next();
28 virtual Bool_t NextDDL();
972432c1 29
30 Int_t GetMaxDDL() const {return fMaxDDL;}
313a427d 31 Int_t GetMaxReg() const {return fPayload->GetMaxReg();}
32 Int_t GetMaxLoc() const {return fPayload->GetMaxLoc();}
972432c1 33
34
35 void SetMaxDDL(Int_t ddl);
36 void SetMaxReg(Int_t reg);
37 void SetMaxLoc(Int_t loc);
38
39
40 void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;}
41
313a427d 42 AliMUONDDLTrigger* GetDDLTrigger() const {return fPayload->GetDDLTrigger();}
43 Int_t GetDDL() const {return fDDL - 1;}
972432c1 44
9f5dcca3 45 private :
972432c1 46
313a427d 47 AliRawReader* fRawReader; ///< object for reading the raw data
48 AliMUONPayloadTrigger* fPayload; ///< pointer to payload decoder
49
829425a5 50 Int_t fDDL; ///< number of DDL
51 Int_t fSubEntries; ///< entries of buspatch structure
52 Bool_t fNextDDL; ///< flag for next DDL to be read
313a427d 53 Int_t fMaxDDL; ///< maximum number of DDL in DATE file
972432c1 54
9f5dcca3 55 AliMUONRawStreamTrigger(const AliMUONRawStreamTrigger& stream);
56 AliMUONRawStreamTrigger& operator = (const AliMUONRawStreamTrigger& stream);
57
313a427d 58 ClassDef(AliMUONRawStreamTrigger, 3) // base class for reading MUON trigger rawdata
972432c1 59};
60
61#endif