Skip to content

Commit

Permalink
EventSelectionQA, Fix fetched BC type (AliceO2Group#4531)
Browse files Browse the repository at this point in the history
  • Loading branch information
nburmaso authored Feb 1, 2024
1 parent e4c85d8 commit 5efa099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DPG/Tasks/AOTEvent/eventSelectionQa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ struct EventSelectionQaTask {
for (const auto& track : tracks) {
auto mapAmbTrIdsIt = mapAmbTrIds.find(track.globalIndex());
int ambTrId = mapAmbTrIdsIt == mapAmbTrIds.end() ? -1 : mapAmbTrIdsIt->second;
int indexBc = ambTrId < 0 ? track.collision_as<ColEvSels>().bc_as<BCsRun3>().globalIndex() : ambTracks.iteratorAt(ambTrId).bc().begin().globalIndex();
int indexBc = ambTrId < 0 ? track.collision_as<ColEvSels>().bc_as<BCsRun3>().globalIndex() : ambTracks.iteratorAt(ambTrId).bc_as<BCsRun3>().begin().globalIndex();
auto bc = bcs.iteratorAt(indexBc);
int64_t globalBC = bc.globalBC() + floor(track.trackTime() / o2::constants::lhc::LHCBunchSpacingNS);

Expand Down

0 comments on commit 5efa099

Please sign in to comment.