1 // @(#)alimdc:$Name$:$Id$
2 // Author: Fons Rademakers 26/11/99
4 /**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 //////////////////////////////////////////////////////////////////////////
21 // AliRawEquipmentHeader //
23 //////////////////////////////////////////////////////////////////////////
25 #include "AliRawEquipmentHeader.h"
28 ClassImp(AliRawEquipmentHeader)
31 //______________________________________________________________________________
32 void AliRawEquipmentHeader::Swap()
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).
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]);