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