]>
Commit | Line | Data |
---|---|---|
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$ |
13985652 | 5 | // $MpId: AliMpPlaneType.h,v 1.8 2006/05/24 13:58:07 ivana Exp $ |
dee1d5f1 | 6 | |
7 | /// \ingroup basic | |
8 | /// \enum AliMpPlaneType | |
9 | /// Enumeration for refering to bending and non-bending planes. | |
10 | /// | |
13985652 | 11 | /// \author David Guez, Ivana Hrivnacova; IPN Orsay |
5f91c9e8 | 12 | |
13 | #ifndef ALI_MP_PLANE_TYPE_H | |
14 | #define ALI_MP_PLANE_TYPE_H | |
5c319d21 | 15 | |
5c319d21 | 16 | #include "AliLog.h" |
5f91c9e8 | 17 | |
2a7ea2e6 | 18 | #include <TString.h> |
19 | ||
5f91c9e8 | 20 | enum AliMpPlaneType |
21 | { | |
dee1d5f1 | 22 | kBendingPlane, ///< bending plane |
23 | kNonBendingPlane ///< non-bending plane | |
5f91c9e8 | 24 | }; |
25 | ||
d3a2ac14 | 26 | inline |
5c319d21 | 27 | TString 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 |