From 4485482c20bb5f149d56c3786fca1045909ed20e Mon Sep 17 00:00:00 2001 From: mmusich Date: Wed, 26 Jul 2023 16:14:08 +0200 Subject: [PATCH] clear badPixelDetsBarrel_ and badPixelDetsEndcap_ in PixelInactiveAreaFinder --- .../TkTrackingRegions/plugins/PixelInactiveAreaFinder.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RecoTracker/TkTrackingRegions/plugins/PixelInactiveAreaFinder.cc b/RecoTracker/TkTrackingRegions/plugins/PixelInactiveAreaFinder.cc index 13365df6e9fed..78263d106ee29 100644 --- a/RecoTracker/TkTrackingRegions/plugins/PixelInactiveAreaFinder.cc +++ b/RecoTracker/TkTrackingRegions/plugins/PixelInactiveAreaFinder.cc @@ -559,6 +559,10 @@ PixelInactiveAreaFinder::InactiveAreas PixelInactiveAreaFinder::inactiveAreas(co // assign data to instance variables updatePixelDets(iSetup); + + // clear the list of bad pixel modules at each event! + badPixelDetsBarrel_.clear(); + badPixelDetsEndcap_.clear(); getBadPixelDets(iEvent, iSetup); //write files for plotting