We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ad5d0 commit a718afcCopy full SHA for a718afc
1 file changed
PWGHF/TableProducer/derivedDataCreatorD0ToKPi.cxx
@@ -388,6 +388,13 @@ struct HfDerivedDataCreatorD0ToKPi {
388
continue;
389
}
390
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
398
399
400
double ct = hfHelper.ctD0(candidate);
0 commit comments