]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZERORawStream.cxx
Adding the style for pictures
[u/mrichter/AliRoot.git] / VZERO / AliVZERORawStream.cxx
index bc1342ea344b979c422d592b3c93ecdf62ed1b0b..07d5d3f0490d0361df2a67b314fd96e82c599973 100644 (file)
@@ -138,8 +138,8 @@ Bool_t AliVZERORawStream::Next()
       for(Int_t iEvOfInt = 0; iEvOfInt < kNEvOfInt; iEvOfInt=iEvOfInt+2) {
         UShort_t data = GetNextShort();
         for(Int_t iChannel = iChannel_Offset; iChannel < iChannel_Offset+4; iChannel++) {          
-          fIsBB[iChannel][iEvOfInt] = (data >> 2*(iChannel-iChannel_Offset)) & 0x1;
-          fIsBG[iChannel][iEvOfInt] = (data >> 2*(iChannel-iChannel_Offset)+1) & 0x1; 
+          fIsBB[iChannel][iEvOfInt] = (data >>  2*(iChannel-iChannel_Offset)) & 0x1;
+          fIsBG[iChannel][iEvOfInt] = (data >> (2*(iChannel-iChannel_Offset)+1)) & 0x1; 
          if(iEvOfInt < (kNEvOfInt - 1)) {      
              fIsBB[iChannel][iEvOfInt+1] = (data >> (8+ 2*(iChannel-iChannel_Offset))) & 0x1;
              fIsBG[iChannel][iEvOfInt+1] = (data >> (8+ 2*(iChannel-iChannel_Offset)+1)) & 0x1;
@@ -160,8 +160,8 @@ Bool_t AliVZERORawStream::Next()
       for(Int_t iBunch = 0; iBunch < kNBunches; iBunch=iBunch+2) {
         UShort_t data = GetNextShort();
         for(Int_t iChannel = iChannel_Offset; iChannel < iChannel_Offset+4; iChannel++) {  
-          fIsBBMB[iChannel][iBunch] = (data >> 2*iBunch) & 0x1;
-          fIsBGMB[iChannel][iBunch] = (data >> 2*iBunch+1) & 0x1;
+          fIsBBMB[iChannel][iBunch] = (data >>  2*iBunch) & 0x1;
+          fIsBGMB[iChannel][iBunch] = (data >> (2*iBunch+1)) & 0x1;
          if(iBunch < (kNBunches - 1)) {
              fIsBBMB[iChannel][iBunch+1] = (data >> (8+2*iBunch)) & 0x1;
              fIsBGMB[iChannel][iBunch+1] = (data >> (8+2*iBunch+1)) & 0x1;
@@ -180,10 +180,10 @@ Bool_t AliVZERORawStream::Next()
 
     } 
 
-    for(Int_t iChannel = iCIU*8; iChannel < (iCIU*8) + 8; iChannel++) { 
+    for(Int_t iChannel = (iCIU*8) + 7; iChannel >= iCIU*8; iChannel--) { 
       UInt_t time = GetNextWord();
-      fTime[iChannel] = time & 0xfff;
-      fWidth[iChannel] = (time >> 12) & 0x7f;   // HPTDC used in pairing mode
+      fTime[iChannel]  = time & 0xfff;
+      fWidth[iChannel] = ((time >> 12) & 0x7f); // HPTDC used in pairing mode
     }
     
     // End of decoding of one CIU card