]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONDDLTrigger.h
Doxygen configuration files (Initial version)
[u/mrichter/AliRoot.git] / MUON / AliMUONDDLTrigger.h
CommitLineData
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>
c8b4255f 8#include "AliRawDataHeader.h"
69be760c 9
10class AliMUONDDLTrigger : public TObject {
11
12public:
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
c8f4be1a 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;}
69be760c 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
17323043 34 Int_t GetHeaderLength() const {return fgkHeaderLength;}
c8f4be1a 35
36
c8b4255f 37 UInt_t* GetEnhancedHeader() {return &fddlWord;}
38
39 AliRawDataHeader GetHeader(){return fHeader;}
40 Int_t GetHeaderSize() {return sizeof(AliRawDataHeader)/4;} // in words
69be760c 41
42 private:
43
44 UInt_t fddlWord; // first word
45 Int_t fGlobalInput[4]; // global input
46 Int_t fGlobalOutput; // global ouput
c8f4be1a 47
48 static const Int_t fgkHeaderLength; // header length
49
69be760c 50 Int_t fEndOfDDL; // end of DDL
51
c8b4255f 52 AliRawDataHeader fHeader; // header of DDL
53
69be760c 54 ClassDef(AliMUONDDLTrigger,1) // MUON DDL Trigger
55};
56#endif