ROOT logo
#ifndef ALIPMDBLOCKHEADER_H
#define ALIPMDBLOCKHEADER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */


#include <TObject.h>

class AliPMDBlockHeader : public TObject {

public:
   AliPMDBlockHeader();
   AliPMDBlockHeader(const AliPMDBlockHeader &blockh);
   AliPMDBlockHeader& operator=(const AliPMDBlockHeader &blockh);

   virtual ~AliPMDBlockHeader();

   // Block header

   void  SetDataKey(Int_t dkey)            {fDataKey = dkey;}
   void  SetTotalLength(Int_t totlength)   {fTotalLength = totlength;}
   void  SetRawDataLength(Int_t rawlength) {fRawDataLength = rawlength;}
   void  SetDspId(Int_t dspid)             {fDspId = dspid;}
   void  SetL0Trigger(Int_t trword1)       {fL0Trigger = trword1;}
   void  SetMiniEventId(Int_t trword2)     {fMiniEventId = trword2;}
   void  SetEventId1(Int_t trword3)        {fEventId1 = trword3;}
   void  SetEventId2(Int_t trword4)        {fEventId2 = trword4;}

   void  SetHeader(Int_t *header);


   Int_t GetHeaderLength()  const {return fgkHeaderLength;}
   Int_t GetDataKey()       const {return fDataKey;}
   Int_t GetTotalLength()   const {return fTotalLength;}
   Int_t GetRawDataLength() const {return fRawDataLength;}
   Int_t GetDspId()         const {return fDspId;}
   Int_t GetL0Trigger()     const {return fL0Trigger;}  
   Int_t GetMiniEventId()   const {return fMiniEventId;}  
   Int_t GetEventId1()      const {return fEventId1;}  
   Int_t GetEventId2()      const {return fEventId2;}  


 private:

   Int_t     fDataKey;        // Data key word for CRT header
   Int_t     fTotalLength;    // total length of block structure
   Int_t     fRawDataLength;  // length of raw data
   Int_t     fDspId;          // Dsp id
   Int_t     fL0Trigger;      // L0 trigger word
   Int_t     fMiniEventId;    // Bunch crossing for mini-event id
   Int_t     fEventId1;       // Event Id in bunch crossing
   Int_t     fEventId2;       // Event Id in orbit number

   static const Int_t fgkHeaderLength;   // header length in word

   ClassDef(AliPMDBlockHeader,1)  // PMD Block Header
};
#endif
 AliPMDBlockHeader.h:1
 AliPMDBlockHeader.h:2
 AliPMDBlockHeader.h:3
 AliPMDBlockHeader.h:4
 AliPMDBlockHeader.h:5
 AliPMDBlockHeader.h:6
 AliPMDBlockHeader.h:7
 AliPMDBlockHeader.h:8
 AliPMDBlockHeader.h:9
 AliPMDBlockHeader.h:10
 AliPMDBlockHeader.h:11
 AliPMDBlockHeader.h:12
 AliPMDBlockHeader.h:13
 AliPMDBlockHeader.h:14
 AliPMDBlockHeader.h:15
 AliPMDBlockHeader.h:16
 AliPMDBlockHeader.h:17
 AliPMDBlockHeader.h:18
 AliPMDBlockHeader.h:19
 AliPMDBlockHeader.h:20
 AliPMDBlockHeader.h:21
 AliPMDBlockHeader.h:22
 AliPMDBlockHeader.h:23
 AliPMDBlockHeader.h:24
 AliPMDBlockHeader.h:25
 AliPMDBlockHeader.h:26
 AliPMDBlockHeader.h:27
 AliPMDBlockHeader.h:28
 AliPMDBlockHeader.h:29
 AliPMDBlockHeader.h:30
 AliPMDBlockHeader.h:31
 AliPMDBlockHeader.h:32
 AliPMDBlockHeader.h:33
 AliPMDBlockHeader.h:34
 AliPMDBlockHeader.h:35
 AliPMDBlockHeader.h:36
 AliPMDBlockHeader.h:37
 AliPMDBlockHeader.h:38
 AliPMDBlockHeader.h:39
 AliPMDBlockHeader.h:40
 AliPMDBlockHeader.h:41
 AliPMDBlockHeader.h:42
 AliPMDBlockHeader.h:43
 AliPMDBlockHeader.h:44
 AliPMDBlockHeader.h:45
 AliPMDBlockHeader.h:46
 AliPMDBlockHeader.h:47
 AliPMDBlockHeader.h:48
 AliPMDBlockHeader.h:49
 AliPMDBlockHeader.h:50
 AliPMDBlockHeader.h:51
 AliPMDBlockHeader.h:52
 AliPMDBlockHeader.h:53
 AliPMDBlockHeader.h:54
 AliPMDBlockHeader.h:55
 AliPMDBlockHeader.h:56
 AliPMDBlockHeader.h:57
 AliPMDBlockHeader.h:58