ATO-98 - function returns also status value
[u/mrichter/AliRoot.git] / PMD / AliPMDPatchBusHeader.h
CommitLineData
9f0d3dfb 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 */
5
6// Author - Basanta K. Nandi
7
8#include <TObject.h>
9
10class AliPMDPatchBusHeader : public TObject {
11
12public:
13 AliPMDPatchBusHeader();
14 AliPMDPatchBusHeader(const AliPMDPatchBusHeader &pbush);
15 AliPMDPatchBusHeader& operator=(const AliPMDPatchBusHeader &pbush);
16
17 virtual ~AliPMDPatchBusHeader();
18
19 // PatchBus header
0a666212 20 void SetDataKey(Int_t dkey) {fDataKey = dkey;}
9f0d3dfb 21 void SetTotalLength(Int_t totlength) {fTotalLength = totlength;}
22 void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
23 void SetPatchBusId(Int_t pbusid) {fPatchBusId = pbusid;}
9f0d3dfb 24
25 void SetHeader(Int_t *header);
26
27
28 Int_t GetHeaderLength() const {return fgkHeaderLength;}
0a666212 29 Int_t GetDataKey() const {return fDataKey;}
9f0d3dfb 30 Int_t GetTotalLength() const {return fTotalLength;}
31 Int_t GetRawDataLength() const {return fRawDataLength;}
32 Int_t GetPatchBusId() const {return fPatchBusId;}
0a666212 33
9f0d3dfb 34
35
36 private:
37
0a666212 38 Int_t fDataKey; // data key
9f0d3dfb 39 Int_t fTotalLength; // total length of block structure
40 Int_t fRawDataLength; // length of raw data
41 Int_t fPatchBusId; // Patch bus id
0a666212 42
9f0d3dfb 43
44 static const Int_t fgkHeaderLength; // header length in word
45
0a666212 46 ClassDef(AliPMDPatchBusHeader,1) // PMD PatchBus Header
9f0d3dfb 47};
48#endif