@@ -210,7 +210,7 @@ struct HfDataCreatorCharmHadPiReduced {
210210 // CCDB service
211211 Service<o2::ccdb::BasicCCDBManager> ccdb;
212212 o2::base::Propagator::MatCorrType noMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
213- int runNumber;
213+ int runNumber{} ;
214214
215215 // O2DatabasePDG service
216216 Service<o2::framework::O2DatabasePDG> pdg;
@@ -626,7 +626,7 @@ struct HfDataCreatorCharmHadPiReduced {
626626 indexRec = RecoDecay::getMatchedMCRec<false , false , false , true , true >(particlesMc, std::array{vecDaughtersB[0 ], vecDaughtersB[1 ], vecDaughtersB[2 ]}, -Pdg::kDS , std::array{-kKPlus , +kKPlus , -kPiPlus }, true , &sign, 2 );
627627 if (indexRec > -1 ) {
628628 std::vector<int > arrDaughDsIndex;
629- std::array<int , 2 > arrPDGDaughDs;
629+ std::array<int , 2 > arrPDGDaughDs{} ;
630630 RecoDecay::getDaughters (particlesMc.rawIteratorAt (indexRec), &arrDaughDsIndex, std::array{0 }, 1 );
631631 if (arrDaughDsIndex.size () == NDaughtersDs) {
632632 for (auto iProng = 0u ; iProng < arrDaughDsIndex.size (); ++iProng) {
@@ -663,7 +663,7 @@ struct HfDataCreatorCharmHadPiReduced {
663663 indexRec = RecoDecay::getMatchedMCRec<false , false , false , true , true >(particlesMc, std::array{vecDaughtersB[0 ], vecDaughtersB[1 ], vecDaughtersB[2 ]}, -Pdg::kDS , std::array{-kKPlus , +kKPlus , -kPiPlus }, true , &sign, 2 );
664664 if (indexRec > -1 ) {
665665 std::vector<int > arrDaughDsIndex;
666- std::array<int , 2 > arrPDGDaughDs;
666+ std::array<int , 2 > arrPDGDaughDs{} ;
667667 RecoDecay::getDaughters (particlesMc.rawIteratorAt (indexRec), &arrDaughDsIndex, std::array{0 }, 1 );
668668 if (arrDaughDsIndex.size () == NDaughtersDs) {
669669 for (auto iProng = 0u ; iProng < arrDaughDsIndex.size (); ++iProng) {
@@ -688,7 +688,7 @@ struct HfDataCreatorCharmHadPiReduced {
688688 indexRec = RecoDecay::getMatchedMCRec<false , false , false , true , true >(particlesMc, std::array{vecDaughtersB[0 ], vecDaughtersB[1 ], vecDaughtersB[2 ]}, -Pdg::kDS , std::array{-kKPlus , +kKPlus , -kPiPlus }, true , &sign, 2 );
689689 if (indexRec > -1 ) {
690690 std::vector<int > arrDaughDsIndex;
691- std::array<int , 2 > arrPDGDaughDs;
691+ std::array<int , 2 > arrPDGDaughDs{} ;
692692 RecoDecay::getDaughters (particlesMc.rawIteratorAt (indexRec), &arrDaughDsIndex, std::array{0 }, 1 );
693693 if (arrDaughDsIndex.size () == NDaughtersDs) {
694694 for (auto iProng = 0u ; iProng < arrDaughDsIndex.size (); ++iProng) {
@@ -1545,9 +1545,9 @@ struct HfDataCreatorCharmHadPiReduced {
15451545 auto yParticle = RecoDecay::y (particle.pVector (), massB);
15461546 auto etaParticle = particle.eta ();
15471547
1548- std::array<float , 2 > ptProngs;
1549- std::array<float , 2 > yProngs;
1550- std::array<float , 2 > etaProngs;
1548+ std::array<float , 2 > ptProngs{} ;
1549+ std::array<float , 2 > yProngs{} ;
1550+ std::array<float , 2 > etaProngs{} ;
15511551 int counter = 0 ;
15521552 for (const auto & daught : particle.daughters_as <aod::McParticles>()) {
15531553 ptProngs[counter] = daught.pt ();
@@ -1565,7 +1565,7 @@ struct HfDataCreatorCharmHadPiReduced {
15651565 auto candCMC = particlesMc.rawIteratorAt (particle.daughtersIds ().front ());
15661566 if (RecoDecay::isMatchedMCGen (particlesMc, candCMC, -static_cast <int >(Pdg::kDS ), std::array{-kKPlus , +kKPlus , -kPiPlus }, true , &sign, 2 )) {
15671567 std::vector<int > arrDaughDsIndex;
1568- std::array<int , 2 > arrPDGDaughDs;
1568+ std::array<int , 2 > arrPDGDaughDs{} ;
15691569 RecoDecay::getDaughters (candCMC, &arrDaughDsIndex, std::array{0 }, 1 );
15701570 if (arrDaughDsIndex.size () == NDaughtersDs) {
15711571 for (auto jProng = 0u ; jProng < arrDaughDsIndex.size (); ++jProng) {
@@ -1591,7 +1591,7 @@ struct HfDataCreatorCharmHadPiReduced {
15911591 auto candCMC = particlesMc.rawIteratorAt (particle.daughtersIds ().front ());
15921592 if (RecoDecay::isMatchedMCGen (particlesMc, candCMC, -static_cast <int >(Pdg::kDS ), std::array{-kKPlus , +kKPlus , -kPiPlus }, true , &sign, 2 )) {
15931593 std::vector<int > arrDaughDsIndex;
1594- std::array<int , 2 > arrPDGDaughDs;
1594+ std::array<int , 2 > arrPDGDaughDs{} ;
15951595 RecoDecay::getDaughters (candCMC, &arrDaughDsIndex, std::array{0 }, 1 );
15961596 if (arrDaughDsIndex.size () == NDaughtersDs) {
15971597 for (auto jProng = 0u ; jProng < arrDaughDsIndex.size (); ++jProng) {
@@ -1620,9 +1620,9 @@ struct HfDataCreatorCharmHadPiReduced {
16201620 auto yParticle = RecoDecay::y (particle.pVector (), massB);
16211621 auto etaParticle = particle.eta ();
16221622
1623- std::array<float , 2 > ptProngs;
1624- std::array<float , 2 > yProngs;
1625- std::array<float , 2 > etaProngs;
1623+ std::array<float , 2 > ptProngs{} ;
1624+ std::array<float , 2 > yProngs{} ;
1625+ std::array<float , 2 > etaProngs{} ;
16261626 int counter = 0 ;
16271627 for (const auto & daught : particle.daughters_as <aod::McParticles>()) {
16281628 ptProngs[counter] = daught.pt ();
@@ -1653,9 +1653,9 @@ struct HfDataCreatorCharmHadPiReduced {
16531653 auto yParticle = RecoDecay::y (particle.pVector (), massB);
16541654 auto etaParticle = particle.eta ();
16551655
1656- std::array<float , 2 > ptProngs;
1657- std::array<float , 2 > yProngs;
1658- std::array<float , 2 > etaProngs;
1656+ std::array<float , 2 > ptProngs{} ;
1657+ std::array<float , 2 > yProngs{} ;
1658+ std::array<float , 2 > etaProngs{} ;
16591659 int counter = 0 ;
16601660 for (const auto & daught : particle.daughters_as <aod::McParticles>()) {
16611661 ptProngs[counter] = daught.pt ();
@@ -1686,9 +1686,9 @@ struct HfDataCreatorCharmHadPiReduced {
16861686 auto yParticle = RecoDecay::y (particle.pVector (), massB);
16871687 auto etaParticle = particle.eta ();
16881688
1689- std::array<float , 2 > ptProngs;
1690- std::array<float , 2 > yProngs;
1691- std::array<float , 2 > etaProngs;
1689+ std::array<float , 2 > ptProngs{} ;
1690+ std::array<float , 2 > yProngs{} ;
1691+ std::array<float , 2 > etaProngs{} ;
16921692 int counter = 0 ;
16931693 for (const auto & daught : particle.daughters_as <aod::McParticles>()) {
16941694 ptProngs[counter] = daught.pt ();
@@ -1719,9 +1719,9 @@ struct HfDataCreatorCharmHadPiReduced {
17191719 auto yParticle = RecoDecay::y (particle.pVector (), massB);
17201720 auto etaParticle = particle.eta ();
17211721
1722- std::array<float , 2 > ptProngs;
1723- std::array<float , 2 > yProngs;
1724- std::array<float , 2 > etaProngs;
1722+ std::array<float , 2 > ptProngs{} ;
1723+ std::array<float , 2 > yProngs{} ;
1724+ std::array<float , 2 > etaProngs{} ;
17251725 int counter = 0 ;
17261726 for (const auto & daught : particle.daughters_as <aod::McParticles>()) {
17271727 ptProngs[counter] = daught.pt ();
0 commit comments