]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix global mapping
authorguernane <guernane@lpsc.in2p3.fr>
Wed, 25 Feb 2015 18:28:10 +0000 (19:28 +0100)
committerguernane <guernane@lpsc.in2p3.fr>
Wed, 25 Feb 2015 18:28:10 +0000 (19:28 +0100)
EMCAL/EMCALUtils/AliEMCALTriggerMappingV1.cxx

index 37eb12194eccb0144faa7ecb8a3ac013089af141..4760b1391015d61fc1e2a17b27650a4a6cc3b13d 100755 (executable)
@@ -166,10 +166,14 @@ Bool_t AliEMCALTriggerMappingV1::GetAbsFastORIndexFromPositionInEMCAL(const Int_
     AliError(Form("Out of range! iEta: %2d iPhi: %2d", iEta, iPhi));
     return kFALSE;
   }
-  
-  id = iEta * 48 + iPhi;
-  
-  return kTRUE;
+
+  Int_t s = int(iEta / 24) + 2 * int(iPhi / 4);
+  Int_t x = iEta % 24;
+  Int_t y = iPhi % 4;
+  if (GetAbsFastORIndexFromPositionInSM(s, x, y, id)) {
+      return kTRUE;
+  }
+  return kFALSE;
 }
 
 //________________________________________________________________________________________________