]>
Commit | Line | Data |
---|---|---|
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 | ||
21 | ClassImp(AliPMDBlockHeader) | |
22 | ||
23 | ||
24 | const Int_t AliPMDBlockHeader::fgkHeaderLength = 8; | |
25 | ||
26 | //------------------------------------------------------------ | |
27 | AliPMDBlockHeader::AliPMDBlockHeader() | |
28 | : TObject(), | |
29 | fDataKey(0), | |
30 | fTotalLength(0), | |
31 | fRawDataLength(0), | |
32 | fDspId(0), | |
33 | fL0Trigger(0), | |
34 | fMiniEventId(0), | |
35 | fEventId1(0), | |
36 | fEventId2(0) | |
37 | { | |
38 | // | |
39 | // ctor | |
40 | // | |
41 | ||
42 | } | |
43 | ||
44 | //___________________________________________ | |
45 | AliPMDBlockHeader::~AliPMDBlockHeader() | |
46 | { | |
47 | // | |
48 | // dtor | |
49 | // | |
50 | } | |
51 | ||
52 | //___________________________________________ | |
53 | AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh): | |
54 | TObject(), | |
55 | fDataKey(blockh.fDataKey), | |
56 | fTotalLength(blockh.fTotalLength), | |
57 | fRawDataLength(blockh.fRawDataLength), | |
58 | fDspId(blockh.fDspId), | |
59 | fL0Trigger(blockh.fL0Trigger), | |
60 | fMiniEventId(blockh.fMiniEventId), | |
61 | fEventId1(blockh.fEventId1), | |
62 | fEventId2(blockh.fEventId2) | |
63 | { | |
64 | // | |
65 | // copy ctor | |
66 | // | |
67 | } | |
68 | ||
69 | //___________________________________________ | |
70 | AliPMDBlockHeader& | |
71 | AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh) | |
72 | { | |
73 | // | |
74 | // assignment operator | |
75 | // | |
76 | if (this != &blockh) | |
77 | { | |
78 | fDataKey = blockh.fDataKey; | |
79 | fTotalLength = blockh.fTotalLength; | |
80 | fRawDataLength = blockh.fRawDataLength; | |
81 | fDspId = blockh.fDspId; | |
82 | fL0Trigger = blockh.fL0Trigger; | |
83 | fMiniEventId = blockh.fMiniEventId; | |
84 | fEventId1 = blockh.fEventId1; | |
85 | fEventId2 = blockh.fEventId2; | |
86 | } | |
87 | return *this; | |
88 | } | |
89 | void AliPMDBlockHeader::SetHeader(Int_t *header) | |
90 | { | |
91 | fDataKey = header[0]; | |
92 | fTotalLength = header[1]; | |
93 | fRawDataLength = header[2]; | |
94 | fDspId = header[3]; | |
95 | fL0Trigger = header[4]; | |
96 | fMiniEventId = header[5]; | |
97 | fEventId1 = header[6]; | |
98 | fEventId2 = header[7]; | |
99 | } | |
100 |