From 34d1187fe2d7f93d9f9798d47e784f5d46809c32 Mon Sep 17 00:00:00 2001 From: Ionut Cristian Arsene Date: Thu, 8 Feb 2024 15:30:24 +0100 Subject: [PATCH] fixed issue with accessing BC globalIndex from event-selection (#4641) Co-authored-by: Ionut-Cristian Arsene --- PWGDQ/TableProducer/tableMaker.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PWGDQ/TableProducer/tableMaker.cxx b/PWGDQ/TableProducer/tableMaker.cxx index 9beaf36781a..e185a574a72 100644 --- a/PWGDQ/TableProducer/tableMaker.cxx +++ b/PWGDQ/TableProducer/tableMaker.cxx @@ -379,7 +379,8 @@ struct TableMaker { uint64_t tag = 0; // store some more information in the tag // if the BC found by event selection does not coincide with the collision.bc() - if (collision.foundBC().globalIndex() != collision.bc().globalIndex()) { + auto bcEvSel = collision.template foundBC_as(); + if (bcEvSel.globalIndex() != bc.globalIndex()) { tag |= (uint64_t(1) << 0); } // Put the 8 first bits of the event filter in the last 8 bits of the tag @@ -787,7 +788,8 @@ struct TableMaker { uint64_t tag = 0; // store some more information in the tag // if the BC found by event selection does not coincide with the collision.bc() - if (collision.foundBC().globalIndex() != collision.bc().globalIndex()) { + auto bcEvSel = collision.template foundBC_as(); + if (bcEvSel.globalIndex() != bc.globalIndex()) { tag |= (uint64_t(1) << 0); } // Put the 8 first bits of the event filter in the last 8 bits of the tag