AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRawStreamTrigger.h
Go to the documentation of this file.
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 
12 // Author: Christian Finck
13 
14 #include <TObject.h>
15 #include "AliMUONPayloadTrigger.h"
17 class TArrayS;
18 
19 class AliRawReader;
20 class AliMUONDDLTrigger;
21 class AliMUONDarcHeader;
22 class AliMUONRegkHeader;
23 class AliMUONLocalStruct;
24 
26  public :
28  AliMUONRawStreamTrigger(TRootIOCtor* dummy);
29  AliMUONRawStreamTrigger(AliRawReader* rawReader);
30  virtual ~AliMUONRawStreamTrigger();
31 
33  void First();
34 
37 
40 
43 
46 
48  virtual Bool_t Next(UChar_t& id, UChar_t& dec, Bool_t& trigY,
49  UChar_t& yPos, UChar_t& sXDev, UChar_t& xDev,
50  UChar_t& xPos, Bool_t& triggerY, Bool_t& triggerX,
51  TArrayS& xPattern, TArrayS& yPattern);
52 
53 
54  virtual Bool_t NextDDL();
55 
57  Int_t GetMaxDDL() const {return fgkMaxDDL;}
59  Int_t GetMaxReg() const {return fPayload->GetMaxReg();}
61  Int_t GetMaxLoc() const {return fPayload->GetMaxLoc();}
62 
63  //void SetMaxReg(Int_t reg);
64  void SetMaxLoc(Int_t loc);
65 
68 
70  Int_t GetDDL() const {return fDDL - 1;}
71 
74 
76  Bool_t IsDone() const;
77 
79  void AddErrorMessage();
80 
83 
88  kRegEoWErr = 8,
90 
91  };
92 
93  private :
98 
99  Bool_t GetNextDDL();
100  Bool_t GetNextRegHeader();
101  Bool_t GetNextLocalStruct();
102 
103  private:
104 
114  Int_t fDDL;
115 
116 
117  Bool_t fNextDDL;
118 
119  static const Int_t fgkMaxDDL;
120 
121  ClassDef(AliMUONRawStreamTrigger, 4) // base class for reading MUON trigger rawdata
122 };
123 
124 #endif
virtual Bool_t Next(UChar_t &id, UChar_t &dec, Bool_t &trigY, UChar_t &yPos, UChar_t &sXDev, UChar_t &xDev, UChar_t &xPos, Bool_t &triggerY, Bool_t &triggerX, TArrayS &xPattern, TArrayS &yPattern)
Advance one step in the iteration. Returns false if finished.
Rawdata local card structure for trigger.
Bool_t fNextDDL
flag for next DDL to be read
Int_t GetMaxLoc() const
Return maximum number of local cards in DATE file.
AliMUONPayloadTrigger * fPayload
pointer to payload decoder
AliMUONDDLTrigger * GetDDLTrigger() const
Return pointer for DDL structure.
MUON regional header for trigger.
Class for reading MUON raw digits.
Int_t fCurrentDDLIndex
! for iterator: current ddl index
AliMUONDarcHeader * CurrentDarcHeader() const
Returns current DarcHeader object during iteration.
void AddErrorMessage()
add error message into error logger
Int_t GetMaxDDL() const
Return maximum number of DDLs.
Base class for reading MUON raw trigger data.
AliMUONDDLTrigger * GetDDLTrigger() const
Return pointer for DDL structure.
AliMUONRegHeader * fCurrentRegHeader
! for iterator: current reg ptr
void DisableWarnings()
set warnings flag
Int_t fCurrentRegHeaderIndex
! for iterator: current reg index
Int_t GetDDL() const
Return number of DDL.
void DisableWarnings()
Disable Warnings.
MUON Darc header for Trigger.
void SetMaxLoc(Int_t loc)
Should set the maximum number of local cards expected in the DDL stream.
Int_t GetMaxLoc() const
Return maximum number of local cards in DATE file.
Bool_t fLocalStructRead
! flag for read out local structure
AliMUONRawStreamTrigger & operator=(const AliMUONRawStreamTrigger &stream)
Not implemented.
AliMUONDDLTrigger * fCurrentDDL
! for iterator: current ddl ptr
AliMUONDDLTrigger * CurrentDDL() const
Returns current DDL object during iteration.
Bool_t IsDone() const
Whether the iteration is finished or not.
AliMUONRegHeader * CurrentRegHeader() const
Returns current RegHeader object during iteration.
void First()
Initialize iterator.
Int_t GetMaxReg() const
Return maximum number of regional cards in DATE file.
AliMUONLocalStruct * fCurrentLocalStruct
! for iterator: current local ptr
AliMUONDarcHeader * fCurrentDarcHeader
! for iterator: current darc ptr
static const Int_t fgkMaxDDL
maximum number of DDLs
Int_t fCurrentLocalStructIndex
! for iterator: current local index
MUON DDL Trigger.
Class for decoding the payload for trigger raw data.
virtual Bool_t NextDDL()
DDL iterator.
Int_t GetMaxReg() const
Return maximum number of regional cards in DATE file.
AliMUONLocalStruct * CurrentLocalStruct() const
Returns current LocalStruct object during iteration.
AliMUONPayloadTrigger * GetPayLoad() const
Return pointer for payload.