]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpPlaneType.h
Work around for CINT bug in root 5.10/00, with gcc4.0.2
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPlaneType.h
index 5ad9bbfd52f1b2f8a77c63f818676624ed2b8250..e15aaa9bc1ff53151b7b6dd9c49f7a0f7d3ac171 100755 (executable)
@@ -2,7 +2,7 @@
  * See cxx source for full Copyright notice                               */
 
 // $Id$
-// $MpId: AliMpPlaneType.h,v 1.3 2005/08/26 15:43:36 ivana Exp $
+// $MpId: AliMpPlaneType.h,v 1.5 2006/01/11 10:06:32 ivana Exp $
 
 /// \ingroup basic
 /// \enum AliMpPlaneType
  
 #ifndef ALI_MP_PLANE_TYPE_H
 #define ALI_MP_PLANE_TYPE_H
+
+#include <TString.h>
+
+#include "AliLog.h"
  
 enum AliMpPlaneType
 {
@@ -19,4 +23,17 @@ enum AliMpPlaneType
   kNonBendingPlane  ///< non-bending plane
 };
 
+inline 
+TString PlaneTypeName(AliMpPlaneType planeType)
+{
+  switch ( planeType ) {
+    case kBendingPlane:    return "bp";  break;
+    case kNonBendingPlane: return "nbp"; break;
+  }
+  
+  // Cannot reach this line
+  AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
+  return "invalidPlane";
+}       
+
 #endif //ALI_MP_PLANE_TYPE_H