]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawEquipmentHeader.cxx
Fixing the correct syntax for AliEn spooler
[u/mrichter/AliRoot.git] / RAW / AliRawEquipmentHeader.cxx
CommitLineData
a197a4ce 1// @(#)alimdc:$Name$:$Id$
2// Author: Fons Rademakers 26/11/99
3
4/**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
6 * *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
9 * *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
18
19//////////////////////////////////////////////////////////////////////////
20// //
21// AliRawEquipmentHeader //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "AliRawEquipmentHeader.h"
26
27
28ClassImp(AliRawEquipmentHeader)
29
c53ff744 30//______________________________________________________________________________
31AliRawEquipmentHeader::AliRawEquipmentHeader():
32 fSize(0),
33 fEquipmentType(0),
34 fEquipmentID(0),
35 fBasicElementSizeType(0)
36{
37 // Default constructor
38 for(Int_t i = 0; i < kAttributeWords; i++)
39 fTypeAttribute[i] = 0;
40}
a197a4ce 41
42//______________________________________________________________________________
43void AliRawEquipmentHeader::Swap()
44{
45 // Swap equipment header data. There is no way to see if the data
46 // has already been swapped. This method is only called when the
47 // header is read from the DATE event builder (GDC).
48
49 fSize = net2host(fSize);
50 fEquipmentType = net2host(fEquipmentType);
51 fEquipmentID = net2host(fEquipmentID);
52 fBasicElementSizeType = net2host(fBasicElementSizeType);
53 for (int i = 0; i < kAttributeWords; i++)
54 fTypeAttribute[i] = net2host(fTypeAttribute[i]);
55}
6bc85955 56
57//______________________________________________________________________________
58void AliRawEquipmentHeader::Reset()
59{
60 // Reset the contents of the equipment
61 // header data
62 fSize = fEquipmentType = fEquipmentID = fBasicElementSizeType = 0;
63
64 for(Int_t i = 0; i < kAttributeWords; i++)
65 fTypeAttribute[i] = 0;
66}