Skip to content

Commit f987fd1

Browse files
Fix cascade PDG code check
1 parent 9028f6e commit f987fd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGLF/Tasks/QC/v0cascadesqa.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,16 +1055,16 @@ struct v0cascadesQA {
10551055
bool isNegativeProton = casc.pdgCodeNegative() == PDG_t::kProtonBar;
10561056
bool isNegativePion = casc.pdgCodeNegative() == PDG_t::kPiMinus || (doTreatPiToMuon && casc.pdgCodeNegative() == PDG_t::kMuonMinus);
10571057

1058-
if (cascType == kXiM && casc.pdgCode() != PDG_t::kXiMinus || isPositiveProton || isNegativePion || isBachelorPionMinus) {
1058+
if (cascType == kXiM && casc.pdgCode() == PDG_t::kXiMinus && isPositiveProton && isNegativePion && isBachelorPionMinus) {
10591059
return true;
10601060
}
1061-
if (cascType == kXiP && casc.pdgCode() != PDG_t::kXiPlusBar || isPositivePion || isNegativeProton || isBachelorPionPlus) {
1061+
if (cascType == kXiP && casc.pdgCode() == PDG_t::kXiPlusBar && isPositivePion && isNegativeProton && isBachelorPionPlus) {
10621062
return true;
10631063
}
1064-
if (cascType == kOmegaM && casc.pdgCode() != PDG_t::kOmegaMinus || isPositiveProton || isNegativePion || isBachelorKaonMinus) {
1064+
if (cascType == kOmegaM && casc.pdgCode() == PDG_t::kOmegaMinus && isPositiveProton && isNegativePion && isBachelorKaonMinus) {
10651065
return true;
10661066
}
1067-
if (cascType == kOmegaP && casc.pdgCode() != PDG_t::kOmegaPlusBar || isPositivePion || isNegativeProton || isBachelorKaonPlus) {
1067+
if (cascType == kOmegaP && casc.pdgCode() == PDG_t::kOmegaPlusBar && isPositivePion && isNegativeProton && isBachelorKaonPlus) {
10681068
return true;
10691069
}
10701070
return false;

0 commit comments

Comments
 (0)