Skip to content

Commit c3d6182

Browse files
[PWGDQ] Reset and fill the event properties in the runMCGen (#18523)
1 parent 3ba5756 commit c3d6182

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎PWGDQ/Tasks/dqEfficiency_withAssoc.cxx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,6 +2704,11 @@ struct AnalysisSameEventPairing {
27042704
if (!event.has_reducedMCevent()) {
27052705
continue;
27062706
}
2707+
// Fill the event-wise variables (e.g. centrality) of this reconstructed event, otherwise the generated particles and pairs
2708+
// get the values left over from the last event processed in runSameEventPairing
2709+
VarManager::ResetValues(0, VarManager::kNVars);
2710+
VarManager::FillEvent<gkEventFillMap>(event, dqefficiency_helpers::varValues());
2711+
VarManager::FillEvent<VarManager::ObjTypes::ReducedEventMC>(event.reducedMCevent(), dqefficiency_helpers::varValues());
27072712

27082713
FinalStateMcParticleIndices.clear();
27092714

0 commit comments

Comments
 (0)