Skip to content

Commit 565851f

Browse files
committed
Fix useless conditions
1 parent fdbfdd9 commit 565851f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

EventFiltering/PWGHF/HFFilter.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,14 +994,14 @@ struct HfFilter { // Main struct for HF triggers
994994
if (isGoodXicStar) {
995995
if (isRightSignXicStar) {
996996
hMassVsPtC[kNCharmParticles + 7]->Fill(ptCand, massDiffXicStarCand);
997-
} else if (!isRightSignXicStar && keepAlsoWrongDmesLambdaPairs) {
997+
} else if (keepAlsoWrongDmesLambdaPairs) {
998998
hMassVsPtC[kNCharmParticles + 8]->Fill(ptCand, massDiffXicStarBarCand);
999999
}
10001000
}
10011001
if (isGoodXicStarBar) {
10021002
if (isRightSignXicStarBar) {
10031003
hMassVsPtC[kNCharmParticles + 7]->Fill(ptCand, massDiffXicStarCand);
1004-
} else if (!isRightSignXicStarBar && keepAlsoWrongDmesLambdaPairs) {
1004+
} else if (keepAlsoWrongDmesLambdaPairs) {
10051005
hMassVsPtC[kNCharmParticles + 8]->Fill(ptCand, massDiffXicStarBarCand);
10061006
}
10071007
}
@@ -1093,14 +1093,14 @@ struct HfFilter { // Main struct for HF triggers
10931093
if (isGoodThetac) {
10941094
if (isRightSignThetaC) {
10951095
hMassVsPtC[kNCharmParticles + 21]->Fill(ptCand, massDiffThetacCand);
1096-
} else if (!isRightSignThetaC && keepAlsoWrongDmesProtonPairs) {
1096+
} else if (keepAlsoWrongDmesProtonPairs) {
10971097
hMassVsPtC[kNCharmParticles + 22]->Fill(ptCand, massDiffThetacBarCand);
10981098
}
10991099
}
11001100
if (isGoodThetacBar) {
11011101
if (isRightSignThetaCBar) {
11021102
hMassVsPtC[kNCharmParticles + 21]->Fill(ptCand, massDiffThetacCand);
1103-
} else if (!isRightSignThetaCBar && keepAlsoWrongDmesProtonPairs) {
1103+
} else if (keepAlsoWrongDmesProtonPairs) {
11041104
hMassVsPtC[kNCharmParticles + 22]->Fill(ptCand, massDiffThetacBarCand);
11051105
}
11061106
}
@@ -1144,14 +1144,14 @@ struct HfFilter { // Main struct for HF triggers
11441144
if (isGoodLcStar) {
11451145
if (isRightSignLcStar) {
11461146
hMassVsPtC[kNCharmParticles + 19]->Fill(ptCand, massDiffLcStarCand);
1147-
} else if (!isRightSignLcStar && keepAlsoWrongDmesProtonPairs) {
1147+
} else if (keepAlsoWrongDmesProtonPairs) {
11481148
hMassVsPtC[kNCharmParticles + 20]->Fill(ptCand, massDiffLcStarBarCand);
11491149
}
11501150
}
11511151
if (isGoodLcStarBar) {
11521152
if (isRightSignLcStarBar) {
11531153
hMassVsPtC[kNCharmParticles + 19]->Fill(ptCand, massDiffLcStarCand);
1154-
} else if (!isRightSignLcStarBar && keepAlsoWrongDmesProtonPairs) {
1154+
} else if (keepAlsoWrongDmesProtonPairs) {
11551155
hMassVsPtC[kNCharmParticles + 20]->Fill(ptCand, massDiffLcStarBarCand);
11561156
}
11571157
}
@@ -1640,7 +1640,7 @@ struct HfFilter { // Main struct for HF triggers
16401640
if (activateQA) {
16411641
if (isRightSign) {
16421642
hMassVsPtC[kNCharmParticles + 5]->Fill(ptCand, massDiffXicStar);
1643-
} else if (!isRightSign && keepAlsoWrongDmesLambdaPairs) {
1643+
} else if (keepAlsoWrongDmesLambdaPairs) {
16441644
hMassVsPtC[kNCharmParticles + 6]->Fill(ptCand, massDiffXicStar);
16451645
}
16461646
}

0 commit comments

Comments
 (0)