]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPlaneType.h
In PlaneTypeName()- return a value also after switch
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPlaneType.h
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.4 2005/10/28 15:03:46 ivana Exp $
6
7 /// \ingroup basic
8 /// \enum AliMpPlaneType
9 /// Enumeration for refering to bending and non-bending planes.
10 ///
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
12  
13 #ifndef ALI_MP_PLANE_TYPE_H
14 #define ALI_MP_PLANE_TYPE_H
15  
16 enum AliMpPlaneType
17 {
18   kBendingPlane,    ///< bending plane
19   kNonBendingPlane  ///< non-bending plane
20 };
21
22 inline 
23 const char* PlaneTypeName(AliMpPlaneType planeType)
24 {
25   switch ( planeType ) {
26     case kBendingPlane:
27       return "BendingPlane";
28       break;
29     case kNonBendingPlane:
30       return "NonBendingPlane";
31       break;
32   }
33   return "invalidPlane";
34 }       
35
36 #endif //ALI_MP_PLANE_TYPE_H