1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 #include "AliPMDBlockHeader.h"
21 ClassImp(AliPMDBlockHeader)
24 const Int_t AliPMDBlockHeader::fgkHeaderLength = 8;
26 //------------------------------------------------------------
27 AliPMDBlockHeader::AliPMDBlockHeader()
44 //___________________________________________
45 AliPMDBlockHeader::~AliPMDBlockHeader()
52 //___________________________________________
53 AliPMDBlockHeader::AliPMDBlockHeader(const AliPMDBlockHeader & blockh):
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)
69 //___________________________________________
71 AliPMDBlockHeader::operator=(const AliPMDBlockHeader &blockh)
74 // assignment operator
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;
89 void AliPMDBlockHeader::SetHeader(Int_t *header)
92 fTotalLength = header[1];
93 fRawDataLength = header[2];
95 fL0Trigger = header[4];
96 fMiniEventId = header[5];
97 fEventId1 = header[6];
98 fEventId2 = header[7];