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 **************************************************************************/
19 //-----------------------------------------------------------------------------
20 /// \class AliMUONRawStream
21 /// This base class to MUON raw stream
24 /// \author Christian Finck
25 //-----------------------------------------------------------------------------
27 #include "AliMUONRawStream.h"
29 #include "AliRawReader.h"
33 ClassImp(AliMUONRawStream)
36 //___________________________________________
37 AliMUONRawStream::AliMUONRawStream()
40 fEnableErrorLogger(kFALSE)
43 /// Default ctor for monitoring purposes
49 //_________________________________________________________________
50 AliMUONRawStream::AliMUONRawStream(AliRawReader* rawReader)
52 fRawReader(rawReader),
53 fEnableErrorLogger(kFALSE)
56 /// ctor with AliRawReader as argument
57 /// for reconstruction purpose
63 //___________________________________
64 AliMUONRawStream::~AliMUONRawStream()
71 //_________________________________________________________________
72 void AliMUONRawStream::Swap(UInt_t* buffer, Int_t size) const
74 /// swap from little to big endian
77 word = (RawWord *) buffer;
79 for (int i = 0 ; i < size; i++) {
80 temp = *(((RawWord*)buffer)+i);