]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawEquipmentHeader.cxx
Minor bugfix
[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
30
31//______________________________________________________________________________
32void AliRawEquipmentHeader::Swap()
33{
34 // Swap equipment header data. There is no way to see if the data
35 // has already been swapped. This method is only called when the
36 // header is read from the DATE event builder (GDC).
37
38 fSize = net2host(fSize);
39 fEquipmentType = net2host(fEquipmentType);
40 fEquipmentID = net2host(fEquipmentID);
41 fBasicElementSizeType = net2host(fBasicElementSizeType);
42 for (int i = 0; i < kAttributeWords; i++)
43 fTypeAttribute[i] = net2host(fTypeAttribute[i]);
44}