From 92c99c1b18f24297cce9c9d13f819b7cba544337 Mon Sep 17 00:00:00 2001 From: Andrew Loeliger Date: Fri, 21 Jun 2024 10:13:17 -0500 Subject: [PATCH] Change CICADA unpacker to read the last 4 words instead of first 4 --- .../plugins/implementations_stage2/CICADAUnpacker.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EventFilter/L1TRawToDigi/plugins/implementations_stage2/CICADAUnpacker.cc b/EventFilter/L1TRawToDigi/plugins/implementations_stage2/CICADAUnpacker.cc index ee1d613bf6564..202c112f83b69 100644 --- a/EventFilter/L1TRawToDigi/plugins/implementations_stage2/CICADAUnpacker.cc +++ b/EventFilter/L1TRawToDigi/plugins/implementations_stage2/CICADAUnpacker.cc @@ -27,9 +27,9 @@ namespace l1t { return false; } else { std::vector cicadaWords = {0, 0, 0, 0}; - //the first 4 words are CICADA words - for (uint32_t i = 0; i < 4; ++i) { - cicadaWords.at(i) = ((block.payload().at(i)) >> 28); + //the last 4 words are CICADA words + for (uint32_t i = 2; i < 6; ++i) { + cicadaWords.at(i-2) = ((block.payload().at(i)) >> 28); } float cicadaScore = convertCICADABitsToFloat(cicadaWords);