@@ -336,9 +336,8 @@ struct HfTreeCreatorOmegacSt {
336336 int8_t nKaToPiCasc{0 }, nKaToPiOmegac0{0 };
337337 std::vector<int > idxBhadMothers{};
338338 int decayChannel = -1 ; // flag for different decay channels
339- const int nProngs = 2 ;
340339 bool isMatched = false ;
341- static constexpr int NDaughters = 2 ;
340+ static constexpr std:: size_t NDaughters{ 2u } ;
342341
343342 void processMc (aod::McCollisions const &,
344343 aod::McParticles const & mcParticles)
@@ -349,7 +348,7 @@ struct HfTreeCreatorOmegacSt {
349348 const bool isXiC = std::abs (mcParticle.pdgCode ()) == constants::physics::Pdg::kXiC0 ;
350349 if (isOmegaC || isXiC) {
351350 const auto daughters = mcParticle.daughters_as <aod::McParticles>();
352- if (daughters.size () == nProngs ) {
351+ if (daughters.size () == NDaughters ) {
353352 int idxPionDaughter = -1 ;
354353 int idxCascDaughter = -1 ;
355354 int idxKaonDaughter = -1 ;
@@ -563,7 +562,7 @@ struct HfTreeCreatorOmegacSt {
563562 std::array<double , NDaughters> massesOmegacToOmegaPi{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
564563 std::array<double , NDaughters> massesOmegacToOmegaK{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus};
565564 std::array<double , NDaughters> massesXicDaughters{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus};
566- std::array<std::array<float , 3 >, 2 > momenta;
565+ std::array<std::array<float , 3 >, NDaughters > momenta;
567566
568567 auto trackParCovPr = getTrackParCov (v0TrackPr);
569568 auto trackParCovKa = getTrackParCov (v0TrackPi);
@@ -859,7 +858,7 @@ struct HfTreeCreatorOmegacSt {
859858 if (std::abs (pdgCode) == kOmegaMinus ) {
860859 LOG (debug) << " found Omega, looking for pions" ;
861860 std::array<double , NDaughters> masses{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
862- std::array<std::array<float , 3 >, 2 > momenta;
861+ std::array<std::array<float , 3 >, NDaughters > momenta;
863862 std::array<double , 3 > primaryVertexPos = {primaryVertex.getX (), primaryVertex.getY (), primaryVertex.getZ ()};
864863 const auto & mcColl = mother.mcCollision ();
865864 std::array<double , 3 > primaryVertexPosGen = {mcColl.posX (), mcColl.posY (), mcColl.posZ ()};
0 commit comments