]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPlaneType.h
- Reordering includes from most specific to more general ones
[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.6 2006/03/17 11:34:29 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 #include "AliLog.h"
17  
18 #include <TString.h>
19
20 enum AliMpPlaneType
21 {
22   kBendingPlane,    ///< bending plane
23   kNonBendingPlane  ///< non-bending plane
24 };
25
26 inline 
27 TString PlaneTypeName(AliMpPlaneType planeType)
28 {
29   switch ( planeType ) {
30     case kBendingPlane:    return "bp";  break;
31     case kNonBendingPlane: return "nbp"; break;
32   }
33   
34   // Cannot reach this line
35   AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
36   return "invalidPlane";
37 }       
38
39 #endif //ALI_MP_PLANE_TYPE_H