]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDDspHeader.cxx
Coverity fixes (Ivana)
[u/mrichter/AliRoot.git] / PMD / AliPMDDspHeader.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 "AliPMDDspHeader.h"
18
19
20
21ClassImp(AliPMDDspHeader)
22
23
0a666212 24const Int_t AliPMDDspHeader::fgkHeaderLength = 10;
25const UInt_t AliPMDDspHeader::fgkDefaultPaddingWord = 0xFFFFFFFF;
9f0d3dfb 26
27//------------------------------------------------------------
0a666212 28AliPMDDspHeader::AliPMDDspHeader() :
a48edddd 29 TObject(),
0a666212 30 fDataKey(0),
a48edddd 31 fTotalLength(0),
32 fRawDataLength(0),
a48edddd 33 fDspId(0),
0a666212 34 fBlkL1ATrigger(0),
35 fMiniEventId(0),
36 fL1ATrigger(0),
37 fL1RTrigger(0),
38 fPaddingWord(0),
39 fErrorWord(0)
9f0d3dfb 40{
41 //
42 // ctor
43 //
44
45}
46
47//___________________________________________
48AliPMDDspHeader::~AliPMDDspHeader()
49{
50 //
51 // dtor
52 //
53}
54
55//___________________________________________
a48edddd 56AliPMDDspHeader::AliPMDDspHeader(const AliPMDDspHeader & dsph):
57 TObject(),
0a666212 58 fDataKey(dsph.fDataKey),
a48edddd 59 fTotalLength(dsph.fTotalLength),
60 fRawDataLength(dsph.fRawDataLength),
a48edddd 61 fDspId(dsph.fDspId),
0a666212 62 fBlkL1ATrigger(dsph.fBlkL1ATrigger),
63 fMiniEventId(dsph.fMiniEventId),
64 fL1ATrigger(dsph.fL1ATrigger),
65 fL1RTrigger(dsph.fL1RTrigger),
66 fPaddingWord(dsph.fPaddingWord),
67 fErrorWord(dsph.fErrorWord)
9f0d3dfb 68{
69 //
70 // copy ctor
71 //
9f0d3dfb 72}
73
74//___________________________________________
75AliPMDDspHeader& AliPMDDspHeader::operator=(const AliPMDDspHeader &dsph)
76{
77 //
78 // assignment operator
79 //
a48edddd 80 if (this != &dsph)
81 {
0a666212 82 fDataKey = dsph.fDataKey;
a48edddd 83 fTotalLength = dsph.fTotalLength;
84 fRawDataLength = dsph.fRawDataLength;
a48edddd 85 fDspId = dsph.fDspId;
0a666212 86 fBlkL1ATrigger = dsph.fBlkL1ATrigger;
87 fMiniEventId = dsph.fMiniEventId;
88 fL1ATrigger = dsph.fL1ATrigger;
89 fL1RTrigger = dsph.fL1RTrigger;
90 fPaddingWord = dsph.fPaddingWord;
91 fErrorWord = dsph.fErrorWord;
a48edddd 92 }
9f0d3dfb 93 return *this;
94}
95void AliPMDDspHeader::SetHeader(Int_t *header)
96{
0a666212 97 fDataKey = header[0];
98 fTotalLength = header[1];
99 fRawDataLength = header[2];
100 fDspId = header[3];
101 fBlkL1ATrigger = header[4];
102 fMiniEventId = header[5];
103 fL1ATrigger = header[6];
104 fL1RTrigger = header[7];
105 fPaddingWord = header[8];
106 fErrorWord = header[9];
9f0d3dfb 107}
108