]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDDspHeader.cxx
memory leak fixed
[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 = 10;
25 const UInt_t  AliPMDDspHeader::fgkDefaultPaddingWord = 0xFFFFFFFF;
26
27 //------------------------------------------------------------
28 AliPMDDspHeader::AliPMDDspHeader() :
29   TObject(),
30   fDataKey(0),
31   fTotalLength(0),
32   fRawDataLength(0),
33   fDspId(0),
34   fBlkL1ATrigger(0),
35   fMiniEventId(0),
36   fL1ATrigger(0),
37   fL1RTrigger(0),
38   fPaddingWord(0),
39   fErrorWord(0)
40 {
41   //
42   // ctor
43   //
44
45 }
46
47 //___________________________________________
48 AliPMDDspHeader::~AliPMDDspHeader()
49 {
50   // 
51   // dtor
52   //
53 }
54
55 //___________________________________________
56 AliPMDDspHeader::AliPMDDspHeader(const AliPMDDspHeader & dsph):
57   TObject(),
58   fDataKey(dsph.fDataKey),
59   fTotalLength(dsph.fTotalLength),
60   fRawDataLength(dsph.fRawDataLength),
61   fDspId(dsph.fDspId),
62   fBlkL1ATrigger(dsph.fBlkL1ATrigger),
63   fMiniEventId(dsph.fMiniEventId),
64   fL1ATrigger(dsph.fL1ATrigger),
65   fL1RTrigger(dsph.fL1RTrigger),
66   fPaddingWord(dsph.fPaddingWord),
67   fErrorWord(dsph.fErrorWord)
68 {
69   //
70   // copy ctor
71   //
72 }
73
74 //___________________________________________
75 AliPMDDspHeader& AliPMDDspHeader::operator=(const AliPMDDspHeader &dsph)
76 {
77   // 
78   // assignment operator
79   //
80   if (this != &dsph)
81     {
82       fDataKey       = dsph.fDataKey;
83       fTotalLength   = dsph.fTotalLength;
84       fRawDataLength = dsph.fRawDataLength;
85       fDspId         = dsph.fDspId;
86       fBlkL1ATrigger = dsph.fBlkL1ATrigger;
87       fMiniEventId   = dsph.fMiniEventId;
88       fL1ATrigger    = dsph.fL1ATrigger;
89       fL1RTrigger    = dsph.fL1RTrigger;
90       fPaddingWord   = dsph.fPaddingWord;
91       fErrorWord     = dsph.fErrorWord;
92     }
93   return *this;
94 }
95 void AliPMDDspHeader::SetHeader(Int_t *header)
96 {
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];
107 }
108