Skip to content

Commit 446eb22

Browse files
committed
use std::array<float, 3> instead of std::vector
1 parent 48424b0 commit 446eb22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/TableProducer/treeCreatorLcToPKPi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ struct HfTreeCreatorLcToPKPi {
699699
svX = mcParticleProng0.vx();
700700
svY = mcParticleProng0.vy();
701701
svZ = mcParticleProng0.vz();
702-
l = RecoDecay::distance(std::vector<float>{svX, svY, svZ}, std::vector<float>{pvX, pvY, pvZ});
702+
l = RecoDecay::distance(std::array<float, 3>{svX, svY, svZ}, std::array<float, 3>{pvX, pvY, pvZ});
703703
t = mcParticleProng0.vt() * NanoToPico / gamma; // from ns to ps * from lab time to proper time
704704
}
705705
rowCandidateMC(
@@ -729,7 +729,7 @@ struct HfTreeCreatorLcToPKPi {
729729
const float svX = mcDaughter0.vx();
730730
const float svY = mcDaughter0.vy();
731731
const float svZ = mcDaughter0.vz();
732-
const float l = RecoDecay::distance(std::vector<float>{svX, svY, svZ}, std::vector<float>{pvX, pvY, pvZ});
732+
const float l = RecoDecay::distance(std::array<float, 3>{svX, svY, svZ}, std::array<float, 3>{pvX, pvY, pvZ});
733733
const float t = mcDaughter0.vt() * NanoToPico / gamma; // from ns to ps * from lab time to proper time
734734
rowCandidateFullParticles(
735735
particle.pt(),

0 commit comments

Comments
 (0)