@@ -1054,7 +1054,7 @@ struct v0cascadesQA {
10541054 {
10551055 if (!casc.isPhysicalPrimary ())
10561056 return false ;
1057-
1057+
10581058 bool isBachelorPionPlus = casc.pdgCodeBachelor () == PDG_t::kPiPlus || (doTreatPiToMuon && casc.pdgCodeBachelor () == PDG_t::kMuonPlus );
10591059 bool isBachelorKaonPlus = casc.pdgCodeBachelor () == PDG_t::kKPlus ;
10601060 bool isBachelorPionMinus = casc.pdgCodeBachelor () == PDG_t::kPiMinus || (doTreatPiToMuon && casc.pdgCodeBachelor () == PDG_t::kMuonMinus );
@@ -1064,16 +1064,16 @@ struct v0cascadesQA {
10641064 bool isNegativeProton = casc.pdgCodeNegative () == PDG_t::kProtonBar ;
10651065 bool isNegativePion = casc.pdgCodeNegative () == PDG_t::kPiMinus || (doTreatPiToMuon && casc.pdgCodeNegative () == PDG_t::kMuonMinus );
10661066
1067- if (cascType == kXiM && casc.pdgCode () != PDG_t::kXiMinus || isPositiveProton || isNegativePion || isBachelorPionMinus) {
1067+ if (cascType == kXiM && casc.pdgCode () == PDG_t::kXiMinus && isPositiveProton && isNegativePion && isBachelorPionMinus) {
10681068 return true ;
10691069 }
1070- if (cascType == kXiP && casc.pdgCode () != PDG_t::kXiPlusBar || isPositivePion || isNegativeProton || isBachelorPionPlus) {
1070+ if (cascType == kXiP && casc.pdgCode () == PDG_t::kXiPlusBar && isPositivePion && isNegativeProton && isBachelorPionPlus) {
10711071 return true ;
10721072 }
1073- if (cascType == kOmegaM && casc.pdgCode () != PDG_t::kOmegaMinus || isPositiveProton || isNegativePion || isBachelorKaonMinus) {
1073+ if (cascType == kOmegaM && casc.pdgCode () == PDG_t::kOmegaMinus && isPositiveProton && isNegativePion && isBachelorKaonMinus) {
10741074 return true ;
10751075 }
1076- if (cascType == kOmegaP && casc.pdgCode () != PDG_t::kOmegaPlusBar || isPositivePion || isNegativeProton || isBachelorKaonPlus) {
1076+ if (cascType == kOmegaP && casc.pdgCode () == PDG_t::kOmegaPlusBar && isPositivePion && isNegativeProton && isBachelorKaonPlus) {
10771077 return true ;
10781078 }
10791079 return false ;
@@ -1259,7 +1259,7 @@ struct v0cascadesQA {
12591259 // //////// QA - MC /////////////
12601260 // //////////////////////////////
12611261
1262- void processMonteCarlo (soa::Join<aod::Collisions, aod::EvSels, aod::PVMults, aod::McCollisionLabels>::iterator const & collision, soa::Join<aod::McCollisions, aod::MultsExtraMC> const &, soa::Join<aod::V0Datas, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0CoreMCLabels> const & fullV0s, soa::Join<aod::V0MCDatas, aod::V0MCCollRefs> const &, soa::Join<aod::CascDatas, aod::CascTOFPIDs, aod::CascTOFNSigmas, aod::CascCoreMCLabels> const & fullCascades, soa::Join<aod::CascMCDatas, aod::CascMCCollRefs> const &, DaughterTracks&, aod::BCsWithTimestamps const &)
1262+ void processMonteCarlo (soa::Join<aod::Collisions, aod::EvSels, aod::PVMults, aod::McCollisionLabels>::iterator const & collision, soa::Join<aod::McCollisions, aod::MultsExtraMC> const &, soa::Join<aod::V0Datas, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0CoreMCLabels> const & fullV0s, soa::Join<aod::V0MCDatas, aod::V0MCCollRefs> const &, soa::Join<aod::CascDatas, aod::CascTOFPIDs, aod::CascTOFNSigmas, aod::CascCoreMCLabels> const & fullCascades, soa::Join<aod::CascMCDatas, aod::CascMCCollRefs> const &, DaughterTracks const &, aod::BCsWithTimestamps const &)
12631263 {
12641264 if (!isEventAccepted (collision, false )) {
12651265 return ;
0 commit comments