LCOV - code coverage report
Current view: top level - MUON/MUONmapping - AliMpCathodType.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 18 22.2 %
Date: 2016-06-14 17:26:59 Functions: 1 3 33.3 %

          Line data    Source code
       1             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       2             :  * See cxx source for full Copyright notice                               */
       3             : 
       4             : // $Id$
       5             : // $MpId: AliMpCathodType.h,v 1.8 2006/05/24 13:58:07 ivana Exp $
       6             : 
       7             : //-----------------------------------------------------------------------------
       8             : // \ingroup basic
       9             : // \enum AliMpCathodType
      10             : // Enumeration for refering to cath0 and cath1.
      11             : //
      12             : // \author Ivana Hrivnacova; IPN Orsay
      13             : //-----------------------------------------------------------------------------
      14             :  
      15             : #include "AliMpCathodType.h"
      16             : 
      17             : #include "AliLog.h"
      18             : 
      19             : //_____________________________________________________________________________
      20             : AliMp::CathodType AliMp::GetCathodType(Int_t cathodNumber)
      21             : {
      22             : /// Return cathod type for a given cathod number of Int_t type
      23             : 
      24      467806 :   switch ( cathodNumber ) {
      25      149387 :     case kCath0:  return kCath0;  break;
      26       84516 :     case kCath1:  return kCath1;  break;
      27             :     default:  
      28             :       // Should reach this line
      29           0 :       AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number"); 
      30           0 :       return kCath0;
      31             :   }
      32             :   
      33             :   // Should reach this line
      34             :   AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number"); 
      35             :   return kCath0;
      36      233903 : }       
      37             : 
      38             : //_____________________________________________________________________________
      39             : TString AliMp::CathodTypeName(AliMp::CathodType cathodType)
      40             : {
      41             : /// Return cathod type name for a given cathod type
      42             : 
      43           0 :   switch ( cathodType ) {
      44           0 :     case kCath0:  return "cath0";  break;
      45           0 :     case kCath1:  return "cath1"; break;
      46             :   }
      47             :   
      48             :   // Cannot reach this line
      49           0 :   AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type"); 
      50           0 :   return "invalidCathod";
      51           0 : }       
      52             : 
      53             : //_____________________________________________________________________________
      54             : AliMp::CathodType AliMp::OtherCathodType(AliMp::CathodType cathodType)
      55             : {
      56             : /// Return the other cathod type for a given cathod type
      57             : 
      58           0 :   switch ( cathodType ) {
      59           0 :     case kCath0: return kCath1;  break;
      60           0 :     case kCath1: return kCath0;  break;
      61             :   }
      62             :   
      63             :   // Cannot reach this line
      64           0 :   AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type"); 
      65           0 :   return kCath0;
      66           0 : }       

Generated by: LCOV version 1.11