]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDBlockHeader.h
Possibility to vary the cos(PA) cut
[u/mrichter/AliRoot.git] / PMD / AliPMDBlockHeader.h
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
9 class AliPMDBlockHeader : public TObject {
10
11 public:
12    AliPMDBlockHeader();
13    AliPMDBlockHeader(const AliPMDBlockHeader &blockh);
14    AliPMDBlockHeader& operator=(const AliPMDBlockHeader &blockh);
15
16    virtual ~AliPMDBlockHeader();
17
18    // Block header
19
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;}
28
29    void  SetHeader(Int_t *header);
30
31
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;}  
41
42
43  private:
44
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
53
54    static const Int_t fgkHeaderLength;   // header length in word
55
56    ClassDef(AliPMDBlockHeader,1)  // PMD Block Header
57 };
58 #endif