Skip to content

Commit cd001d2

Browse files
author
Mattia Faggin
committed
Remove unused variables, again.
1 parent 9eccc42 commit cd001d2

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

PWGHF/TableProducer/derivedDataCreatorDplusToPiKPi.cxx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ struct HfDerivedDataCreatorDplusToPiKPi {
115115
rowsCommon.init(confDerData);
116116
}
117117

118-
template <typename T, typename U>
119-
void fillTablesCandidate(const T& candidate, const U& prong0, const U& prong1, const U& prong2, int candFlag, double invMass,
118+
template <typename T>
119+
void fillTablesCandidate(const T& candidate, int candFlag, double invMass,
120120
double ct, double y, int8_t flagMc, int8_t origin, int8_t swapping, int8_t flagDecayChan, const std::vector<float>& mlScores)
121121
{
122122
rowsCommon.fillTablesCandidate(candidate, invMass, y);
@@ -269,17 +269,14 @@ struct HfDerivedDataCreatorDplusToPiKPi {
269269
}
270270
}
271271
}
272-
auto prong0 = candidate.template prong0_as<TracksWPid>();
273-
auto prong1 = candidate.template prong1_as<TracksWPid>();
274-
auto prong2 = candidate.template prong2_as<TracksWPid>();
275272
double ct = hfHelper.ctDplus(candidate);
276273
double y = hfHelper.yDplus(candidate);
277274
float massDplusToPiKPi = hfHelper.invMassDplusToPiKPi(candidate);
278275
std::vector<float> mlScoresDplusToPiKPi;
279276
if constexpr (isMl) {
280277
std::copy(candidate.mlProbDplusToPiKPi().begin(), candidate.mlProbDplusToPiKPi().end(), std::back_inserter(mlScoresDplusToPiKPi));
281278
}
282-
fillTablesCandidate(candidate, prong0, prong1, prong2, 0, massDplusToPiKPi, ct, y, flagMcRec, origin, swapping, flagDecayChanRec, mlScoresDplusToPiKPi);
279+
fillTablesCandidate(candidate, 0, massDplusToPiKPi, ct, y, flagMcRec, origin, swapping, flagDecayChanRec, mlScoresDplusToPiKPi);
283280
}
284281
}
285282
}

PWGHF/TableProducer/derivedDataCreatorLcToPKPi.cxx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ struct HfDerivedDataCreatorLcToPKPi {
115115
rowsCommon.init(confDerData);
116116
}
117117

118-
template <typename T, typename U>
119-
void fillTablesCandidate(const T& candidate, const U& prong0, const U& prong1, const U& prong2, int candFlag, double invMass,
118+
template <typename T>
119+
void fillTablesCandidate(const T& candidate, int candFlag, double invMass,
120120
double ct, double y, int8_t flagMc, int8_t origin, int8_t swapping, const std::vector<float>& mlScores)
121121
{
122122
rowsCommon.fillTablesCandidate(candidate, invMass, y);
@@ -268,9 +268,6 @@ struct HfDerivedDataCreatorLcToPKPi {
268268
}
269269
}
270270
}
271-
auto prong0 = candidate.template prong0_as<TracksWPid>();
272-
auto prong1 = candidate.template prong1_as<TracksWPid>();
273-
auto prong2 = candidate.template prong2_as<TracksWPid>();
274271
double ct = hfHelper.ctLc(candidate);
275272
double y = hfHelper.yLc(candidate);
276273
float massLcToPKPi = hfHelper.invMassLcToPKPi(candidate);
@@ -281,10 +278,10 @@ struct HfDerivedDataCreatorLcToPKPi {
281278
std::copy(candidate.mlProbLcToPiKP().begin(), candidate.mlProbLcToPiKP().end(), std::back_inserter(mlScoresLcToPiKP));
282279
}
283280
if (candidate.isSelLcToPKPi()) {
284-
fillTablesCandidate(candidate, prong0, prong1, prong2, 0, massLcToPKPi, ct, y, flagMcRec, origin, swapping, mlScoresLcToPKPi);
281+
fillTablesCandidate(candidate, 0, massLcToPKPi, ct, y, flagMcRec, origin, swapping, mlScoresLcToPKPi);
285282
}
286283
if (candidate.isSelLcToPiKP()) {
287-
fillTablesCandidate(candidate, prong0, prong1, prong2, 1, massLcToPiKP, ct, y, flagMcRec, origin, swapping, mlScoresLcToPiKP);
284+
fillTablesCandidate(candidate, 1, massLcToPiKP, ct, y, flagMcRec, origin, swapping, mlScoresLcToPiKP);
288285
}
289286
}
290287
}

PWGHF/TableProducer/treeCreatorDstarToD0Pi.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ struct HfTreeCreatorDstarToD0Pi {
295295

296296
TracksWPid::iterator prong0;
297297
TracksWPid::iterator prong1;
298-
auto prongSoftPi = candidate.template prongPi_as<TracksWPid>();
299298

300299
float massD0{-1.f};
301300
float massDStar{-1.f};

0 commit comments

Comments
 (0)