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