1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 #include "AliPMDBlockHeader.h"
21 ClassImp(AliPMDBlockHeader)
24 const Int_t AliPMDBlockHeader::fgkHeaderLength = 8;
26 //------------------------------------------------------------
27 AliPMDBlockHeader::AliPMDBlockHeader()
44 //___________________________________________
45 AliPMDBlockHeader::~AliPMDBlockHeader()
52 //___________________________________________
53 AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh)
60 fTotalLength = blockh.fTotalLength;
61 fRawDataLength = blockh.fRawDataLength;
62 fDspId = blockh.fDspId;
63 fTrWord1 = blockh.fTrWord1;
64 fTrWord2 = blockh.fTrWord2;
65 fTrWord3 = blockh.fTrWord3;
66 fTrWord4 = blockh.fTrWord4;
67 fPadWord = blockh.fPadWord;
70 //___________________________________________
72 AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh)
75 // assignment operator
77 if (this == &blockh) return *this;
79 fTotalLength = blockh.fTotalLength;
80 fRawDataLength = blockh.fRawDataLength;
81 fDspId = blockh.fDspId;
82 fTrWord1 = blockh.fTrWord1;
83 fTrWord2 = blockh.fTrWord2;
84 fTrWord3 = blockh.fTrWord3;
85 fTrWord4 = blockh.fTrWord4;
86 fPadWord = blockh.fPadWord;
90 void AliPMDBlockHeader::SetHeader(Int_t *header)
92 fTotalLength = header[0];
93 fRawDataLength = header[1];