]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpStationType.h
Commenting out the infamous speed eater = StdoutToAliDebug until a better solution...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpStationType.h
index e84a30436be197498aabc129d82024be3501727c..c6e15b6aaf691901925c89d848c3190b2695bded 100644 (file)
@@ -2,42 +2,31 @@
  * See cxx source for full Copyright notice                               */
 
 // $Id$
-// $MpId: AliMpStationType.h,v 1.8 2006/05/23 13:07:29 ivana Exp $
+// $MpId: AliMpStationType.h,v 1.9 2006/05/24 13:58:07 ivana Exp $
 
 /// \ingroup basic
 /// \enum AliMpStationType
 /// Enumeration for refering to a MUON station
 ///
-/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+/// \author David Guez, Ivana Hrivnacova; IPN Orsay
  
 #ifndef ALI_MP_STATION_TYPE_H
 #define ALI_MP_STATION_TYPE_H
 
-#include "AliLog.h"
 #include <TString.h>
 
-enum AliMpStationType
-{
-  kStation1,           ///< station 1 (quadrants)
-  kStation2,           ///< station 2 (quadrants)
-  kStation345,         ///< station 3,4,5 (slats)
-  kStationTrigger      ///< trigger stations (slats)
-};
+namespace AliMp {
+
+  enum StationType
+  {
+    kStation1,           ///< station 1 (quadrants)
+    kStation2,           ///< station 2 (quadrants)
+    kStation345,         ///< station 3,4,5 (slats)
+    kStationTrigger      ///< trigger stations (slats)
+  };
 
-inline 
-TString StationTypeName(AliMpStationType stationType)
-{
-  switch ( stationType ) {
-    case kStation1:       return "st1";     break;
-    case kStation2:       return "st2";     break;
-    case kStation345:     return "slat";    break;
-    case kStationTrigger: return "trigger"; break;
-  }
-  
-  // Cannot reach this line
-  AliFatalGeneral("AliMpStationType.h", "Unknown station type"); 
-  return "invalidStation";
+  /// Return name for given stationType
+  TString StationTypeName(AliMp::StationType stationType);
 }
 
 #endif //ALI_MP_STATION_TYPE_H