Skip to content

Commit 366744e

Browse files
committed
Const scores number
1 parent 27f6079 commit 366744e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
/// \author M. Faggin (CERN) mattia.faggin@cern.ch
1818
/// \author M. Li (CCNU) mingze.li@cern.ch
1919

20-
2120
#include "PWGHF/Core/CentralityEstimation.h"
2221
#include "PWGHF/Core/DecayChannels.h"
2322
#include "PWGHF/Core/HfHelper.h"
@@ -1699,7 +1698,8 @@ struct HfTaskCharmPolarisation {
16991698
invMassCharmHadForSparse = hfHelper.invMassLcToPKPi(candidate);
17001699
}
17011700
if constexpr (withMl) {
1702-
if (candidate.mlProbLcToPKPi().size() == 3) {
1701+
const int scoresNum = 3;
1702+
if (candidate.mlProbLcToPKPi().size() == scoresNum) {
17031703
// protect from empty vectors
17041704
// the BDT output score might be empty if no preselections were enabled (selectionFlag null)
17051705
// !!! NB: each rotated candidates inherits the BDT scores of the original candidate, even if the candidate pt changed after the rotation of the kaon-track pt !!!
@@ -1733,7 +1733,8 @@ struct HfTaskCharmPolarisation {
17331733
invMassCharmHadForSparse = hfHelper.invMassLcToPiKP(candidate);
17341734
}
17351735
if constexpr (withMl) {
1736-
if (candidate.mlProbLcToPiKP().size() == 3) {
1736+
const int scoresNum = 3;
1737+
if (candidate.mlProbLcToPiKP().size() == scoresNum) {
17371738
// protect from empty vectors
17381739
// the BDT output score might be empty if no preselections were enabled (selectionFlag null)
17391740
// !!! NB: each rotated candidates inherits the BDT scores of the original candidate, even if the candidate pt changed after the rotation of the kaon-track pt !!!

0 commit comments

Comments
 (0)