Added description for the new analysis macros
[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
8/// \ingroup raw
9/// \class AliMUONRawStreamTrigger
10/// \brief Class for reading MUON raw digits
11///
12/// \author Christian Finck
13///
14///////////////////////////////////////////////////////////////////////////////
15///
16/// This class provides access to MUON digits in raw data.
17///
18///////////////////////////////////////////////////////////////////////////////
19
20#include <TObject.h>
21#include <TClonesArray.h>
313a427d 22#include "AliMUONPayloadTrigger.h"
972432c1 23
24class AliRawReader;
25class AliMUONDDLTrigger;
313a427d 26
972432c1 27
28class AliMUONRawStreamTrigger: public TObject {
29 public :
30 AliMUONRawStreamTrigger();
31 AliMUONRawStreamTrigger(AliRawReader* rawReader);
32 AliMUONRawStreamTrigger(const AliMUONRawStreamTrigger& stream);
33 AliMUONRawStreamTrigger& operator = (const AliMUONRawStreamTrigger& stream);
34 virtual ~AliMUONRawStreamTrigger();
35
36 virtual Bool_t Next();
37 virtual Bool_t NextDDL();
972432c1 38
39 Int_t GetMaxDDL() const {return fMaxDDL;}
313a427d 40 Int_t GetMaxReg() const {return fPayload->GetMaxReg();}
41 Int_t GetMaxLoc() const {return fPayload->GetMaxLoc();}
972432c1 42
43
44 void SetMaxDDL(Int_t ddl);
45 void SetMaxReg(Int_t reg);
46 void SetMaxLoc(Int_t loc);
47
48
49 void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;}
50
313a427d 51 AliMUONDDLTrigger* GetDDLTrigger() const {return fPayload->GetDDLTrigger();}
52 Int_t GetDDL() const {return fDDL - 1;}
972432c1 53
54 protected :
55
313a427d 56 AliRawReader* fRawReader; ///< object for reading the raw data
57 AliMUONPayloadTrigger* fPayload; ///< pointer to payload decoder
58
829425a5 59 Int_t fDDL; ///< number of DDL
60 Int_t fSubEntries; ///< entries of buspatch structure
61 Bool_t fNextDDL; ///< flag for next DDL to be read
313a427d 62 Int_t fMaxDDL; ///< maximum number of DDL in DATE file
972432c1 63
313a427d 64 ClassDef(AliMUONRawStreamTrigger, 3) // base class for reading MUON trigger rawdata
972432c1 65};
66
67#endif