]> git.uio.no Git - u/mrichter/AliRoot.git/blame - 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
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
5c319d21 5// $MpId: AliMpPlaneType.h,v 1.5 2006/01/11 10:06:32 ivana Exp $
dee1d5f1 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
5f91c9e8 12
13#ifndef ALI_MP_PLANE_TYPE_H
14#define ALI_MP_PLANE_TYPE_H
5c319d21 15
16#include <TString.h>
17
18#include "AliLog.h"
5f91c9e8 19
20enum AliMpPlaneType
21{
dee1d5f1 22 kBendingPlane, ///< bending plane
23 kNonBendingPlane ///< non-bending plane
5f91c9e8 24};
25
d3a2ac14 26inline
5c319d21 27TString PlaneTypeName(AliMpPlaneType planeType)
d3a2ac14 28{
29 switch ( planeType ) {
5c319d21 30 case kBendingPlane: return "bp"; break;
31 case kNonBendingPlane: return "nbp"; break;
c0f453df 32 }
5c319d21 33
34 // Cannot reach this line
35 AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type");
c0f453df 36 return "invalidPlane";
d3a2ac14 37}
38
5f91c9e8 39#endif //ALI_MP_PLANE_TYPE_H