Correcting the comments changed in the previous commit
[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
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 SetDspId(Int_t dspid) {fDspId = dspid;}
0a666212 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;}
28
9f0d3dfb 29 void SetHeader(Int_t *header);
30
31
32 Int_t GetHeaderLength() const {return fgkHeaderLength;}
0a666212 33 Int_t GetDataKey() const {return fDataKey;}
9f0d3dfb 34 Int_t GetTotalLength() const {return fTotalLength;}
35 Int_t GetRawDataLength() const {return fRawDataLength;}
36 Int_t GetDspId() const {return fDspId;}
0a666212 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;}
41
9f0d3dfb 42
43 private:
44
0a666212 45 Int_t fDataKey; // Data key word for CRT header
9f0d3dfb 46 Int_t fTotalLength; // total length of block structure
47 Int_t fRawDataLength; // length of raw data
48 Int_t fDspId; // Dsp id
0a666212 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
9f0d3dfb 53
54 static const Int_t fgkHeaderLength; // header length in word
55
0a666212 56 ClassDef(AliPMDBlockHeader,1) // PMD Block Header
9f0d3dfb 57};
58#endif