]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpPlaneType.cxx
Applying ManuMask in motif position test
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPlaneType.cxx
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 {
19   switch ( planeType ) {
20     case kBendingPlane:    return "bp";  break;
21     case kNonBendingPlane: return "nbp"; break;
22   }
23   
24   // Cannot reach this line
25   AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
26   return "invalidPlane";
27 }       
28
29 //_____________________________________________________________________________
30 AliMp::PlaneType AliMp::OtherPlaneType(PlaneType planeType)
31 {
32   switch ( planeType ) {
33     case kBendingPlane:    return kNonBendingPlane;  break;
34     case kNonBendingPlane: return kBendingPlane;     break;
35   }
36   
37   // Cannot reach this line
38   AliFatalGeneral("AliMpPlaneType.h", "Unknown plane type"); 
39   return kBendingPlane;
40 }