]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGlobalCrateConfig.cxx
updated vertex selection
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalCrateConfig.cxx
index a2f529c952d121acc5b902611d9a233edd066b8e..a473fa278d3bc26754dd0fa2ab099b478c43d6f6 100644 (file)
@@ -121,8 +121,8 @@ Int_t AliMUONGlobalCrateConfig::ReadData(const TString& fileName)
     // enable
     in.getline(line, 255);
     tmp = AliMpHelper::Normalize(line);
-    UChar_t en = 0;
-    sscanf(tmp.Data(), "%hhx", &en);
+    UInt_t en = 0;
+    sscanf(tmp.Data(), "%x", &en);
     SetGlobalCrateEnable(en);
 
     in.getline(line, 255);
@@ -351,7 +351,7 @@ TString AliMUONGlobalCrateConfig::GetJtagCrateName(Int_t jtagLine, Int_t index)
 { 
   /// Get the crate name for a given line and a given index 
   if (jtagLine > AliMpConstants::LocalBoardNofChannels() || index > AliMpConstants::LocalBoardNofChannels())
-    return 0x0;
+    return "";
   else                                       
     return fJtagCrateName[jtagLine*fgkJtagNofLines + index];
 }