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 $
7 //-----------------------------------------------------------------------------
9 // \enum AliMpCathodType
10 // Enumeration for refering to cath0 and cath1.
12 // \author Ivana Hrivnacova; IPN Orsay
13 //-----------------------------------------------------------------------------
15 #include "AliMpCathodType.h"
19 //_____________________________________________________________________________
20 AliMp::CathodType AliMp::GetCathodType(Int_t cathodNumber)
22 /// Return cathod type for a given cathod number of Int_t type
24 switch ( cathodNumber ) {
25 case kCath0: return kCath0; break;
26 case kCath1: return kCath1; break;
28 // Should reach this line
29 AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number");
33 // Should reach this line
34 AliErrorGeneral("AliMpCathodType.h", "Wrong cathod number");
38 //_____________________________________________________________________________
39 TString AliMp::CathodTypeName(AliMp::CathodType cathodType)
41 /// Return cathod type name for a given cathod type
43 switch ( cathodType ) {
44 case kCath0: return "cath0"; break;
45 case kCath1: return "cath1"; break;
48 // Cannot reach this line
49 AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type");
50 return "invalidCathod";
53 //_____________________________________________________________________________
54 AliMp::CathodType AliMp::OtherCathodType(AliMp::CathodType cathodType)
56 /// Return the other cathod type for a given cathod type
58 switch ( cathodType ) {
59 case kCath0: return kCath1; break;
60 case kCath1: return kCath0; break;
63 // Cannot reach this line
64 AliFatalGeneral("AliMpCathodType.h", "Unknown cathod type");