1 #ifndef ALIPMDPATCHBUSHEADER_H
2 #define ALIPMDPATCHBUSHEADER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 // Author - Basanta K. Nandi
10 class AliPMDPatchBusHeader : public TObject {
13 AliPMDPatchBusHeader();
14 AliPMDPatchBusHeader(const AliPMDPatchBusHeader &pbush);
15 AliPMDPatchBusHeader& operator=(const AliPMDPatchBusHeader &pbush);
17 virtual ~AliPMDPatchBusHeader();
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 SetPatchBusId(Int_t pbusid) {fPatchBusId = pbusid;}
25 void SetHeader(Int_t *header);
28 Int_t GetHeaderLength() const {return fgkHeaderLength;}
29 Int_t GetDataKey() const {return fDataKey;}
30 Int_t GetTotalLength() const {return fTotalLength;}
31 Int_t GetRawDataLength() const {return fRawDataLength;}
32 Int_t GetPatchBusId() const {return fPatchBusId;}
38 Int_t fDataKey; // data key
39 Int_t fTotalLength; // total length of block structure
40 Int_t fRawDataLength; // length of raw data
41 Int_t fPatchBusId; // Patch bus id
44 static const Int_t fgkHeaderLength; // header length in word
46 ClassDef(AliPMDPatchBusHeader,1) // PMD PatchBus Header