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 static const Int_t bufsize = 1024;
10 class AliMUONDDLTracker : public TObject {
14 virtual ~AliMUONDDLTracker(){;}
16 UInt_t GetRawData(Int_t n) const {return fData[n];}
17 Int_t GetLength() const {return fLength;}
18 Int_t GetBusPatchId() const {return fBusPatchId;}
19 Int_t GetEoD() const {return fEndOfDDL;}
21 Char_t GetParity(Int_t n) {return (Char_t)(fData[n] >> 29) & 0x7;}
22 UShort_t GetManuId(Int_t n) {return (UShort_t)(fData[n] >> 18) & 0x7FF;}
23 Char_t GetChannelId(Int_t n) {return (Char_t)(fData[n] >> 12) & 0x3F;}
24 UShort_t GetCharge(Int_t n) {return (UShort_t)(fData[n] & 0xFFF);}
26 void SetRawData(UInt_t w) {fData[fLength++] = w;}
27 void SetLength(Int_t l) {fLength = l;}
28 void SetBusPatchId(Int_t b) {fBusPatchId = b;}
29 void SetEoD(Int_t e) {fEndOfDDL = e;}
31 Int_t* GetAddress() {return &fLength;}
35 Int_t fLength; // length of data
36 Int_t fBusPatchId; // bus patch id
37 UInt_t fData[bufsize]; // data
38 Int_t fEndOfDDL ; // end of DDL
40 ClassDef(AliMUONDDLTracker,1) // MUON DDL Tracker