]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRawStream.cxx
In MUONRecoCheck:
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStream.cxx
CommitLineData
485f017e 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
bf4d93eb 16/* $Id$ */
485f017e 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
33ClassImp(AliMUONRawStream)
34/// \endcond
35
36//___________________________________________
37AliMUONRawStream::AliMUONRawStream()
38 : TObject(),
39 fRawReader(),
40 fEnableErrorLogger(kFALSE)
41{
42 ///
43 /// Default ctor for monitoring purposes
44 ///
45
46
47}
48
49//_________________________________________________________________
50AliMUONRawStream::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//___________________________________
64AliMUONRawStream::~AliMUONRawStream()
65{
66 ///
67 /// clean up
68 ///
69}
70
71//_________________________________________________________________
72void 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->b1 = temp.b4;
82 word->b2 = temp.b3;
83 word->b3 = temp.b2;
84 word->b4 = temp.b1;
85 word++;
86 }
87
88}