Skip to content

Commit 948aadb

Browse files
committed
bugfix table size reservation
1 parent a671bcb commit 948aadb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

PWGHF/TableProducer/treeCreatorLcToPKPi.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,12 @@ struct HfTreeCreatorLcToPKPi {
546546
template <int ReconstructionType>
547547
void reserveTables(size_t candidatesSize, bool isMc)
548548
{
549-
if constexpr (ReconstructionType == aod::hf_cand::VertexerType::DCAFitter) {
550-
if (fillCandidateLiteTable) {
551-
rowCandidateLite.reserve(candidatesSize * 2);
552-
} else {
553-
rowCandidateFull.reserve(candidatesSize * 2);
554-
}
549+
if (fillCandidateLiteTable) {
550+
rowCandidateLite.reserve(candidatesSize * 2);
555551
} else {
552+
rowCandidateFull.reserve(candidatesSize * 2);
553+
}
554+
if constexpr (ReconstructionType == aod::hf_cand::VertexerType::KfParticle) {
556555
rowCandidateKF.reserve(candidatesSize * 2);
557556
}
558557
if (fillCollIdTable) {

0 commit comments

Comments
 (0)