]>
Commit | Line | Data |
---|---|---|
939ae4b2 | 1 | #ifndef ALIMUONPAYLOADTRIGGER_H |
2 | #define ALIMUONPAYLOADTRIGGER_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 AliMUONPayloadTrigger | |
78649106 | 10 | /// \brief Class for decoding the payload for trigger raw data |
939ae4b2 | 11 | /// |
78649106 | 12 | // Author Christian Finck |
939ae4b2 | 13 | |
14 | #include <TObject.h> | |
939ae4b2 | 15 | |
16 | class AliMUONDDLTrigger; | |
17 | class AliMUONLocalStruct; | |
18 | class AliMUONRegHeader; | |
19 | ||
20 | class AliMUONPayloadTrigger: public TObject { | |
21 | public : | |
22 | AliMUONPayloadTrigger(); | |
939ae4b2 | 23 | virtual ~AliMUONPayloadTrigger(); |
24 | ||
25 | Bool_t Decode(UInt_t *buffer); | |
26 | void ResetDDL(); | |
27 | ||
71a2d3aa | 28 | /// Return maximum number of regional cards in DATE file |
939ae4b2 | 29 | Int_t GetMaxReg() const {return fMaxReg;} |
71a2d3aa | 30 | /// Return maximum number of local cards in DATE file |
939ae4b2 | 31 | Int_t GetMaxLoc() const {return fMaxLoc;} |
32 | ||
33 | ||
34 | void SetMaxReg(Int_t reg); | |
35 | void SetMaxLoc(Int_t loc); | |
36 | ||
71a2d3aa | 37 | /// Return pointer to local structure |
939ae4b2 | 38 | AliMUONLocalStruct* GetLocalInfo() const {return fLocalStruct;} |
71a2d3aa | 39 | /// Return pointer for regional structure |
939ae4b2 | 40 | AliMUONRegHeader* GetRegHeader() const {return fRegHeader;} |
71a2d3aa | 41 | /// Return pointer for DDL structure |
939ae4b2 | 42 | AliMUONDDLTrigger* GetDDLTrigger() const {return fDDLTrigger;} |
43 | ||
ea59383d | 44 | /// Get number of end of DARC word errors |
45 | Int_t GetDarcEoWErrors() const {return fDarcEoWErrors;} | |
46 | /// Get number of end of Global word errors | |
47 | Int_t GetGlobalEoWErrors() const {return fGlobalEoWErrors;} | |
48 | /// Get number of end of regional word errors | |
49 | Int_t GetRegEoWErrors() const {return fRegEoWErrors;} | |
50 | /// Get number of end of local word errors | |
51 | Int_t GetLocalEoWErrors() const {return fLocalEoWErrors;} | |
52 | ||
53 | ||
9f5dcca3 | 54 | private : |
71a2d3aa | 55 | /// Not implemented |
56 | AliMUONPayloadTrigger(const AliMUONPayloadTrigger& stream); | |
57 | /// Not implemented | |
58 | AliMUONPayloadTrigger& operator = (const AliMUONPayloadTrigger& stream); | |
939ae4b2 | 59 | |
60 | Int_t fMaxReg; ///< maximum number of regional cards in DATE file | |
61 | Int_t fMaxLoc; ///< maximum number of local cards in DATE file | |
62 | ||
63 | AliMUONDDLTrigger* fDDLTrigger; //!< pointer for DDL structure | |
64 | AliMUONRegHeader* fRegHeader; //!< pointer for regional structure | |
65 | AliMUONLocalStruct* fLocalStruct; //!< pointer to local structure | |
66 | ||
ea59383d | 67 | Int_t fDarcEoWErrors; //!< number of end of DARC word errors; |
68 | Int_t fGlobalEoWErrors; //!< number of end of global word errors; | |
69 | Int_t fRegEoWErrors; //!< number of end of regional word errors; | |
70 | Int_t fLocalEoWErrors; //!< number of end of local word errors; | |
71 | ||
72 | ClassDef(AliMUONPayloadTrigger, 2) // base class for reading MUON trigger rawdata | |
939ae4b2 | 73 | }; |
74 | ||
75 | #endif |