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/Type1MET: replace auto_ptr removed in strict std=c++17 #24722

Merged
merged 1 commit into from Sep 28, 2018
Merged
Show file tree
Hide file tree
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
Expand Up @@ -78,7 +78,7 @@ class CorrectedPatMETProducer : public edm::stream::EDProducer<>


if(isMiniAod){
//std::auto_ptr<patMETCollection> product(new patMETCollection);
//std::unique_ptr<patMETCollection> product(new patMETCollection);
std::unique_ptr<patMETCollection> product(new patMETCollection);
const reco::MET& srcMET = (*srcPatMETCollection)[0];
pat::MET outMEtPat = corrector.getCorrectedMET(srcMET, evt, es);
Expand Down
Expand Up @@ -83,7 +83,7 @@ void MultShiftMETcorrDBInputProducer::produce(edm::Event& evt, const edm::EventS


//loop over all constituent types and sum each correction
//std::auto_ptr<CorrMETData> metCorr(new CorrMETData());
//std::unique_ptr<CorrMETData> metCorr(new CorrMETData());
std::unique_ptr<CorrMETData> metCorr(new CorrMETData());

double corx=0.;
Expand Down