Skip to content

Commit f5fdee6

Browse files
committed
Fix linter issues
1 parent 3ee3d47 commit f5fdee6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
///
1717
/// \author Alexandre Bigot <alexandre.bigot@cern.ch>, IPHC Strasbourg
1818

19+
#include <vector>
20+
1921
#include "CommonConstants/PhysicsConstants.h"
2022
#include "Framework/AnalysisTask.h"
2123
#include "Framework/runDataProcessing.h"
@@ -254,7 +256,7 @@ struct HfTreeCreatorDplusToPiKPi {
254256
Configurable<bool> fillOnlyBackground{"fillOnlyBackground", false, "Flag to fill derived tables with background for ML trainings"};
255257
Configurable<float> downSampleBkgFactor{"downSampleBkgFactor", 1., "Fraction of background candidates to keep for ML trainings"};
256258
Configurable<float> ptMaxForDownSample{"ptMaxForDownSample", 10., "Maximum pt for the application of the downsampling factor"};
257-
Configurable<std::vector<int>> classMl{"classMlindexes", {0, 2}, "Indexes of ML bkg and non-prompt scores."};
259+
Configurable<std::vector<int>> classMlIndexes{"classMlIndexes", {0, 2}, "Indexes of ML bkg and non-prompt scores."};
258260

259261
HfHelper hfHelper;
260262

@@ -304,8 +306,8 @@ struct HfTreeCreatorDplusToPiKPi {
304306

305307
std::vector<float> outputMl = {-999., -999.};
306308
if constexpr (doMl) {
307-
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++) {
308-
outputMl[iclass] = candidate.mlProbDplusToPiKPi()[classMl->at(iclass)];
309+
for (unsigned int iclass = 0; iclass < classMlIndexes->size(); iclass++) {
310+
outputMl[iclass] = candidate.mlProbDplusToPiKPi()[classMlIndexes->at(iclass)];
309311
}
310312
rowCandidateMl(
311313
outputMl[0],
@@ -513,7 +515,7 @@ struct HfTreeCreatorDplusToPiKPi {
513515
}
514516
for (const auto& candidate : reconstructedCandSigMl) {
515517
if (downSampleBkgFactor < 1.) {
516-
float pseudoRndm = candidate.ptProng0() * 1000. - (int64_t)(candidate.ptProng0() * 1000);
518+
float pseudoRndm = candidate.ptProng0() * 1000. - static_cast<int64_t>(candidate.ptProng0() * 1000);
517519
if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) {
518520
continue;
519521
}

0 commit comments

Comments
 (0)