Skip to content

Commit a718afc

Browse files
PWGHF: Fix missing downSampleBkgFactor for data (#8081)
1 parent 40ad5d0 commit a718afc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PWGHF/TableProducer/derivedDataCreatorD0ToKPi.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,13 @@ struct HfDerivedDataCreatorD0ToKPi {
388388
continue;
389389
}
390390
}
391+
} else {
392+
if (downSampleBkgFactor < 1.) {
393+
float pseudoRndm = candidate.ptProng0() * 1000. - (int64_t)(candidate.ptProng0() * 1000);
394+
if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
395+
continue;
396+
}
397+
}
391398
}
392399

393400
double ct = hfHelper.ctD0(candidate);

0 commit comments

Comments
 (0)