Skip to content

Commit

Permalink
Merge pull request #24720 from gartung/JetMETCorrections-Objects-stri…
Browse files Browse the repository at this point in the history
…ctcxx17

JetMETCorrections/Objects: replace auto_ptr removed in strict std=c++17
  • Loading branch information
cmsbuild committed Sep 28, 2018
2 parents fa3f8d6 + 0f7468f commit 8f7cc5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JetMETCorrections/Objects/src/ChainedJetCorrector.cc
Expand Up @@ -22,7 +22,7 @@ double ChainedJetCorrector::correction (const LorentzVector& fJet) const
/// apply correction using Jet information only
double ChainedJetCorrector::correction (const reco::Jet& fJet) const
{
std::auto_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
std::unique_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
double result = 1;
for (size_t i = 0; i < mCorrectors.size (); ++i) {
double scale = mCorrectors[i]->correction (*jet);
Expand All @@ -37,7 +37,7 @@ double ChainedJetCorrector::correction (const reco::Jet& fJet,
const edm::Event& fEvent,
const edm::EventSetup& fSetup) const
{
std::auto_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
std::unique_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
double result = 1;
for (size_t i = 0; i < mCorrectors.size (); ++i) {
double scale = mCorrectors[i]->correction (*jet, fEvent, fSetup);
Expand All @@ -52,7 +52,7 @@ double ChainedJetCorrector::correction (const reco::Jet& fJet,
const edm::Event& fEvent,
const edm::EventSetup& fSetup) const
{
std::auto_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
std::unique_ptr<reco::Jet> jet (dynamic_cast<reco::Jet*> (fJet.clone ()));
double result = 1;
for (size_t i = 0; i < mCorrectors.size (); ++i) {
double scale = mCorrectors[i]->correction (*jet, fJetRef, fEvent, fSetup);
Expand Down

0 comments on commit 8f7cc5b

Please sign in to comment.