]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Get correct MCM numbering in GetMCMStatus
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Aug 2006 16:11:10 +0000 (16:11 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Aug 2006 16:11:10 +0000 (16:11 +0000)
TRD/AliTRDcalibDB.cxx

index 46de3e4b747ba20fd9d1544dfd48a3208d4c94ca..41aa7ae79fb2745653d8f10a1222a0a636dd36b2 100644 (file)
@@ -427,6 +427,8 @@ Char_t AliTRDcalibDB::GetMCMStatus(Int_t det, Int_t col, Int_t row)
   // Returns the status of the given MCM
   //
 
+  Int_t mcm = ((Int_t) col / 18);
+
   const AliTRDCalMCMStatus* cal = dynamic_cast<const AliTRDCalMCMStatus*> (GetCachedCDBObject(kIDMCMStatus));
   if (!cal)
     return -1;
@@ -435,7 +437,7 @@ Char_t AliTRDcalibDB::GetMCMStatus(Int_t det, Int_t col, Int_t row)
   if (!roc)
     return -1;
 
-  return roc->GetStatus(col, row);
+  return roc->GetStatus(mcm, row);
 }
 
 //_____________________________________________________________________________