Remove some bugs that sneaked in during the code revision
[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
19
20 void SetTotalLength(Int_t totlength) {fTotalLength = totlength;}
21 void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
22 void SetTriggerWord1(Int_t trword1) {fTrWord1 = trword1;}
23 void SetTriggerWord2(Int_t trword2) {fTrWord2 = trword2;}
24 void SetTriggerWord3(Int_t trword3) {fTrWord3 = trword3;}
25 void SetTriggerWord4(Int_t trword4) {fTrWord4 = trword4;}
26 void SetDspId(Int_t dspid) {fDspId = dspid;}
27 void SetEventWord(Int_t evtword) {fEvtWord = evtword;}
28 void SetHeader(Int_t *header);
29
30
31 Int_t GetHeaderLength() const {return fgkHeaderLength;}
32 Int_t GetTotalLength() const {return fTotalLength;}
33 Int_t GetRawDataLength() const {return fRawDataLength;}
34 Int_t GetTriggerWord1() const {return fTrWord1;}
35 Int_t GetTriggerWord2() const {return fTrWord2;}
36 Int_t GetTriggerWord3() const {return fTrWord3;}
37 Int_t GetTriggerWord4() const {return fTrWord4;}
38 Int_t GetDspId() const {return fDspId;}
39 Int_t GetEventWord() const {return fEvtWord;}
40
41 private:
42
43 Int_t fTotalLength; // total length of block structure
44 Int_t fRawDataLength; // length of raw data
45 Int_t fTrWord1; // 1st trigger word
46 Int_t fTrWord2; // 1st trigger word
47 Int_t fTrWord3; // 1st trigger word
48 Int_t fTrWord4; // 1st trigger word
49 Int_t fDspId; // Dsp id
50 Int_t fEvtWord; // Event word (nb words odd:1, even:0)
51
52 static const Int_t fgkHeaderLength; // header length in word
53
54 ClassDef(AliPMDDspHeader,0) // PMD dsp Header
55};
56#endif