AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDspHeader.h
Go to the documentation of this file.
1 #ifndef ALIMUONDSPHEADER_H
2 #define ALIMUONDSPHEADER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /*$Id$*/
7 
12 // Author Christian Finck
13 
14 #include <TObject.h>
15 #include <TClonesArray.h>
16 
17 class AliMUONBusStruct;
18 
19 class AliMUONDspHeader : public TObject {
20 
21 public:
23  AliMUONDspHeader(TRootIOCtor* dummy);
24  AliMUONDspHeader(const AliMUONDspHeader& event);
26 
27  virtual ~AliMUONDspHeader();
28 
29  // DSP header
31  Int_t GetDataKey() const {return fDataKey;}
33  Int_t GetTotalLength() const {return fTotalLength;}
35  Int_t GetLength() const {return fLength;}
37  Int_t GetDspId() const {return fDspId;}
39  Int_t GetBlkL1ATrigger() const {return fBlkL1ATrigger;}
41  Int_t GetMiniEventId() const {return fMiniEventId;}
43  Int_t GetL1ATrigger() const {return fL1ATrigger;}
45  Int_t GetL1RTrigger() const {return fL1RTrigger;}
47  UInt_t GetPaddingWord() const {return fPaddingWord;}
49  Int_t GetErrorWord() const {return fErrorWord;}
50 
52  Int_t GetHeaderLength() const {return fgkHeaderLength;}
54  UInt_t GetDefaultDataKey() const {return fgkDefaultDataKey;}
57 
59  void SetDataKey(Int_t d) {fDataKey = d;}
61  void SetTotalLength(Int_t l) {fTotalLength = l;}
63  void SetLength(Int_t l) {fLength = l;}
65  void SetDspId(Int_t d) {fDspId = d;}
67  void SetBlkL1ATrigger(Int_t l1) {fBlkL1ATrigger = l1;}
69  void SetMiniEventId(Int_t id) {fMiniEventId = id;}
71  void SetL1ATrigger(Int_t l1a) {fL1ATrigger = l1a;}
73  void SetL1RTrigger(Int_t l1r) {fL1RTrigger = l1r;}
75  void SetPaddingWord(UInt_t w) {fPaddingWord = w;}
77  void SetErrorWord(Int_t w) {fErrorWord = w;}
78 
80  Int_t* GetHeader() {return &fDataKey;}
81 
82  void AddBusPatch(const AliMUONBusStruct& busPatch);
83 
85  TClonesArray* GetBusPatchArray() const {return fBusPatchArray;}
86 
88  Int_t GetBusPatchEntries() const {return fBusPatchArray->GetEntriesFast();}
89 
92  return (AliMUONBusStruct*)fBusPatchArray->At(i);}
93 
94  // clear
95  void Clear(Option_t* opt);
96 
97  // print out
98  void Print(Option_t* /*opt*/) const;
99 
100  private:
101 
102  // Dsp header
103  Int_t fDataKey;
104  Int_t fTotalLength;
105  Int_t fLength;
106  Int_t fDspId;
108  Int_t fMiniEventId;
109  Int_t fL1ATrigger;
110  Int_t fL1RTrigger;
111  Int_t fPaddingWord;
112  Int_t fErrorWord;
113 
114  static const Int_t fgkHeaderLength;
115  static const UInt_t fgkDefaultDataKey;
116  static const UInt_t fgkDefaultPaddingWord;
117 
118  TClonesArray* fBusPatchArray;
119 
120  ClassDef(AliMUONDspHeader,2) // MUON Dsp header for Tracker event
121 };
122 #endif
Int_t fTotalLength
total length of block structure
void SetPaddingWord(UInt_t w)
Set padding dummy word for 64 bits transfer.
Int_t GetBusPatchEntries() const
get entries
AliMUONDspHeader & operator=(const AliMUONDspHeader &event)
Int_t GetL1RTrigger() const
Return Number of L1 reject in DSP Structure (FRT)
Int_t GetHeaderLength() const
Return header length.
Int_t fPaddingWord
padding dummy word for 64 bits transfer
UInt_t GetDefaultPaddingWord() const
Return default padding word value.
Int_t GetDspId() const
Return Dsp id.
TClonesArray * GetBusPatchArray() const
get TClonesArray
void Print(Option_t *) const
Int_t GetTotalLength() const
Return total length of block structure.
Int_t * GetHeader()
Return header.
static const Int_t fgkHeaderLength
header length
void SetDspId(Int_t d)
Set Dsp id.
MUON DSP header for tracker event.
void SetLength(Int_t l)
Set length of raw data.
Int_t fMiniEventId
Mini Event Id in bunch crossing.
Int_t GetBlkL1ATrigger() const
Return L1 accept in Block Structure (CRT)
AliMUONBusStruct * GetBusPatchEntry(Int_t i) const
get entry
Int_t GetMiniEventId() const
Return Mini Event Id in bunch crossing.
TClonesArray * fBusPatchArray
array of buspatch structure
UInt_t GetPaddingWord() const
Return padding dummy word for 64 bits transfer.
Int_t fLength
length of raw data
Int_t GetDataKey() const
Return Data key word for FRT header.
Int_t fBlkL1ATrigger
L1 accept in Block Structure (CRT)
void SetDataKey(Int_t d)
Set Data key word for FRT header.
void AddBusPatch(const AliMUONBusStruct &busPatch)
static const UInt_t fgkDefaultDataKey
default data key word for FRT header
Int_t fDspId
Dsp id.
UInt_t GetDefaultDataKey() const
Return default data key word for FRT header.
static const UInt_t fgkDefaultPaddingWord
default padding word value
void SetMiniEventId(Int_t id)
Set Mini Event Id in bunch crossing.
void SetTotalLength(Int_t l)
Set total length of block structure.
Int_t fL1ATrigger
Number of L1 accept in DSP Structure (FRT)
Int_t fErrorWord
Error word.
Int_t GetLength() const
Return length of raw data.
void Clear(Option_t *opt)
Int_t fDataKey
Data key word for FRT header.
void SetErrorWord(Int_t w)
Set Error word.
Int_t GetErrorWord() const
Return Error word.
Int_t fL1RTrigger
Number of L1 reject in DSP Structure (FRT)
virtual ~AliMUONDspHeader()
void SetL1RTrigger(Int_t l1r)
Set Number of L1 reject in DSP Structure (FRT)
void SetL1ATrigger(Int_t l1a)
Set Number of L1 accept in DSP Structure (FRT)
void SetBlkL1ATrigger(Int_t l1)
Set L1 accept in Block Structure (CRT)
MUON buspatch structure for tracker.
Int_t GetL1ATrigger() const
Return Number of L1 accept in DSP Structure (FRT)