AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpPlaneType.cxx
Go to the documentation of this file.
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.8 2006/05/24 13:58:07 ivana Exp $
6 
7 // \enum AliMpPlaneType
8 // Enumeration for refering to bending and non-bending planes.
9 //
10 // Author: David Guez, Ivana Hrivnacova; IPN Orsay
11 
12 #include "AliMpPlaneType.h"
13 
14 #include "AliLog.h"
15 
16 //_____________________________________________________________________________
17 TString AliMp::PlaneTypeName(PlaneType planeType)
18 {
20 
21  switch ( planeType ) {
22  case kBendingPlane: return "bp"; break;
23  case kNonBendingPlane: return "nbp"; break;
24  }
25 
26  // Cannot reach this line
27  AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type");
28  return "invalidPlane";
29 }
30 
31 //_____________________________________________________________________________
33 {
35 
36  switch ( planeType ) {
37  case kBendingPlane: return kNonBendingPlane; break;
38  case kNonBendingPlane: return kBendingPlane; break;
39  }
40 
41  // Cannot reach this line
42  AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type");
43  return kBendingPlane;
44 }
AliMp::PlaneType OtherPlaneType(AliMp::PlaneType planeType)
Return the other plane type.
non-bending plane
TString PlaneTypeName(AliMp::PlaneType planeType)
Return name for given planeType.
bending plane