/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+/*$Id$*/
+
+/// \ingroup raw
+/// \class AliMUONDDLTrigger
+/// \brief MUON DDL Trigger
+///
+// Author Christian Finck
#include <TObject.h>
+class AliMUONLocalStruct;
+class AliMUONRegHeader;
+class AliMUONDarcHeader;
+
class AliMUONDDLTrigger : public TObject {
public:
virtual ~AliMUONDDLTrigger();
- UInt_t GetDDLWord() const {return fddlWord;}
- Int_t GetGlobalInput(Int_t n) const {return fGlobalInput[n];}
- Int_t GetGlobalOuput() const {return fGlobalOutput;}
- Int_t GetEoD() const {return fEndOfDDL;}
-
- //DarcId:2,Version:8,SerialNb:4,EventType:4,MBZ:16;
- Char_t GetDarcId() {return (Char_t)(fddlWord >> 30) & 0x10;}
- Char_t GetVersion() {return (Char_t)(fddlWord >> 24) & 0xFF;}
- Char_t GetSerialNb() {return (Char_t)(fddlWord >> 20) & 0xF;}
- Char_t GetEventType() {return (Char_t)(fddlWord >> 16) & 0xF;}
+ void AddLocStruct(const AliMUONLocalStruct& loc, Int_t iReg);
+ void AddRegHeader(const AliMUONRegHeader& regHeader);
- void SetDDLWord(UInt_t w) {fddlWord = w;}
- void SetGlobalInput(Int_t in, Int_t n) {fGlobalInput[n] = in;}
- void SetGlobalOutput(Int_t out) {fGlobalOutput = out;}
- void SetEoD(Int_t e) {fEndOfDDL = e;}
-
- UInt_t* GetAddress() {return &fddlWord;}
+ /// get AliMUONDarcHeader
+ AliMUONDarcHeader* GetDarcHeader() const {return fDarcHeader;}
private:
+ /// Not implemented
+ AliMUONDDLTrigger(const AliMUONDDLTrigger& event);
+ /// Not implemented
+ AliMUONDDLTrigger& operator=(const AliMUONDDLTrigger& event);
- UInt_t fddlWord; // first word
- Int_t fGlobalInput[4]; // global input
- Int_t fGlobalOutput; // global ouput
- Int_t fEndOfDDL; // end of DDL
+ AliMUONDarcHeader* fDarcHeader; ///< pointer of darc header
-
ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger
};
#endif