LCOV - code coverage report
Current view: top level - MUON/MUONraw - AliMUONRawStream.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 22 31.8 %
Date: 2016-06-14 17:26:59 Functions: 3 7 42.9 %

          Line data    Source code
       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          18 : ClassImp(AliMUONRawStream)
      34             : /// \endcond
      35             : 
      36             : //___________________________________________
      37             : AliMUONRawStream::AliMUONRawStream()
      38           9 :  : TObject(),
      39           9 :    fRawReader(),
      40           9 :    fEnableErrorLogger(kFALSE)
      41          27 : {
      42             :   ///
      43             :   /// Default ctor for monitoring purposes
      44             :   ///
      45             :   
      46             :   
      47           9 : }
      48             : 
      49             : //_________________________________________________________________
      50             : AliMUONRawStream::AliMUONRawStream(AliRawReader* rawReader)
      51           0 : :  TObject(),
      52           0 :    fRawReader(rawReader),
      53           0 :    fEnableErrorLogger(kFALSE)
      54           0 : {
      55             :   ///
      56             :   /// ctor with AliRawReader as argument
      57             :   /// for reconstruction purpose
      58             :   ///
      59             :   
      60             :   
      61           0 : }
      62             : 
      63             : //___________________________________
      64             : AliMUONRawStream::~AliMUONRawStream()
      65           0 : {
      66             :   ///
      67             :   /// clean up
      68             :   ///
      69          10 : }
      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           0 :     word = (RawWord *) buffer;
      78             : 
      79           0 :     for (int i = 0 ; i < size; i++) {
      80           0 :       temp = *(((RawWord*)buffer)+i);
      81           0 :       word->fB1 = temp.fB4;
      82           0 :       word->fB2 = temp.fB3;
      83           0 :       word->fB3 = temp.fB2;
      84           0 :       word->fB4 = temp.fB1;
      85           0 :       word++;
      86             :     }
      87             : 
      88           0 : }                

Generated by: LCOV version 1.11