/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #include "AliPMDPatchBusHeader.h" ClassImp(AliPMDPatchBusHeader) const Int_t AliPMDPatchBusHeader::fgkHeaderLength = 4; //------------------------------------------------------------ AliPMDPatchBusHeader::AliPMDPatchBusHeader() : TObject(), fDataKey(0), fTotalLength(0), fRawDataLength(0), fPatchBusId(0) { // // ctor // } //___________________________________________ AliPMDPatchBusHeader::~AliPMDPatchBusHeader() { // // dtor // } //___________________________________________ AliPMDPatchBusHeader::AliPMDPatchBusHeader(const AliPMDPatchBusHeader & pbush): TObject(), fDataKey(pbush.fDataKey), fTotalLength(pbush.fTotalLength), fRawDataLength(pbush.fRawDataLength), fPatchBusId(pbush.fPatchBusId) { // // copy ctor // } //___________________________________________ AliPMDPatchBusHeader& AliPMDPatchBusHeader::operator=(const AliPMDPatchBusHeader &pbush) { // // assignment operator // if (this != &pbush) { fDataKey = pbush.fDataKey; fTotalLength = pbush.fTotalLength; fRawDataLength = pbush.fRawDataLength; fPatchBusId = pbush.fPatchBusId; } return *this; } void AliPMDPatchBusHeader::SetHeader(Int_t *header) { fDataKey = header[0]; fTotalLength = header[1]; fRawDataLength = header[2]; fPatchBusId = header[3]; }