]>
Commit | Line | Data |
---|---|---|
69be760c | 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 | ||
9 | class AliMUONDDLTrigger : public TObject { | |
10 | ||
11 | public: | |
12 | AliMUONDDLTrigger(); | |
13 | virtual ~AliMUONDDLTrigger(); | |
14 | ||
15 | ||
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;} | |
20 | ||
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;} | |
26 | ||
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;} | |
31 | ||
32 | UInt_t* GetAddress() {return &fddlWord;} | |
33 | ||
34 | private: | |
35 | ||
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 | |
40 | ||
41 | ||
42 | ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger | |
43 | }; | |
44 | #endif |