Skip to content

Commit a11d822

Browse files
authored
PWGJE: fixing a small bug with jet flavor (AliceO2Group#7433)
1 parent f8ae82f commit a11d822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGJE/Tasks/bjetTreeCreator.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ struct BJetTreeCreator {
492492
}
493493
}
494494

495-
if (jetFlavor == 0 && (static_cast<double>(std::rand()) / RAND_MAX < getReductionFactor(analysisJet.pt()))) {
495+
if ((jetFlavor != JetTaggingSpecies::charm && jetFlavor != JetTaggingSpecies::beauty) && (static_cast<double>(std::rand()) / RAND_MAX < getReductionFactor(analysisJet.pt()))) {
496496
continue;
497497
}
498498

0 commit comments

Comments
 (0)