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 "AliPMDDspHeader.h"
21 ClassImp(AliPMDDspHeader)
24 const Int_t AliPMDDspHeader::fgkHeaderLength = 8;
26 //------------------------------------------------------------
27 AliPMDDspHeader::AliPMDDspHeader()
44 //___________________________________________
45 AliPMDDspHeader::~AliPMDDspHeader()
52 //___________________________________________
53 AliPMDDspHeader::AliPMDDspHeader(const AliPMDDspHeader & dsph): TObject()
59 fTotalLength = dsph.fTotalLength;
60 fRawDataLength = dsph.fRawDataLength;
61 fTrWord1 = dsph.fTrWord1;
62 fTrWord2 = dsph.fTrWord2;
63 fTrWord3 = dsph.fTrWord3;
64 fTrWord4 = dsph.fTrWord4;
66 fEvtWord = dsph.fEvtWord;
69 //___________________________________________
70 AliPMDDspHeader& AliPMDDspHeader::operator=(const AliPMDDspHeader &dsph)
73 // assignment operator
75 if (this == &dsph) return *this;
77 fTotalLength = dsph.fTotalLength;
78 fRawDataLength = dsph.fRawDataLength;
79 fTrWord1 = dsph.fTrWord1;
80 fTrWord2 = dsph.fTrWord2;
81 fTrWord3 = dsph.fTrWord3;
82 fTrWord4 = dsph.fTrWord4;
84 fEvtWord = dsph.fEvtWord;
88 void AliPMDDspHeader::SetHeader(Int_t *header)
90 fTotalLength = header[0];
91 fRawDataLength = header[1];