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 "AliPMDPatchBusHeader.h"
21 ClassImp(AliPMDPatchBusHeader)
24 const Int_t AliPMDPatchBusHeader::fgkHeaderLength = 4;
26 //------------------------------------------------------------
27 AliPMDPatchBusHeader::AliPMDPatchBusHeader()
40 //___________________________________________
41 AliPMDPatchBusHeader::~AliPMDPatchBusHeader()
48 //___________________________________________
49 AliPMDPatchBusHeader::AliPMDPatchBusHeader(const AliPMDPatchBusHeader & pbush)
56 fTotalLength = pbush.fTotalLength;
57 fRawDataLength = pbush.fRawDataLength;
58 fPatchBusId = pbush.fPatchBusId;
59 fTrWord = pbush.fTrWord;
62 //___________________________________________
64 AliPMDPatchBusHeader::operator=(const AliPMDPatchBusHeader &pbush)
67 // assignment operator
69 if (this == &pbush) return *this;
71 fTotalLength = pbush.fTotalLength;
72 fRawDataLength = pbush.fRawDataLength;
73 fPatchBusId = pbush.fPatchBusId;
74 fTrWord = pbush.fTrWord;
78 void AliPMDPatchBusHeader::SetHeader(Int_t *header)
80 fTotalLength = header[0];
81 fRawDataLength = header[1];
82 fPatchBusId = header[2];