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)
30 //______________________________________________________________________________
31 AliRawEquipmentHeader::AliRawEquipmentHeader():
35 fBasicElementSizeType(0)
37 // Default constructor
38 for(Int_t i = 0; i < kAttributeWords; i++)
39 fTypeAttribute[i] = 0;
42 //______________________________________________________________________________
43 void AliRawEquipmentHeader::Swap()
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).
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]);
57 //______________________________________________________________________________
58 void AliRawEquipmentHeader::Reset()
60 // Reset the contents of the equipment
62 fSize = fEquipmentType = fEquipmentID = fBasicElementSizeType = 0;
64 for(Int_t i = 0; i < kAttributeWords; i++)
65 fTypeAttribute[i] = 0;