ATO-98 - function returns also status value
[u/mrichter/AliRoot.git] / PMD / AliPMDPatchBusHeader.cxx
CommitLineData
9f0d3dfb 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16
17#include "AliPMDPatchBusHeader.h"
18
19
20
21ClassImp(AliPMDPatchBusHeader)
22
23
24const Int_t AliPMDPatchBusHeader::fgkHeaderLength = 4;
25
26//------------------------------------------------------------
0a666212 27AliPMDPatchBusHeader::AliPMDPatchBusHeader() :
28 TObject(),
29 fDataKey(0),
30 fTotalLength(0),
31 fRawDataLength(0),
32 fPatchBusId(0)
9f0d3dfb 33{
34 //
35 // ctor
36 //
37
38}
39
40//___________________________________________
41AliPMDPatchBusHeader::~AliPMDPatchBusHeader()
42{
43 //
44 // dtor
45 //
46}
47
48//___________________________________________
a48edddd 49AliPMDPatchBusHeader::AliPMDPatchBusHeader(const AliPMDPatchBusHeader & pbush):
50 TObject(),
0a666212 51 fDataKey(pbush.fDataKey),
a48edddd 52 fTotalLength(pbush.fTotalLength),
53 fRawDataLength(pbush.fRawDataLength),
0a666212 54 fPatchBusId(pbush.fPatchBusId)
9f0d3dfb 55{
56 //
57 // copy ctor
58 //
9f0d3dfb 59}
60
61//___________________________________________
62AliPMDPatchBusHeader&
63AliPMDPatchBusHeader::operator=(const AliPMDPatchBusHeader &pbush)
64{
65 //
66 // assignment operator
67 //
a48edddd 68 if (this != &pbush)
69 {
0a666212 70 fDataKey = pbush.fDataKey;
a48edddd 71 fTotalLength = pbush.fTotalLength;
72 fRawDataLength = pbush.fRawDataLength;
73 fPatchBusId = pbush.fPatchBusId;
a48edddd 74 }
9f0d3dfb 75 return *this;
76}
77void AliPMDPatchBusHeader::SetHeader(Int_t *header)
78{
0a666212 79 fDataKey = header[0];
80 fTotalLength = header[1];
81 fRawDataLength = header[2];
82 fPatchBusId = header[3];
9f0d3dfb 83}
0a666212 84