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