Skip to content

Commit

Permalink
fixed issue with accessing BC globalIndex from event-selection (Alice…
Browse files Browse the repository at this point in the history
…O2Group#4641)

Co-authored-by: Ionut-Cristian Arsene <[email protected]>
  • Loading branch information
iarsene and Ionut-Cristian Arsene authored Feb 8, 2024
1 parent bb2651c commit 34d1187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PWGDQ/TableProducer/tableMaker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<aod::BCsWithTimestamps>();
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
Expand Down Expand Up @@ -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<aod::BCsWithTimestamps>();
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
Expand Down

0 comments on commit 34d1187

Please sign in to comment.