From 2dc9cf8b637a898ed06f5599447ad1daf86096b6 Mon Sep 17 00:00:00 2001 From: tschuh Date: Mon, 25 Apr 2022 14:44:23 +0200 Subject: [PATCH] Update StubAssociation.cc (#145) as requested a separate PR. --- SimTracker/TrackTriggerAssociation/src/StubAssociation.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimTracker/TrackTriggerAssociation/src/StubAssociation.cc b/SimTracker/TrackTriggerAssociation/src/StubAssociation.cc index 9a873d054c7b8..bf3870aff2217 100644 --- a/SimTracker/TrackTriggerAssociation/src/StubAssociation.cc +++ b/SimTracker/TrackTriggerAssociation/src/StubAssociation.cc @@ -60,7 +60,7 @@ namespace tt { // Get all TPs that are matched to these stubs in at least 'tpMinLayers' layers and 'tpMinLayersPS' ps layers vector tpPtrs = associate(ttStubRefs); // remove TPs with more then 'tpMaxBadStubs2S' not associated 2S stubs and more then 'tpMaxBadStubsPS' not associated PS stubs - auto check = [this, ttStubRefs](const TPPtr& tpPtr) { + auto check = [this, &ttStubRefs](const TPPtr& tpPtr) { int bad2S(0); int badPS(0); for (const TTStubRef& ttStubRef : ttStubRefs) { @@ -76,4 +76,4 @@ namespace tt { return tpPtrs; } -} // namespace tt \ No newline at end of file +} // namespace tt