old unused alipmdv3.cxx deleted
[u/mrichter/AliRoot.git] / PMD / AliPMDDspHeader.h
CommitLineData
9f0d3dfb 1#ifndef ALIPMDDSPHEADER_H
2#define ALIPMDDSPHEADER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5// Author - Basanta K. Nandi
6
7#include <TObject.h>
8
9class AliPMDDspHeader : public TObject {
10
11public:
12 AliPMDDspHeader();
13 AliPMDDspHeader(const AliPMDDspHeader &dsph);
14 AliPMDDspHeader& operator=(const AliPMDDspHeader &dsph);
15
16 virtual ~AliPMDDspHeader();
17
18 // dsp header
0a666212 19 void SetDataKey(Int_t dkey) {fDataKey = dkey;}
9f0d3dfb 20 void SetTotalLength(Int_t totlength) {fTotalLength = totlength;}
21 void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
9f0d3dfb 22 void SetDspId(Int_t dspid) {fDspId = dspid;}
0a666212 23 void SetBlkL1ATrigger(Int_t trword1) {fBlkL1ATrigger = trword1;}
24 void SetMiniEventId(Int_t trword2) {fMiniEventId = trword2;}
25 void SetL1ATrigger(Int_t trword3) {fL1ATrigger = trword3;}
26 void SetL1RTrigger(Int_t trword4) {fL1RTrigger = trword4;}
27 void SetPaddingWord(UInt_t padword) {fPaddingWord = padword;}
28 void SetErrorWord(Int_t errw) {fErrorWord = errw;}
29
9f0d3dfb 30 void SetHeader(Int_t *header);
31
0a666212 32 Int_t GetHeaderLength() const {return fgkHeaderLength;}
33 UInt_t GetDefaultPaddingWord() const {return fgkDefaultPaddingWord;}
9f0d3dfb 34
0a666212 35 Int_t GetDataKey() const {return fDataKey;}
9f0d3dfb 36 Int_t GetTotalLength() const {return fTotalLength;}
37 Int_t GetRawDataLength() const {return fRawDataLength;}
9f0d3dfb 38 Int_t GetDspId() const {return fDspId;}
0a666212 39 Int_t GetBlkL1Trigger() const {return fBlkL1ATrigger;}
40 Int_t GetMiniEventId() const {return fMiniEventId;}
41 Int_t GetL1ATrigger() const {return fL1ATrigger;}
42 Int_t GetL1RTrigger() const {return fL1RTrigger;}
43 Int_t GetPaddingWord() const {return fPaddingWord;}
44 Int_t GetErrorWord() const {return fErrorWord;}
9f0d3dfb 45
46 private:
47
0a666212 48 Int_t fDataKey; // Data key word for FRT header
9f0d3dfb 49 Int_t fTotalLength; // total length of block structure
50 Int_t fRawDataLength; // length of raw data
9f0d3dfb 51 Int_t fDspId; // Dsp id
0a666212 52 Int_t fBlkL1ATrigger; // 1st trigger word
53 Int_t fMiniEventId; // 1st trigger word
54 Int_t fL1ATrigger; // 1st trigger word
55 Int_t fL1RTrigger; // 1st trigger word
56 UInt_t fPaddingWord; // padding word (nb words odd:1, even:0)
57 Int_t fErrorWord; // Error word (nb words odd:1, even:0)
9f0d3dfb 58
0a666212 59 static const Int_t fgkHeaderLength; // header length in word
60 static const UInt_t fgkDefaultPaddingWord; // Default padding word
9f0d3dfb 61
0a666212 62 ClassDef(AliPMDDspHeader,1) // PMD dsp Header
9f0d3dfb 63};
64#endif