Skip to content

Commit 2c754f4

Browse files
iarseneIonut-Cristian Arsene
andauthored
fixed issue with accessing BC globalIndex from event-selection (#4646)
* fixed issue with accessing BC globalIndex from event-selection * fix in tableMaker_withAssoc for accessing evsel foundBC --------- Co-authored-by: Ionut-Cristian Arsene <iarsene@cern.ch>
1 parent cc891c0 commit 2c754f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGDQ/TableProducer/tableMaker_withAssoc.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ struct TableMaker {
484484
uint64_t tag = 0;
485485
// store some more information in the tag
486486
// if the BC found by event selection does not coincide with the collision.bc()
487-
if (collision.foundBC().globalIndex() != bc.globalIndex()) {
487+
auto bcEvSel = collision.template foundBC_as<BCsWithTimestamps>();
488+
if (bcEvSel.globalIndex() != bc.globalIndex()) {
488489
tag |= (uint64_t(1) << 0);
489490
}
490491
// Put the 8 first bits of the event filter in the last 8 bits of the tag

0 commit comments

Comments
 (0)