Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions PWGHF/TableProducer/treeCreatorD0ToKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,14 @@ struct HfTreeCreatorD0ToKPi {

// Filling candidate properties
if (fillCandidateLiteTable) {
rowCandidateLite.reserve(candidates.size());
// Account for candidates passing both D0 and D0bar
// selection, which will be stored twice in the lite table
rowCandidateLite.reserve(candidates.size() * 2);
} else {
rowCandidateFull.reserve(candidates.size());
rowCandidateFull.reserve(candidates.size() * 2);
}
if constexpr (ApplyMl) {
rowCandidateMl.reserve(candidates.size());
rowCandidateMl.reserve(candidates.size() * 2);
}
for (const auto& candidate : candidates) {
if (downSampleBkgFactor < 1.) {
Expand Down Expand Up @@ -511,12 +513,12 @@ struct HfTreeCreatorD0ToKPi {

// Filling candidate properties
if (fillCandidateLiteTable) {
rowCandidateLite.reserve(candidates.size());
rowCandidateLite.reserve(candidates.size() * 2);
} else {
rowCandidateFull.reserve(candidates.size());
rowCandidateFull.reserve(candidates.size() * 2);
}
if constexpr (ApplyMl) {
rowCandidateMl.reserve(candidates.size());
rowCandidateMl.reserve(candidates.size() * 2);
}
for (const auto& candidate : candidates) {
if constexpr (OnlyBkg) {
Expand Down
Loading