]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Taking into account the masked local boards in regional input (Christian)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Aug 2006 16:03:36 +0000 (16:03 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Aug 2006 16:03:36 +0000 (16:03 +0000)
MUON/AliMUONRawWriter.cxx

index c090c62e43b749bacafdcea25c7dbb8846544608..d8e98854ddf421b4bb4f85d725ea662cb97ed4be 100644 (file)
@@ -871,6 +871,7 @@ Int_t AliMUONRawWriter::WriteTriggerDDL()
 
       // 16 local card per regional board
       UShort_t localMask = 0x0;
+
       for (Int_t iLoc = 0; iLoc < 16; iLoc++) {
 
        // slot zero for Regional card
@@ -902,14 +903,12 @@ Int_t AliMUONRawWriter::WriteTriggerDDL()
              locCard = -1; 
            }
            // calculate regional input High and low Pt
-            regInpHpt |= (locDec >> 2) & 0x3;
-            regInpLpt |=  locDec       & 0x3;
-
-            if (iLoc < 15) { // shift not the last one
-              regInpLpt <<= 2;
-              regInpHpt <<= 2;
-            }
-
+           UInt_t tmp1 = (locDec >> 2) & 0x3;
+           UInt_t tmp2 =  locDec & 0x3;
+           
+           regInpHpt |= tmp1 << (30 - iLoc*2);
+           regInpLpt |= tmp2 << (30 - iLoc*2);
+          
            //packing word
            word = 0;
            AliBitPacking::PackWord((UInt_t)iLoc,word,19,22); //card id number in crate