From 843babbc4eb43095acb972ebaa1d5e971010b474 Mon Sep 17 00:00:00 2001 From: Adam Matyja Date: Wed, 4 Nov 2026 14:56:07 +0100 Subject: [PATCH 1/2] Fix cast in problemBits variable --- PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx b/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx index 00a0c30e693..28e2da63bcd 100644 --- a/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx +++ b/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx @@ -1397,7 +1397,11 @@ struct TauThreeProngEventTableProducer { float trueDaugZ[6] = {-998., -998., -998., -998., -998., -998.}; int trueDaugPdgCode[6] = {-999, -999, -999, -999, -999, -999}; +<<<<<<< HEAD int8_t problemBits[8] = {-99, -99, -99, -99, -99, -99, -99, -99}; +======= + bool problemBits[8] = {false, false, false, false, false, false, false, false}; +>>>>>>> 0b37a53c3 (Fix cast in problemBits variable) uint8_t problemBitsFlag = 0; // MyRecoProblem problem = NO_PROBLEM; registrySkim.get(HIST("skim/problemMC"))->Fill(NO_PROBLEM); From eeb8646fd544a9b51fd720b9c02f1af449ce62a0 Mon Sep 17 00:00:00 2001 From: Adam Matyja Date: Wed, 4 Nov 2026 15:01:26 +0100 Subject: [PATCH 2/2] Fix cast and type --- .../TableProducer/tauThreeProngEventTableProducer.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx b/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx index 28e2da63bcd..37583d9a938 100644 --- a/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx +++ b/PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx @@ -1397,11 +1397,7 @@ struct TauThreeProngEventTableProducer { float trueDaugZ[6] = {-998., -998., -998., -998., -998., -998.}; int trueDaugPdgCode[6] = {-999, -999, -999, -999, -999, -999}; -<<<<<<< HEAD - int8_t problemBits[8] = {-99, -99, -99, -99, -99, -99, -99, -99}; -======= bool problemBits[8] = {false, false, false, false, false, false, false, false}; ->>>>>>> 0b37a53c3 (Fix cast in problemBits variable) uint8_t problemBitsFlag = 0; // MyRecoProblem problem = NO_PROBLEM; registrySkim.get(HIST("skim/problemMC"))->Fill(NO_PROBLEM); @@ -1746,10 +1742,10 @@ struct TauThreeProngEventTableProducer { } // end of loop over collisions associated to MC collision // set up problem bits - problemBitsFlag = problemBits[0]; // initialization + problemBitsFlag = static_cast(problemBits[0]); // initialization for (int ibit = 1; ibit < nBitsMax; ibit++) { - problemBitsFlag = (problemBitsFlag << offset); // shift by 1 position towards left - problemBitsFlag += problemBits[ibit]; // add next bit to the pool + problemBitsFlag = (problemBitsFlag << offset); // shift by 1 position towards left + problemBitsFlag += static_cast(problemBits[ibit]); // add next bit to the pool } // decide the channel and set the variable.