]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDDLTracker.h
Bug found (Jean-Pierre)
[u/mrichter/AliRoot.git] / MUON / AliMUONDDLTracker.h
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                               */
5
6
7 #include <TObject.h>
8 #include "AliRawDataHeader.h"
9
10
11 class AliMUONDDLTracker : public TObject {
12
13 public:
14    AliMUONDDLTracker();
15    virtual ~AliMUONDDLTracker(){;}
16
17    // Block header
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;}
23
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;}
28
29    // DSP header
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;}
35
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;}
41
42    Int_t* GetBlkHeader() {return &fTotalBlkLength;}
43    Int_t* GetDspHeader() {return &fTotalDspLength;}
44
45    AliRawDataHeader GetHeader(){return fHeader;}
46    Int_t GetHeaderSize() {return sizeof(AliRawDataHeader)/4;} // in words
47
48    const Int_t   GetEoD()      const {return fEndOfDDL;}  
49
50  private:
51
52    // block header
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
58
59    // Dsp header
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
65
66    static const Int_t fEndOfDDL;  // end of DDL
67
68
69    AliRawDataHeader fHeader;   // header of DDL
70  
71  
72    ClassDef(AliMUONDDLTracker,1)  // MUON DDL Tracker
73 };
74 #endif