1 #ifndef ALIMUONDDLTRACKER_H
2 #define ALIMUONDDLTRACKER_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"
11 class AliMUONDDLTracker : public TObject {
15 virtual ~AliMUONDDLTracker(){;}
18 Int_t GetTotalBlkLength() const {return fTotalBlkLength;}
19 Int_t GetBlkLength() const {return fBlkLength;}
20 Int_t GetDspId() const {return fDSPId;}
21 Int_t GetBlkTriggerWord(Int_t n) const {return fBlkTriggerWord[n];}
22 const Int_t GetPadding() const {return fPadding;}
24 void SetTotalBlkLength(Int_t l) {fTotalBlkLength = l;}
25 void SetBlkLength(Int_t l) {fBlkLength = l;}
26 void SetDSPId(Int_t d) {fDSPId = d;}
27 void SetBlkTriggerWord(Int_t w, Int_t n) {fBlkTriggerWord[n] = w;}
30 Int_t GetTotalDspLength() const {return fTotalDspLength;}
31 Int_t GetDspLength() const {return fDspLength;}
32 Int_t GetDspId1() const {return fDSPId1;}
33 Int_t GetDspTriggerWord(Int_t n) const {return fDspTriggerWord[n];}
34 Int_t GetEventWord() const {return fEventWord;}
36 void SetTotalDspLength(Int_t l) {fTotalDspLength = l;}
37 void SetDspLength(Int_t l) {fDspLength = l;}
38 void SetDSPId1(Int_t d) {fDSPId1 = d;}
39 void SetDspTriggerWord(Int_t w, Int_t n) {fDspTriggerWord[n] = w;}
40 void SetEventWord(Int_t w) {fEventWord = w;}
42 Int_t* GetBlkHeader() {return &fTotalBlkLength;}
43 Int_t* GetDspHeader() {return &fTotalDspLength;}
45 AliRawDataHeader GetHeader(){return fHeader;}
46 Int_t GetHeaderSize() {return sizeof(AliRawDataHeader)/4;} // in words
48 const Int_t GetEoD() const {return fEndOfDDL;}
53 Int_t fTotalBlkLength; // total length of block structure
54 Int_t fBlkLength; // length of raw data
55 Int_t fDSPId; // Dsp id
56 Int_t fBlkTriggerWord[4]; // counter trigger word
57 Int_t fPadding; // padding dummy word for 64 bits transfer
60 Int_t fTotalDspLength; // total length of block structure
61 Int_t fDspLength; // length of raw data
62 Int_t fDSPId1; // Dsp id ??
63 Int_t fDspTriggerWord[4]; // counter trigger word ?
64 Int_t fEventWord; // nb word odd = 1, even = 0
66 static const Int_t fEndOfDDL; // end of DDL
69 AliRawDataHeader fHeader; // header of DDL
72 ClassDef(AliMUONDDLTracker,1) // MUON DDL Tracker