@@ -1023,7 +1023,7 @@ struct Phik0shortanalysis {
10231023
10241024 PROCESS_SWITCH (Phik0shortanalysis, processRecMCPhiQA, " Process for ReCMCQA and Phi in RecMC" , false );
10251025
1026- void processRecMCPhiK0S (SimCollisions const & collisions, FullMCTracks const &, FullMCV0s const & V0s, V0DauMCTracks const &, MCCollisions const &, aod::McParticles const & mcParticles)
1026+ void processRecMCPhiK0S (SimCollisions const & collisions, FullMCV0s const & V0s, V0DauMCTracks const &, MCCollisions const &, aod::McParticles const & mcParticles)
10271027 {
10281028 for (const auto & collision : collisions) {
10291029 if (!acceptEventQA<true >(collision, false ))
@@ -1068,18 +1068,6 @@ struct Phik0shortanalysis {
10681068 for (const auto & mcParticle : mcParticlesThisColl) {
10691069 if (mcParticle.pdgCode () != 333 )
10701070 continue ;
1071- auto kDaughters = mcParticle.daughters_as <aod::McParticles>();
1072- if (kDaughters .size () != 2 )
1073- continue ;
1074- bool isPosKaon = false , isNegKaon = false ;
1075- for (const auto & kDaughter : kDaughters ) {
1076- if (kDaughter .pdgCode () == 321 )
1077- isPosKaon = true ;
1078- if (kDaughter .pdgCode () == -321 )
1079- isNegKaon = true ;
1080- }
1081- if (!isPosKaon || !isNegKaon)
1082- continue ;
10831071 if (std::abs (mcParticle.y ()) > cfgYAcceptance)
10841072 continue ;
10851073
@@ -1152,18 +1140,6 @@ struct Phik0shortanalysis {
11521140 for (const auto & mcParticle : mcParticlesThisColl) {
11531141 if (mcParticle.pdgCode () != 333 )
11541142 continue ;
1155- auto kDaughters = mcParticle.daughters_as <aod::McParticles>();
1156- if (kDaughters .size () != 2 )
1157- continue ;
1158- bool isPosKaon = false , isNegKaon = false ;
1159- for (const auto & kDaughter : kDaughters ) {
1160- if (kDaughter .pdgCode () == 321 )
1161- isPosKaon = true ;
1162- if (kDaughter .pdgCode () == -321 )
1163- isNegKaon = true ;
1164- }
1165- if (!isPosKaon || !isNegKaon)
1166- continue ;
11671143 if (std::abs (mcParticle.y ()) > cfgYAcceptance)
11681144 continue ;
11691145
@@ -1629,18 +1605,6 @@ struct Phik0shortanalysis {
16291605 for (const auto & mcParticle2 : mcParticles) {
16301606 if (mcParticle2.pdgCode () != 333 )
16311607 continue ;
1632- auto kDaughters2 = mcParticle2.daughters_as <aod::McParticles>();
1633- if (kDaughters2 .size () != 2 )
1634- continue ;
1635- bool isPosKaon = false , isNegKaon = false ;
1636- for (const auto & kDaughter2 : kDaughters2 ) {
1637- if (kDaughter2 .pdgCode () == 321 )
1638- isPosKaon = true ;
1639- if (kDaughter2 .pdgCode () == -321 )
1640- isNegKaon = true ;
1641- }
1642- if (!isPosKaon || !isNegKaon)
1643- continue ;
16441608
16451609 if (std::abs (mcParticle2.y ()) > cfgYAcceptance)
16461610 continue ;
@@ -1707,18 +1671,6 @@ struct Phik0shortanalysis {
17071671 for (const auto & mcParticle2 : mcParticles) {
17081672 if (mcParticle2.pdgCode () != 333 )
17091673 continue ;
1710- auto kDaughters = mcParticle2.daughters_as <aod::McParticles>();
1711- if (kDaughters .size () != 2 )
1712- continue ;
1713- bool isPosKaon = false , isNegKaon = false ;
1714- for (const auto & kDaughter : kDaughters ) {
1715- if (kDaughter .pdgCode () == 321 )
1716- isPosKaon = true ;
1717- if (kDaughter .pdgCode () == -321 )
1718- isNegKaon = true ;
1719- }
1720- if (!isPosKaon || !isNegKaon)
1721- continue ;
17221674
17231675 if (std::abs (mcParticle2.y ()) > cfgYAcceptance)
17241676 continue ;
0 commit comments