]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Method GetMask simplified (thanks to Laurent)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2007 16:02:28 +0000 (16:02 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2007 16:02:28 +0000 (16:02 +0000)
MUON/AliMUONTriggerLut.cxx

index de5bd58a85d4e60b8be9c2319fcb20fbcb786ebe..b5c749c7d22e71ddcfae665df51fdc85be510917 100644 (file)
@@ -162,14 +162,7 @@ Int_t AliMUONTriggerLut::GetMask(Int_t ystrip)
 {
 /// Return the mask corresponding to ystrip
 
-  Int_t tabMask[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
-  Int_t mask=0;
-  tabMask[ystrip]=1;
-  for (Int_t i=0; i<16; i++) 
-  {          
-    mask += tabMask[i]<<i; 
-  }
-  return mask;
+    return (Int_t)(1<<ystrip);
 }