correct mask for V0 charge decoding in STU payload
authorguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Nov 2011 13:31:20 +0000 (13:31 +0000)
committerguernane <guernane@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Nov 2011 13:31:20 +0000 (13:31 +0000)
EMCAL/AliEMCALTriggerSTURawStream.cxx

index b002e11..a3390ea 100644 (file)
@@ -163,16 +163,16 @@ Bool_t AliEMCALTriggerSTURawStream::ReadPayLoad()
                case kPayLoadSizeOld:
                case kPayLoadSizeOld + 1536:
                {
-                       fL1JetThreshold   = ((word32[0]>>16) & 0xFFF);
-                       fL1GammaThreshold =  (word32[0]      & 0xFFF);
+                       fL1JetThreshold   = ((word32[0]>>16) & 0xFFFF);
+                       fL1GammaThreshold =  (word32[0]      & 0xFFFF);
                        
                        break;
                }
                case kPayLoadSizeNew:
                case kPayLoadSizeNew + 1536:
                {
-                       fV0A = ((word32[0]>>16) & 0xFFF);
-                       fV0C =  (word32[0]      & 0xFFF);
+                       fV0A = ((word32[0]>>16) & 0xFFFF);
+                       fV0C =  (word32[0]      & 0xFFFF);
                        
                        UInt_t sV0 = fV0A + fV0C;