]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDBlockHeader.h
new classes are added
[u/mrichter/AliRoot.git] / PMD / AliPMDBlockHeader.h
CommitLineData
9f0d3dfb 1#ifndef ALIPMDBLOCKHEADER_H
2#define ALIPMDBLOCKHEADER_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
9class AliPMDBlockHeader : public TObject {
10
11public:
12 AliPMDBlockHeader();
13 AliPMDBlockHeader(const AliPMDBlockHeader &blockh);
14 AliPMDBlockHeader& operator=(const AliPMDBlockHeader &blockh);
15
16 virtual ~AliPMDBlockHeader();
17
18 // Block header
19
20 void SetTotalLength(Int_t totlength) {fTotalLength = totlength;}
21 void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
22 void SetDspId(Int_t dspid) {fDspId = dspid;}
23 void SetTriggerWord1(Int_t trword1) {fTrWord1 = trword1;}
24 void SetTriggerWord2(Int_t trword2) {fTrWord2 = trword2;}
25 void SetTriggerWord3(Int_t trword3) {fTrWord3 = trword3;}
26 void SetTriggerWord4(Int_t trword4) {fTrWord4 = trword4;}
27 void SetPaddingWord(Int_t padword) {fPadWord = padword;}
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 GetDspId() const {return fDspId;}
35 Int_t GetTriggerWord1() const {return fTrWord1;}
36 Int_t GetTriggerWord2() const {return fTrWord2;}
37 Int_t GetTriggerWord3() const {return fTrWord3;}
38 Int_t GetTriggerWord4() const {return fTrWord4;}
39 Int_t GetPaddingWord() const {return fPadWord;}
40
41 private:
42
43 Int_t fTotalLength; // total length of block structure
44 Int_t fRawDataLength; // length of raw data
45 Int_t fDspId; // Dsp id
46 Int_t fTrWord1; // 1st trigger word
47 Int_t fTrWord2; // 1st trigger word
48 Int_t fTrWord3; // 1st trigger word
49 Int_t fTrWord4; // 1st trigger word
50 Int_t fPadWord; // Padding word
51
52 static const Int_t fgkHeaderLength; // header length in word
53
54 ClassDef(AliPMDBlockHeader,0) // PMD Block Header
55};
56#endif