LCOV - code coverage report
Current view: top level - MUON/MUONmapping - AliMpPlaneType.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 12 66.7 %
Date: 2016-06-14 17:26:59 Functions: 2 2 100.0 %

          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: AliMpPlaneType.h,v 1.8 2006/05/24 13:58:07 ivana Exp $
       6             : 
       7             : // \enum AliMpPlaneType
       8             : // Enumeration for refering to bending and non-bending planes.
       9             : //
      10             : // Author: David Guez, Ivana Hrivnacova; IPN Orsay
      11             :  
      12             : #include "AliMpPlaneType.h"
      13             : 
      14             : #include "AliLog.h" 
      15             :  
      16             : //_____________________________________________________________________________
      17             : TString AliMp::PlaneTypeName(PlaneType planeType)
      18             : {
      19             : /// Return plane type name for given plane type
      20             : 
      21      546588 :   switch ( planeType ) {
      22      185600 :     case kBendingPlane:    return "bp";  break;
      23       87694 :     case kNonBendingPlane: return "nbp"; break;
      24             :   }
      25             :   
      26             :   // Cannot reach this line
      27           0 :   AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
      28           0 :   return "invalidPlane";
      29      273294 : }       
      30             : 
      31             : //_____________________________________________________________________________
      32             : AliMp::PlaneType AliMp::OtherPlaneType(PlaneType planeType)
      33             : {
      34             : /// Return the other plane type for a given plane type
      35             : 
      36      174614 :   switch ( planeType ) {
      37       84232 :     case kBendingPlane:    return kNonBendingPlane;  break;
      38        3075 :     case kNonBendingPlane: return kBendingPlane;     break;
      39             :   }
      40             :   
      41             :   // Cannot reach this line
      42           0 :   AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
      43           0 :   return kBendingPlane;
      44       87307 : }       

Generated by: LCOV version 1.11