]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDBlockHeader.cxx
single cell cluster is fixed
[u/mrichter/AliRoot.git] / PMD / AliPMDBlockHeader.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 "AliPMDBlockHeader.h"
18
19
20
21ClassImp(AliPMDBlockHeader)
22
23
24const Int_t AliPMDBlockHeader::fgkHeaderLength = 8;
25
26//------------------------------------------------------------
27AliPMDBlockHeader::AliPMDBlockHeader()
28 : TObject(),
29 fTotalLength(0),
30 fRawDataLength(0),
31 fDspId(0),
32 fTrWord1(0),
33 fTrWord2(0),
34 fTrWord3(0),
35 fTrWord4(0),
36 fPadWord(0)
37{
38 //
39 // ctor
40 //
41
42}
43
44//___________________________________________
45AliPMDBlockHeader::~AliPMDBlockHeader()
46{
47 //
48 // dtor
49 //
50}
51
52//___________________________________________
53AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh)
54 : TObject()
55{
56 //
57 // copy ctor
58 //
59
60 fTotalLength = blockh.fTotalLength;
61 fRawDataLength = blockh.fRawDataLength;
62 fDspId = blockh.fDspId;
63 fTrWord1 = blockh.fTrWord1;
64 fTrWord2 = blockh.fTrWord2;
65 fTrWord3 = blockh.fTrWord3;
66 fTrWord4 = blockh.fTrWord4;
67 fPadWord = blockh.fPadWord;
68}
69
70//___________________________________________
71AliPMDBlockHeader&
72AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh)
73{
74 //
75 // assignment operator
76 //
77 if (this == &blockh) return *this;
78
79 fTotalLength = blockh.fTotalLength;
80 fRawDataLength = blockh.fRawDataLength;
81 fDspId = blockh.fDspId;
82 fTrWord1 = blockh.fTrWord1;
83 fTrWord2 = blockh.fTrWord2;
84 fTrWord3 = blockh.fTrWord3;
85 fTrWord4 = blockh.fTrWord4;
86 fPadWord = blockh.fPadWord;
87
88 return *this;
89}
90void AliPMDBlockHeader::SetHeader(Int_t *header)
91{
92 fTotalLength = header[0];
93 fRawDataLength = header[1];
94 fDspId = header[2];
95 fTrWord1 = header[3];
96 fTrWord2 = header[4];
97 fTrWord3 = header[5];
98 fTrWord4 = header[6];
99 fPadWord = header[7];
100
101}
102