Replacement of AliMpIntPair object with algoritmic
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPlaneType.cxx
CommitLineData
6e045b40 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//_____________________________________________________________________________
17TString AliMp::PlaneTypeName(PlaneType planeType)
18{
7d5d0cc5 19/// Return plane type name for given plane type
20
6e045b40 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//_____________________________________________________________________________
32AliMp::PlaneType AliMp::OtherPlaneType(PlaneType planeType)
33{
7d5d0cc5 34/// Return the other plane type for a given plane type
35
6e045b40 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}