1 #ifndef ALIMUONDDLTRIGGER_H
2 #define ALIMUONDDLTRIGGER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 class AliMUONDDLTrigger : public TObject {
13 virtual ~AliMUONDDLTrigger();
16 UInt_t GetDDLWord() const {return fddlWord;}
17 Int_t GetGlobalInput(Int_t n) const {return fGlobalInput[n];}
18 Int_t GetGlobalOuput() const {return fGlobalOutput;}
19 Int_t GetEoD() const {return fEndOfDDL;}
21 //DarcId:2,Version:8,SerialNb:4,EventType:4,MBZ:16;
22 Char_t GetDarcId() {return (Char_t)(fddlWord >> 30) & 0x10;}
23 Char_t GetVersion() {return (Char_t)(fddlWord >> 24) & 0xFF;}
24 Char_t GetSerialNb() {return (Char_t)(fddlWord >> 20) & 0xF;}
25 Char_t GetEventType() {return (Char_t)(fddlWord >> 16) & 0xF;}
27 void SetDDLWord(UInt_t w) {fddlWord = w;}
28 void SetGlobalInput(Int_t in, Int_t n) {fGlobalInput[n] = in;}
29 void SetGlobalOutput(Int_t out) {fGlobalOutput = out;}
30 void SetEoD(Int_t e) {fEndOfDDL = e;}
32 UInt_t* GetAddress() {return &fddlWord;}
36 UInt_t fddlWord; // first word
37 Int_t fGlobalInput[4]; // global input
38 Int_t fGlobalOutput; // global ouput
39 Int_t fEndOfDDL; // end of DDL
42 ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger