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
10 /// \brief MUON DDL Trigger
13 #include "AliRawDataHeader.h"
15 class AliMUONDDLTrigger : public TObject {
19 virtual ~AliMUONDDLTrigger();
22 UInt_t GetDDLWord() const {return fddlWord;}
23 Int_t GetGlobalInput(Int_t n) const {return fGlobalInput[n];}
24 Int_t GetGlobalOuput() const {return fGlobalOutput;}
25 Int_t GetEoD() const {return fEndOfDDL;}
27 //DarcId:4,SerialNb:4,Version:8,EventType:4,GlobalFlag:4,MBZ:8;
28 Char_t GetDarcId() {return (Char_t)(fddlWord >> 28) & 0xF;}
29 Char_t GetSerialNb() {return (Char_t)(fddlWord >> 24) & 0xF;}
30 Char_t GetVersion() {return (Char_t)(fddlWord >> 16) & 0xFF;}
31 Char_t GetEventType() {return (Char_t)(fddlWord >> 12) & 0xF;}
32 Char_t GetGlobalFlag() {return (Char_t)(fddlWord >> 8) & 0xF;}
34 void SetDDLWord(UInt_t w) {fddlWord = w;}
35 void SetGlobalInput(Int_t in, Int_t n) {fGlobalInput[n] = in;}
36 void SetGlobalOutput(Int_t out) {fGlobalOutput = out;}
37 void SetEoD(Int_t e) {fEndOfDDL = e;}
39 Int_t GetHeaderLength() const {return fgkHeaderLength;}
42 UInt_t* GetEnhancedHeader() {return &fddlWord;}
44 AliRawDataHeader GetHeader(){return fHeader;}
45 Int_t GetHeaderSize() {return sizeof(AliRawDataHeader)/4;} // in words
49 UInt_t fddlWord; // first word
50 Int_t fGlobalInput[4]; // global input
51 Int_t fGlobalOutput; // global ouput
53 static const Int_t fgkHeaderLength; // header length
55 Int_t fEndOfDDL; // end of DDL
57 AliRawDataHeader fHeader; // header of DDL
59 ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger