From 5f706abdb8391694e87fc1d1bfe664df99538518 Mon Sep 17 00:00:00 2001 From: Matteo Date: Fri, 28 Feb 2014 23:57:12 +0100 Subject: [PATCH] move delete of energy corrector in destructor --- RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc b/RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc index 1af0888daeea6..56c443873fcc0 100644 --- a/RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc +++ b/RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc @@ -141,7 +141,7 @@ PhotonProducer::PhotonProducer(const edm::ParameterSet& config) : PhotonProducer::~PhotonProducer() { - + delete thePhotonEnergyCorrector_; //delete energyCorrectionF; } @@ -162,7 +162,6 @@ void PhotonProducer::endRun (edm::Run const& r, edm::EventSetup const & theEven delete thePhotonIsolationCalculator_; delete thePhotonMIPHaloTagger_; - delete thePhotonEnergyCorrector_; }