Skip to content

Commit 34d1187

Browse files
iarseneIonut-Cristian Arsene
andauthored
fixed issue with accessing BC globalIndex from event-selection (#4641)
Co-authored-by: Ionut-Cristian Arsene <iarsene@cern.ch>
1 parent bb2651c commit 34d1187

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGDQ/TableProducer/tableMaker.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ struct TableMaker {
379379
uint64_t tag = 0;
380380
// store some more information in the tag
381381
// if the BC found by event selection does not coincide with the collision.bc()
382-
if (collision.foundBC().globalIndex() != collision.bc().globalIndex()) {
382+
auto bcEvSel = collision.template foundBC_as<aod::BCsWithTimestamps>();
383+
if (bcEvSel.globalIndex() != bc.globalIndex()) {
383384
tag |= (uint64_t(1) << 0);
384385
}
385386
// Put the 8 first bits of the event filter in the last 8 bits of the tag
@@ -787,7 +788,8 @@ struct TableMaker {
787788
uint64_t tag = 0;
788789
// store some more information in the tag
789790
// if the BC found by event selection does not coincide with the collision.bc()
790-
if (collision.foundBC().globalIndex() != collision.bc().globalIndex()) {
791+
auto bcEvSel = collision.template foundBC_as<aod::BCsWithTimestamps>();
792+
if (bcEvSel.globalIndex() != bc.globalIndex()) {
791793
tag |= (uint64_t(1) << 0);
792794
}
793795
// Put the 8 first bits of the event filter in the last 8 bits of the tag

0 commit comments

Comments
 (0)