@@ -415,8 +415,8 @@ class HfFilterHelper
415415 mForceTofProtonForFemto = forceTofProtons;
416416 mForceTofDeuteronForFemto = forceTofDeuterons;
417417 }
418- void setPtBinsSingleTracks (std::vector<double > ptBins) { mPtBinsTracks = ptBins; }
419- void setPtBinsBeautyHadrons (std::vector<double > ptBins) { mPtBinsBeautyHadrons = ptBins; }
418+ void setPtBinsSingleTracks (const std::vector<double >& ptBins) { mPtBinsTracks = ptBins; }
419+ void setPtBinsBeautyHadrons (const std::vector<double >& ptBins) { mPtBinsBeautyHadrons = ptBins; }
420420 void setCutsSingleTrackBeauty (o2::framework::LabeledArray<double > cutsSingleTrack3P, o2::framework::LabeledArray<double > cutsSingleTrack4P, o2::framework::LabeledArray<double > cutsSingleToJPsi)
421421 {
422422 mCutsSingleTrackBeauty3Prong = cutsSingleTrack3P;
@@ -583,7 +583,7 @@ class HfFilterHelper
583583
584584 void setTpcPidCalibrationOption (int opt) { mTpcPidCalibrationOption = opt; }
585585
586- void setMassResolParametrisation (std::string recoPass)
586+ void setMassResolParametrisation (const std::string& recoPass)
587587 {
588588 if (recoPass == " 2023_pass3" ) {
589589 mSigmaPars2Prongs [0 ] = 0 .01424f ;
@@ -610,7 +610,7 @@ class HfFilterHelper
610610
611611 void setNumSigmaForDeltaMassCharmHadCut (float nSigma) { mNumSigmaDeltaMassCharmHad = nSigma; }
612612
613- void setPreselDsToKKPi (std::vector<double > ptBins, o2::framework::LabeledArray<double > preselections)
613+ void setPreselDsToKKPi (const std::vector<double >& ptBins, const o2::framework::LabeledArray<double >& preselections)
614614 {
615615 mPtBinsPreselDsToKKPi = ptBins;
616616 mPreselDsToKKPi = preselections;
@@ -679,7 +679,7 @@ class HfFilterHelper
679679 template <typename T>
680680 T computeRelativeMomentum (const std::array<T, 3 >& pTrack, const std::array<T, 3 >& CharmCandMomentum, const T& CharmMass);
681681 template <typename T>
682- int computeNumberOfCandidates (std::vector<std::vector<T>> indices);
682+ int computeNumberOfCandidates (const std::vector<std::vector<T>>& indices);
683683 template <typename T1>
684684 int setVtxConfiguration (T1& vertexer, bool useAbsDCA);
685685 template <typename V, typename T, typename C>
@@ -1838,7 +1838,7 @@ inline T HfFilterHelper::computeRelativeMomentum(const std::array<T, 3>& pTrack,
18381838// / Computation of the number of candidates in an event that do not share daughter tracks
18391839// / \return 0 or 1 in case of less than 2 independent candidates in a single event, 2 otherwise
18401840template <typename T>
1841- inline int HfFilterHelper::computeNumberOfCandidates (std::vector<std::vector<T>> indices)
1841+ inline int HfFilterHelper::computeNumberOfCandidates (const std::vector<std::vector<T>>& indices)
18421842{
18431843 if (indices.size () < 2 ) {
18441844 return indices.size ();
0 commit comments