Skip to content

Commit 2260a09

Browse files
committed
Remove default template arguments. Pass by const&.
1 parent ec1699a commit 2260a09

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,12 +1804,12 @@ struct HfTrackIndexSkimCreator {
18041804
}
18051805

18061806
/// Method to perform ML selections for 2-prong candidates after the rectangular selections
1807+
/// \tparam usePidForHfFiltersBdt is the flag to determine whether to use also the PID features for the Lc BDT
18071808
/// \param featuresCand is the vector with the candidate features
18081809
/// \param featuresCandPid is the vector with the candidate PID features
18091810
/// \param outputScores is the array of vectors with the output scores to be filled
18101811
/// \param isSelected ia s bitmap with selection outcome
1811-
/// \param usePidForHfFiltersBdt is the flag to determine whether to use also the PID features for the Lc BDT
1812-
template <bool usePidForHfFiltersBdt = false>
1812+
template <bool usePidForHfFiltersBdt>
18131813
void applyMlSelectionForHfFilters3Prong(std::vector<float> featuresCand, std::vector<float> featuresCandPid, std::array<std::vector<float>, kN3ProngDecays>& outputScores, auto& isSelected)
18141814
{
18151815
if (isSelected == 0) {
@@ -1929,7 +1929,7 @@ struct HfTrackIndexSkimCreator {
19291929
/// \param pvCovMatrix is a vector where to store the covariance matrix values of refitted PV
19301930
void performPvRefitCandProngs(SelectedCollisions::iterator const& collision,
19311931
aod::BCsWithTimestamps const&,
1932-
std::vector<int64_t> vecPvContributorGlobId,
1932+
std::vector<int64_t> const& vecPvContributorGlobId,
19331933
std::vector<o2::track::TrackParCov> const& vecPvContributorTrackParCov,
19341934
std::vector<int64_t> vecCandPvContributorGlobId,
19351935
std::array<float, 3>& pvCoord,
@@ -2055,7 +2055,7 @@ struct HfTrackIndexSkimCreator {
20552055
return;
20562056
} /// end of performPvRefitCandProngs function
20572057

2058-
template <bool doPvRefit = false, bool usePidForHfFiltersBdt = false, typename TTracks>
2058+
template <bool doPvRefit, bool usePidForHfFiltersBdt, typename TTracks>
20592059
void run2And3Prongs(SelectedCollisions const& collisions,
20602060
aod::BCsWithTimestamps const& bcWithTimeStamps,
20612061
FilteredTrackAssocSel const&,
@@ -2832,8 +2832,8 @@ struct HfTrackIndexSkimCreator {
28322832
if (config.applyMlForHfFilters) {
28332833
rowTrackIndexMlScoreProng3(mlScores3Prongs[0], mlScores3Prongs[1], mlScores3Prongs[2], mlScores3Prongs[3]);
28342834
}
2835-
// fill table row of coordinates of PV refit
28362835
if constexpr (doPvRefit) {
2836+
// fill table row of coordinates of PV refit
28372837
rowProng3PVrefit(pvRefitCoord3Prong1Pos2Neg[0], pvRefitCoord3Prong1Pos2Neg[1], pvRefitCoord3Prong1Pos2Neg[2],
28382838
pvRefitCovMatrix3Prong1Pos2Neg[0], pvRefitCovMatrix3Prong1Pos2Neg[1], pvRefitCovMatrix3Prong1Pos2Neg[2], pvRefitCovMatrix3Prong1Pos2Neg[3], pvRefitCovMatrix3Prong1Pos2Neg[4], pvRefitCovMatrix3Prong1Pos2Neg[5]);
28392839
}
@@ -3001,7 +3001,7 @@ struct HfTrackIndexSkimCreator {
30013001
FilteredTrackAssocSel const& trackIndices,
30023002
TracksWithPVRefitAndDCA const& tracks)
30033003
{
3004-
run2And3Prongs<true>(collisions, bcWithTimeStamps, trackIndices, tracks);
3004+
run2And3Prongs<true, false>(collisions, bcWithTimeStamps, trackIndices, tracks);
30053005
}
30063006
PROCESS_SWITCH(HfTrackIndexSkimCreator, process2And3ProngsWithPvRefit, "Process 2-prong and 3-prong skim with PV refit", false);
30073007

@@ -3011,7 +3011,7 @@ struct HfTrackIndexSkimCreator {
30113011
FilteredTrackAssocSel const& trackIndices,
30123012
aod::TracksWCovDcaExtra const& tracks)
30133013
{
3014-
run2And3Prongs(collisions, bcWithTimeStamps, trackIndices, tracks);
3014+
run2And3Prongs<false, false>(collisions, bcWithTimeStamps, trackIndices, tracks);
30153015
}
30163016
PROCESS_SWITCH(HfTrackIndexSkimCreator, process2And3ProngsNoPvRefit, "Process 2-prong and 3-prong skim without PV refit", true);
30173017

0 commit comments

Comments
 (0)