fix oadb for MC
[u/mrichter/AliRoot.git] / PMD / AliPMDBlockHeader.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 "AliPMDBlockHeader.h"
18
19
20
21ClassImp(AliPMDBlockHeader)
22
23
24const Int_t AliPMDBlockHeader::fgkHeaderLength = 8;
25
26//------------------------------------------------------------
27AliPMDBlockHeader::AliPMDBlockHeader()
28 : TObject(),
0a666212 29 fDataKey(0),
9f0d3dfb 30 fTotalLength(0),
31 fRawDataLength(0),
32 fDspId(0),
0a666212 33 fL0Trigger(0),
34 fMiniEventId(0),
35 fEventId1(0),
36 fEventId2(0)
9f0d3dfb 37{
38 //
39 // ctor
40 //
41
42}
43
44//___________________________________________
45AliPMDBlockHeader::~AliPMDBlockHeader()
46{
47 //
48 // dtor
49 //
50}
51
52//___________________________________________
a48edddd 53AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh):
54 TObject(),
0a666212 55 fDataKey(blockh.fDataKey),
a48edddd 56 fTotalLength(blockh.fTotalLength),
57 fRawDataLength(blockh.fRawDataLength),
58 fDspId(blockh.fDspId),
0a666212 59 fL0Trigger(blockh.fL0Trigger),
60 fMiniEventId(blockh.fMiniEventId),
61 fEventId1(blockh.fEventId1),
62 fEventId2(blockh.fEventId2)
9f0d3dfb 63{
64 //
65 // copy ctor
66 //
9f0d3dfb 67}
68
69//___________________________________________
70AliPMDBlockHeader&
71AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh)
72{
73 //
74 // assignment operator
75 //
a48edddd 76 if (this != &blockh)
77 {
0a666212 78 fDataKey = blockh.fDataKey;
a48edddd 79 fTotalLength = blockh.fTotalLength;
80 fRawDataLength = blockh.fRawDataLength;
81 fDspId = blockh.fDspId;
0a666212 82 fL0Trigger = blockh.fL0Trigger;
83 fMiniEventId = blockh.fMiniEventId;
84 fEventId1 = blockh.fEventId1;
85 fEventId2 = blockh.fEventId2;
a48edddd 86 }
9f0d3dfb 87 return *this;
88}
89void AliPMDBlockHeader::SetHeader(Int_t *header)
90{
0a666212 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];
9f0d3dfb 99}
100