AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPayloadTracker.h
Go to the documentation of this file.
1 #ifndef ALIMUONPAYLOADTRACKER_H
2 #define ALIMUONPAYLOADTRACKER_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 <TString.h>
16 
17 
18 class AliMUONDDLTracker;
19 class AliMUONBusStruct;
20 class AliMUONDspHeader;
21 class AliMUONBlockHeader;
22 class AliMUONLogger;
23 
24 class AliMUONPayloadTracker: public TObject {
25  public :
27  virtual ~AliMUONPayloadTracker();
28 
30  Int_t GetMaxBlock() const {return fMaxBlock;}
32  Int_t GetMaxDsp() const {return fMaxDsp;}
34  Int_t GetMaxBus() const {return fMaxBus;}
35 
36  // check input before assigment
37  void SetMaxBlock(Int_t blk);
38 
41  void SetMaxDsp(Int_t dsp) {fMaxDsp = dsp;}
44  void SetMaxBus(Int_t bus) {fMaxBus = bus;}
45 
46  void ResetDDL();
47 
48  Bool_t Decode(UInt_t* buffer, Int_t datasize);
49 
54 
56  Int_t GetParityErrors() const {return fParityErrors;} // for online
58  Int_t GetGlitchErrors() const {return fGlitchErrors;}
60  Int_t GetPaddingErrors() const {return fPaddingErrors;}
61 
63  AliMUONLogger* GetErrorLogger() const {return fLog;}
64 
66  void DisableWarnings() {fWarnings = kFALSE;}
67 
68  private :
73 
74  Bool_t CheckDataParity();
75  void AddErrorMessage(const Char_t* msg);
76 
77  Int_t fBusPatchId;
78  Int_t fDspId;
79  Int_t fBlkId;
80 
81  Int_t fMaxDDL;
82  Int_t fMaxBlock;
83  Int_t fMaxDsp;
84  Int_t fMaxBus;
85 
90 
92  Int_t fParityErrors;
93  Int_t fGlitchErrors;
95  Bool_t fWarnings;
96 
97  ClassDef(AliMUONPayloadTracker, 4) // base class for reading MUON raw digits
98 };
99 
100 #endif
AliMUONBusStruct * fBusStruct
! pointer for local structure
AliMUONBlockHeader * fBlockHeader
! pointer for block structure
MUON DDL tracker.
MUON DSP header for tracker event.
Bool_t Decode(UInt_t *buffer, Int_t datasize)
Int_t GetMaxBlock() const
Return maximum number of block per DDL in DATE file.
Class for decoding the payload for tracker raw data.
Int_t fDspId
entry of Dsp header
Int_t fBlkId
entry of Block header
void SetMaxDsp(Int_t dsp)
Set maximum number of Dsp per block in DATE file does not check, done via BusPatchManager.
A logger that keeps track of the number of times a message appeared.
Definition: AliMUONLogger.h:29
AliMUONLogger * fLog
! Map of errors msg;
Int_t fMaxBlock
maximum number of block per DDL in DATE file
Int_t GetMaxBus() const
Return maximum number of Buspatch per Dsp in DATE file.
Int_t fPaddingErrors
! number of padding word errors;
void DisableWarnings()
set warnings flag
AliMUONBusStruct * GetBusPatchInfo() const
Return pointer for local structure.
Int_t fParityErrors
! number of parity errors;
Int_t GetGlitchErrors() const
Get number of glitch errors.
Int_t fMaxDDL
maximum number of DDL in DATE file
AliMUONLogger * GetErrorLogger() const
Get Error logger.
void AddErrorMessage(const Char_t *msg)
Bool_t fWarnings
! flag to enable/disable warnings
MUON block (Crocus CRT) header for tracker event.
void SetMaxBus(Int_t bus)
Set maximum number of Buspatch per Dsp in DATE file does not check, done via BusPatchManager.
AliMUONDspHeader * fDspHeader
! pointer for dsp structure
Int_t fMaxDsp
maximum number of Dsp per block in DATE file
AliMUONPayloadTracker & operator=(const AliMUONPayloadTracker &stream)
Not implemented.
Int_t fBusPatchId
entry of buspatch structure
AliMUONDDLTracker * GetDDLTracker() const
Return pointer for buspatch structure.
Int_t GetMaxDsp() const
Return maximum number of Dsp per block in DATE file.
Int_t GetPaddingErrors() const
Get number of padding word errors.
MUON buspatch structure for tracker.
Int_t fGlitchErrors
! number of glitch errors;
Int_t GetParityErrors() const
Get number of parity errors.
AliMUONDDLTracker * fDDLTracker
! pointer for buspatch structure
Int_t fMaxBus
maximum number of Buspatch per Dsp in DATE file