Skip to content

Commit 37c5189

Browse files
nstrangmNicolas Strangmann
andauthored
[PWGEM/PhotonMeson] Add missing JJ weight requirement for gen particles (#9708)
Co-authored-by: Nicolas Strangmann <nicolas.strangmann@.cern.ch>
1 parent 55c0eb8 commit 37c5189

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGammaMC.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@ struct Pi0EtaToGammaGammaMC {
649649
continue; // I don't know why this is necessary in simulation.
650650
}
651651

652+
if (eventcuts.onlyKeepWeightedEvents && fabs(collision.weight() - 1.) < 1E-10) {
653+
continue;
654+
}
655+
652656
float centralities[3] = {collision.centFT0M(), collision.centFT0A(), collision.centFT0C()};
653657
if (centralities[cfgCentEstimator] < cfgCentMin || cfgCentMax < centralities[cfgCentEstimator]) {
654658
continue;

0 commit comments

Comments
 (0)