]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpLocalBoard.cxx
- Use dedicated splines for MC periods for 2012 pp (LHC14e2*)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpLocalBoard.cxx
index eed7177e3cceba2cc7bf7e971cd22eefbf4b9c39..0622e24ecb8c635abaf484c4c6616bda42a4d609 100644 (file)
 
 #include "AliMpLocalBoard.h"
 #include "AliMpConstants.h"
-#include "AliMpIntPair.h"
+#include "AliMpEncodePair.h"
 
 #include "AliLog.h"
 
 #include <TString.h>
 #include <Riostream.h>
 
+using std::endl;
 /// \cond CLASSIMP
 ClassImp(AliMpLocalBoard)
 /// \endcond
@@ -173,11 +174,11 @@ Int_t  AliMpLocalBoard::GetSwitch(Int_t index) const
        AliWarning("Switch index too large");
         return -1;
     }
-    return  (fSwitch >> 9-index) & 0x1;
+    return  (fSwitch >> (9-index)) & 0x1;
 }
 
 //______________________________________________________________________________
-AliMpIntPair AliMpLocalBoard::GetPosition() const
+MpPair_t AliMpLocalBoard::GetPosition() const
 {
 /// gives position of the local board in (line, col)
 
@@ -185,6 +186,6 @@ AliMpIntPair AliMpLocalBoard::GetPosition() const
     Int_t iLine = boardName[4] - '0';
     Int_t iCol = boardName[2] - '0';
 
-    return (AliMpIntPair(iLine, iCol));
+    return AliMp::Pair(iLine, iCol);
 }