1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpPlaneType.h,v 1.8 2006/05/24 13:58:07 ivana Exp $
7 // \enum AliMpPlaneType
8 // Enumeration for refering to bending and non-bending planes.
10 // Author: David Guez, Ivana Hrivnacova; IPN Orsay
12 #include "AliMpPlaneType.h"
16 //_____________________________________________________________________________
17 TString AliMp::PlaneTypeName(PlaneType planeType)
19 /// Return plane type name for given plane type
21 switch ( planeType ) {
22 case kBendingPlane: return "bp"; break;
23 case kNonBendingPlane: return "nbp"; break;
26 // Cannot reach this line
27 AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type");
28 return "invalidPlane";
31 //_____________________________________________________________________________
32 AliMp::PlaneType AliMp::OtherPlaneType(PlaneType planeType)
34 /// Return the other plane type for a given plane type
36 switch ( planeType ) {
37 case kBendingPlane: return kNonBendingPlane; break;
38 case kNonBendingPlane: return kBendingPlane; break;
41 // Cannot reach this line
42 AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type");