]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONmapping/AliMpStation12Type.cxx
MUON + CheckCompiler
[u/mrichter/AliRoot.git] / MUON / MUONmapping / AliMpStation12Type.cxx
diff --git a/MUON/MUONmapping/AliMpStation12Type.cxx b/MUON/MUONmapping/AliMpStation12Type.cxx
new file mode 100644 (file)
index 0000000..19ee3e0
--- /dev/null
@@ -0,0 +1,31 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+// $Id$
+
+//-----------------------------------------------------------------------------
+// Enum AliMq::Station12Type
+// Enumeration for refering to a MUON station12 type.
+//
+// Author: Ivana Hrivnacova; IPN Orsay
+//-----------------------------------------------------------------------------
+#include "AliMpStation12Type.h"
+
+#include "AliLog.h" 
+
+//_____________________________________________________________________________
+TString AliMq::Station12TypeName(AliMq::Station12Type station12Type)
+{
+/// Return the station12 name for given station12 type
+
+  switch ( station12Type ) {
+    case kStation1:         return "st1";     break;
+    case kStation2:         return "st2";     break;
+    case kNotSt12:          return "";        break;
+  }
+  
+  // Cannot reach this line
+  AliFatalGeneral("AliMpStation12Type.h", "Unknown sector station type"); 
+  return "invalidStation12";
+}