From 0845af314dd0fab48af3247c3a426031b63d515a Mon Sep 17 00:00:00 2001 From: Felice Date: Fri, 17 Jul 2020 15:00:51 +0200 Subject: [PATCH] Reset at the end of produce --- .../HGCalRecProducers/plugins/HGCalLayerClusterProducer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RecoLocalCalo/HGCalRecProducers/plugins/HGCalLayerClusterProducer.cc b/RecoLocalCalo/HGCalRecProducers/plugins/HGCalLayerClusterProducer.cc index bc5c7d90692b2..fba15664ae202 100644 --- a/RecoLocalCalo/HGCalRecProducers/plugins/HGCalLayerClusterProducer.cc +++ b/RecoLocalCalo/HGCalRecProducers/plugins/HGCalLayerClusterProducer.cc @@ -133,8 +133,6 @@ void HGCalLayerClusterProducer::produce(edm::Event& evt, const edm::EventSetup& clusters_sharing(new std::vector); auto density = std::make_unique(); - algo->reset(); - algo->getEventSetup(es); //make a map detid-rechit @@ -246,6 +244,7 @@ void HGCalLayerClusterProducer::produce(edm::Event& evt, const edm::EventSetup& clusterPtrsSharing.push_back(ptr); } } + algo->reset(); } #endif