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 */
9 class AliPMDBlockHeader : public TObject {
13 AliPMDBlockHeader(const AliPMDBlockHeader &blockh);
14 AliPMDBlockHeader& operator=(const AliPMDBlockHeader &blockh);
16 virtual ~AliPMDBlockHeader();
20 void SetDataKey(Int_t dkey) {fDataKey = dkey;}
21 void SetTotalLength(Int_t totlength) {fTotalLength = totlength;}
22 void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
23 void SetDspId(Int_t dspid) {fDspId = dspid;}
24 void SetL0Trigger(Int_t trword1) {fL0Trigger = trword1;}
25 void SetMiniEventId(Int_t trword2) {fMiniEventId = trword2;}
26 void SetEventId1(Int_t trword3) {fEventId1 = trword3;}
27 void SetEventId2(Int_t trword4) {fEventId2 = trword4;}
29 void SetHeader(Int_t *header);
32 Int_t GetHeaderLength() const {return fgkHeaderLength;}
33 Int_t GetDataKey() const {return fDataKey;}
34 Int_t GetTotalLength() const {return fTotalLength;}
35 Int_t GetRawDataLength() const {return fRawDataLength;}
36 Int_t GetDspId() const {return fDspId;}
37 Int_t GetL0Trigger() const {return fL0Trigger;}
38 Int_t GetMiniEventId() const {return fMiniEventId;}
39 Int_t GetEventId1() const {return fEventId1;}
40 Int_t GetEventId2() const {return fEventId2;}
45 Int_t fDataKey; // Data key word for CRT header
46 Int_t fTotalLength; // total length of block structure
47 Int_t fRawDataLength; // length of raw data
48 Int_t fDspId; // Dsp id
49 Int_t fL0Trigger; // L0 trigger word
50 Int_t fMiniEventId; // Bunch crossing for mini-event id
51 Int_t fEventId1; // Event Id in bunch crossing
52 Int_t fEventId2; // Event Id in orbit number
54 static const Int_t fgkHeaderLength; // header length in word
56 ClassDef(AliPMDBlockHeader,1) // PMD Block Header