]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpStationType.h
ccc4019cd83406a3c59b763fcbd47177063b73ae
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpStationType.h
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: AliMpStationType.h,v 1.7 2006/03/17 11:34:29 ivana Exp $
6
7 /// \ingroup basic
8 /// \enum AliMpStationType
9 /// Enumeration for refering to a MUON station
10 ///
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
12  
13 #ifndef ALI_MP_STATION_TYPE_H
14 #define ALI_MP_STATION_TYPE_H
15
16 #include "AliLog.h"
17  
18 #include <TString.h>
19
20 enum AliMpStationType
21 {
22   kStation1,           ///< station 1 (quadrants)
23   kStation2,           ///< station 2 (quadrants)
24   kStation345,         ///< station 3,4,5 (slats)
25   kStationTrigger      ///< trigger stations (slats)
26 };
27
28 inline 
29 TString StationTypeName(AliMpStationType stationType)
30 {
31   switch ( stationType ) {
32     case kStation1:       return "st1";     break;
33     case kStation2:       return "st2";     break;
34     case kStation345:     return "slat";    break;
35     case kStationTrigger: return "trigger"; break;
36   }
37   
38   // Cannot reach this line
39   AliFatalGeneral("AliMpStationType.h", "Unknown station type"); 
40   return "invalidStation";
41 }
42
43 #endif //ALI_MP_STATION_TYPE_H