diff --git a/RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc b/RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc index 3f27cc3e9244b..0bdecb6578ca0 100644 --- a/RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc +++ b/RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc @@ -905,19 +905,19 @@ void TrackExtenderWithMTDT::fillMatchingHits(const DetLayer* il using namespace std::placeholders; auto find_hits = std::bind(find_hits_in_dets, - hits, - traj, + std::cref(hits), + std::cref(traj), ilay, - tsos, + std::cref(tsos), pmag2, pathlength0, _1, - bs, + std::cref(bs), bsTimeSpread_, prop, theEstimator.get(), _2, - hitsInLayer); + std::ref(hitsInLayer)); if (useVertex_ && matchVertex) find_hits(vtxTime, true);