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 "AliPMDDspHeader.h"
21 ClassImp(AliPMDDspHeader)
24 const Int_t AliPMDDspHeader::fgkHeaderLength = 10;
25 const UInt_t AliPMDDspHeader::fgkDefaultPaddingWord = 0xFFFFFFFF;
27 //------------------------------------------------------------
28 AliPMDDspHeader::AliPMDDspHeader() :
47 //___________________________________________
48 AliPMDDspHeader::~AliPMDDspHeader()
55 //___________________________________________
56 AliPMDDspHeader::AliPMDDspHeader(const AliPMDDspHeader & dsph):
58 fDataKey(dsph.fDataKey),
59 fTotalLength(dsph.fTotalLength),
60 fRawDataLength(dsph.fRawDataLength),
62 fBlkL1ATrigger(dsph.fBlkL1ATrigger),
63 fMiniEventId(dsph.fMiniEventId),
64 fL1ATrigger(dsph.fL1ATrigger),
65 fL1RTrigger(dsph.fL1RTrigger),
66 fPaddingWord(dsph.fPaddingWord),
67 fErrorWord(dsph.fErrorWord)
74 //___________________________________________
75 AliPMDDspHeader& AliPMDDspHeader::operator=(const AliPMDDspHeader &dsph)
78 // assignment operator
82 fDataKey = dsph.fDataKey;
83 fTotalLength = dsph.fTotalLength;
84 fRawDataLength = dsph.fRawDataLength;
86 fBlkL1ATrigger = dsph.fBlkL1ATrigger;
87 fMiniEventId = dsph.fMiniEventId;
88 fL1ATrigger = dsph.fL1ATrigger;
89 fL1RTrigger = dsph.fL1RTrigger;
90 fPaddingWord = dsph.fPaddingWord;
91 fErrorWord = dsph.fErrorWord;
95 void AliPMDDspHeader::SetHeader(Int_t *header)
98 fTotalLength = header[1];
99 fRawDataLength = header[2];
101 fBlkL1ATrigger = header[4];
102 fMiniEventId = header[5];
103 fL1ATrigger = header[6];
104 fL1RTrigger = header[7];
105 fPaddingWord = header[8];
106 fErrorWord = header[9];