]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRawStream.cxx
In case of AOD analysis where cell time is not available, assign to the cell the...
[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);
9ee1d6ff 81 word->fB1 = temp.fB4;
82 word->fB2 = temp.fB3;
83 word->fB3 = temp.fB2;
84 word->fB4 = temp.fB1;
485f017e 85 word++;
86 }
87
88}