From 8d8ad11ea0c21c3341c496921a11b5d829ad7696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= Date: Thu, 31 Aug 2023 12:49:34 +0200 Subject: [PATCH] PWGHF: Fix std::array (#3408) --- PWGHF/TableProducer/trackIndexSkimCreator.cxx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/PWGHF/TableProducer/trackIndexSkimCreator.cxx b/PWGHF/TableProducer/trackIndexSkimCreator.cxx index cfa6f4932c8..4d4464a5c00 100644 --- a/PWGHF/TableProducer/trackIndexSkimCreator.cxx +++ b/PWGHF/TableProducer/trackIndexSkimCreator.cxx @@ -1858,7 +1858,7 @@ struct HfTrackIndexSkimCreator { registry.fill(HIST("hVtx2ProngX"), secondaryVertex2[0]); registry.fill(HIST("hVtx2ProngY"), secondaryVertex2[1]); registry.fill(HIST("hVtx2ProngZ"), secondaryVertex2[2]); - std::array, 2> arrMom = {pvec0, pvec1}; + std::array, 2> arrMom = {pvec0, pvec1}; for (int iDecay2P = 0; iDecay2P < kN2ProngDecays; iDecay2P++) { if (TESTBIT(isSelected2ProngCand, iDecay2P)) { if (whichHypo2Prong[iDecay2P] == 1 || whichHypo2Prong[iDecay2P] == 3) { @@ -2066,9 +2066,9 @@ struct HfTrackIndexSkimCreator { // get secondary vertex const auto& secondaryVertex3 = df3.getPCACandidate(); // get track momenta - array pvec0; - array pvec1; - array pvec2; + std::array pvec0; + std::array pvec1; + std::array pvec2; df3.getTrack(0).getPxPyPzGlo(pvec0); df3.getTrack(1).getPxPyPzGlo(pvec1); df3.getTrack(2).getPxPyPzGlo(pvec2); @@ -2106,7 +2106,7 @@ struct HfTrackIndexSkimCreator { registry.fill(HIST("hVtx3ProngX"), secondaryVertex3[0]); registry.fill(HIST("hVtx3ProngY"), secondaryVertex3[1]); registry.fill(HIST("hVtx3ProngZ"), secondaryVertex3[2]); - std::array, 3> arr3Mom = {pvec0, pvec1, pvec2}; + std::array, 3> arr3Mom = {pvec0, pvec1, pvec2}; for (int iDecay3P = 0; iDecay3P < kN3ProngDecays; iDecay3P++) { if (TESTBIT(isSelected3ProngCand, iDecay3P)) { if (whichHypo3Prong[iDecay3P] == 1 || whichHypo3Prong[iDecay3P] == 3) { @@ -2317,9 +2317,9 @@ struct HfTrackIndexSkimCreator { // get secondary vertex const auto& secondaryVertex3 = df3.getPCACandidate(); // get track momenta - array pvec0; - array pvec1; - array pvec2; + std::array pvec0; + std::array pvec1; + std::array pvec2; df3.getTrack(0).getPxPyPzGlo(pvec0); df3.getTrack(1).getPxPyPzGlo(pvec1); df3.getTrack(2).getPxPyPzGlo(pvec2); @@ -2357,7 +2357,7 @@ struct HfTrackIndexSkimCreator { registry.fill(HIST("hVtx3ProngX"), secondaryVertex3[0]); registry.fill(HIST("hVtx3ProngY"), secondaryVertex3[1]); registry.fill(HIST("hVtx3ProngZ"), secondaryVertex3[2]); - std::array, 3> arr3Mom = {pvec0, pvec1, pvec2}; + std::array, 3> arr3Mom = {pvec0, pvec1, pvec2}; for (int iDecay3P = 0; iDecay3P < kN3ProngDecays; iDecay3P++) { if (TESTBIT(isSelected3ProngCand, iDecay3P)) { if (whichHypo3Prong[iDecay3P] == 1 || whichHypo3Prong[iDecay3P] == 3) { @@ -3147,7 +3147,7 @@ struct HfTrackIndexSkimCreatorLfCascades { registry.fill(HIST("hVtx3ProngY"), secondaryVertex3[1]); registry.fill(HIST("hVtx3ProngZ"), secondaryVertex3[2]); - std::array, 3> arr3Mom = {pVec1, pVec2, pVec3}; + std::array, 3> arr3Mom = {pVec1, pVec2, pVec3}; for (int iDecay3P = 0; iDecay3P < kN3ProngDecays; iDecay3P++) { auto mass3Prong = RecoDecay::m(arr3Mom, arrMass3Prong[iDecay3P][0]); switch (iDecay3P) { @@ -3182,7 +3182,7 @@ struct HfTrackIndexSkimCreatorLfCascades { registry.fill(HIST("hVtx2ProngY"), secondaryVertex2[1]); registry.fill(HIST("hVtx2ProngZ"), secondaryVertex2[2]); - std::array, 2> arrMom = {pVec1, pVec2}; + std::array, 2> arrMom = {pVec1, pVec2}; for (int iDecay2P = 0; iDecay2P < kN2ProngDecays; iDecay2P++) { auto mass2Prong = RecoDecay::m(arrMom, arrMass2Prong[iDecay2P][0]); switch (iDecay2P) {