From fe208f5c7d2a5bea1bffeb6cc2b4bc7d12e9ee77 Mon Sep 17 00:00:00 2001 From: lietava Date: Mon, 30 Jan 2012 08:54:03 +0000 Subject: [PATCH] Fix in BC calculation --- STEER/STEER/AliCTPRawStream.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/STEER/STEER/AliCTPRawStream.cxx b/STEER/STEER/AliCTPRawStream.cxx index 48b480b419f..19e24e190c7 100644 --- a/STEER/STEER/AliCTPRawStream.cxx +++ b/STEER/STEER/AliCTPRawStream.cxx @@ -204,11 +204,13 @@ Bool_t AliCTPRawStream::Next() orbit |= data[iword]; orbit |= ((data[iword+1] & 0xF) << 8); iword += 4; + AliDebug(1,Form("Orbit=0x%x\n",orbit)); continue; } } UShort_t bc = data[iword]; - bc |= ((data[iword] & 0xF) << 8); + bc |= ((data[iword+1] & 0xF) << 8); + AliDebug(1,Form("BC=0x%x\n",bc)); if (bc == 0xFFF) { incomplete = kTRUE; } -- 2.43.0