1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpCathodType.h,v 1.8 2006/05/24 13:58:07 ivana Exp $
8 /// \enum AliMpCathodType
9 /// Enumeration for refering to cath0 and cath1.
11 /// \author Ivana Hrivnacova; IPN Orsay
13 #include "AliMpCathodType.h"
17 //_____________________________________________________________________________
18 AliMp::CathodType AliMp::GetCathodType(Int_t cathodNumber)
20 switch ( cathodNumber ) {
21 case kCath0: return kCath0; break;
22 case kCath1: return kCath1; break;
24 // Should reach this line
25 AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number");
29 // Should reach this line
30 AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number");
34 //_____________________________________________________________________________
35 TString AliMp::CathodTypeName(AliMp::CathodType cathodType)
37 switch ( cathodType ) {
38 case kCath0: return "cath0"; break;
39 case kCath1: return "cath1"; break;
42 // Cannot reach this line
43 AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type");
44 return "invalidCathod";
47 //_____________________________________________________________________________
48 AliMp::CathodType AliMp::OtherCathodType(AliMp::CathodType cathodType)
50 switch ( cathodType ) {
51 case kCath0: return kCath1; break;
52 case kCath1: return kCath0; break;
55 // Cannot reach this line
56 AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type");