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