]>
Commit | Line | Data |
---|---|---|
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 */ | |
5 | ||
6 | ||
7 | #include <TObject.h> | |
8 | #include "AliRawDataHeader.h" | |
9 | ||
10 | class AliMUONDDLTrigger : public TObject { | |
11 | ||
12 | public: | |
13 | AliMUONDDLTrigger(); | |
14 | virtual ~AliMUONDDLTrigger(); | |
15 | ||
16 | ||
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;} | |
21 | ||
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;} | |
28 | ||
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;} | |
33 | ||
34 | Int_t GetHeaderLength() const {return fgkHeaderLength;} | |
35 | ||
36 | ||
37 | UInt_t* GetEnhancedHeader() {return &fddlWord;} | |
38 | ||
39 | AliRawDataHeader GetHeader(){return fHeader;} | |
40 | Int_t GetHeaderSize() {return sizeof(AliRawDataHeader)/4;} // in words | |
41 | ||
42 | private: | |
43 | ||
44 | UInt_t fddlWord; // first word | |
45 | Int_t fGlobalInput[4]; // global input | |
46 | Int_t fGlobalOutput; // global ouput | |
47 | ||
48 | static const Int_t fgkHeaderLength; // header length | |
49 | ||
50 | Int_t fEndOfDDL; // end of DDL | |
51 | ||
52 | AliRawDataHeader fHeader; // header of DDL | |
53 | ||
54 | ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger | |
55 | }; | |
56 | #endif |