]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDPatchBusHeader.cxx
single cell cluster is fixed
[u/mrichter/AliRoot.git] / PMD / AliPMDPatchBusHeader.cxx
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
21 ClassImp(AliPMDPatchBusHeader)
22
23
24 const Int_t  AliPMDPatchBusHeader::fgkHeaderLength = 4;
25
26 //------------------------------------------------------------
27 AliPMDPatchBusHeader::AliPMDPatchBusHeader()
28   :  TObject(),
29      fTotalLength(0),
30      fRawDataLength(0),
31      fPatchBusId(0),
32      fTrWord(0)
33 {
34   //
35   // ctor
36   //
37
38 }
39
40 //___________________________________________
41 AliPMDPatchBusHeader::~AliPMDPatchBusHeader()
42 {
43   // 
44   // dtor
45   //
46 }
47
48 //___________________________________________
49 AliPMDPatchBusHeader::AliPMDPatchBusHeader(const AliPMDPatchBusHeader & pbush)
50   :  TObject()
51 {
52   //
53   // copy ctor
54   //
55
56   fTotalLength   = pbush.fTotalLength;
57   fRawDataLength = pbush.fRawDataLength;
58   fPatchBusId    = pbush.fPatchBusId;
59   fTrWord        = pbush.fTrWord;
60 }
61
62 //___________________________________________
63 AliPMDPatchBusHeader&
64 AliPMDPatchBusHeader::operator=(const AliPMDPatchBusHeader &pbush)
65 {
66   // 
67   // assignment operator
68   //
69   if (this == &pbush) return *this;
70
71   fTotalLength   = pbush.fTotalLength;
72   fRawDataLength = pbush.fRawDataLength;
73   fPatchBusId    = pbush.fPatchBusId;
74   fTrWord        = pbush.fTrWord;
75
76   return *this;
77 }
78 void AliPMDPatchBusHeader::SetHeader(Int_t *header)
79 {
80   fTotalLength   = header[0];
81   fRawDataLength = header[1];
82   fPatchBusId    = header[2];
83   fTrWord        = header[3];
84 }
85