]>
Commit | Line | Data |
---|---|---|
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 | ||
10 | class AliPMDPatchBusHeader : public TObject { | |
11 | ||
12 | public: | |
13 | AliPMDPatchBusHeader(); | |
14 | AliPMDPatchBusHeader(const AliPMDPatchBusHeader &pbush); | |
15 | AliPMDPatchBusHeader& operator=(const AliPMDPatchBusHeader &pbush); | |
16 | ||
17 | virtual ~AliPMDPatchBusHeader(); | |
18 | ||
19 | // PatchBus header | |
20 | ||
21 | void SetTotalLength(Int_t totlength) {fTotalLength = totlength;} | |
22 | void SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;} | |
23 | void SetPatchBusId(Int_t pbusid) {fPatchBusId = pbusid;} | |
24 | void SetTriggerWord(Int_t trword) {fTrWord = trword;} | |
25 | ||
26 | void SetHeader(Int_t *header); | |
27 | ||
28 | ||
29 | Int_t GetHeaderLength() const {return fgkHeaderLength;} | |
30 | Int_t GetTotalLength() const {return fTotalLength;} | |
31 | Int_t GetRawDataLength() const {return fRawDataLength;} | |
32 | Int_t GetPatchBusId() const {return fPatchBusId;} | |
33 | Int_t GetTriggerWord() const {return fTrWord;} | |
34 | ||
35 | ||
36 | private: | |
37 | ||
38 | Int_t fTotalLength; // total length of block structure | |
39 | Int_t fRawDataLength; // length of raw data | |
40 | Int_t fPatchBusId; // Patch bus id | |
41 | Int_t fTrWord; // 1st trigger word | |
42 | ||
43 | static const Int_t fgkHeaderLength; // header length in word | |
44 | ||
45 | ClassDef(AliPMDPatchBusHeader,0) // PMD PatchBus Header | |
46 | }; | |
47 | #endif |