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