Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JetMETCorrections/Objects: replace auto_ptr removed in strict std=c++17 #24720

Merged
merged 1 commit into from Sep 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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