]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONRawStream.cxx
#102990: Patch for compilation on Mavericks
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStream.cxx
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
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 **************************************************************************/
15
16 /* $Id$ */
17
18
19 //-----------------------------------------------------------------------------
20 /// \class AliMUONRawStream
21 /// This base class to MUON raw stream
22 ///
23 ///
24 /// \author Christian Finck
25 //-----------------------------------------------------------------------------
26
27 #include "AliMUONRawStream.h"
28
29 #include "AliRawReader.h"
30
31
32 /// \cond CLASSIMP
33 ClassImp(AliMUONRawStream)
34 /// \endcond
35
36 //___________________________________________
37 AliMUONRawStream::AliMUONRawStream()
38  : TObject(),
39    fRawReader(),
40    fEnableErrorLogger(kFALSE)
41 {
42   ///
43   /// Default ctor for monitoring purposes
44   ///
45   
46   
47 }
48
49 //_________________________________________________________________
50 AliMUONRawStream::AliMUONRawStream(AliRawReader* rawReader)
51 :  TObject(),
52    fRawReader(rawReader),
53    fEnableErrorLogger(kFALSE)
54 {
55   ///
56   /// ctor with AliRawReader as argument
57   /// for reconstruction purpose
58   ///
59   
60   
61 }
62
63 //___________________________________
64 AliMUONRawStream::~AliMUONRawStream()
65 {
66   ///
67   /// clean up
68   ///
69 }
70
71 //_________________________________________________________________
72 void AliMUONRawStream::Swap(UInt_t* buffer, Int_t size) const
73 {
74   /// swap from little to big endian
75  
76     RawWord *word, temp;
77     word = (RawWord *) buffer;
78
79     for (int i = 0 ; i < size; i++) {
80       temp = *(((RawWord*)buffer)+i);
81       word->fB1 = temp.fB4;
82       word->fB2 = temp.fB3;
83       word->fB3 = temp.fB2;
84       word->fB4 = temp.fB1;
85       word++;
86     }
87
88 }