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

Fix CMS deprecation warnings in RecoEgamma subsystem #39801

Merged
merged 1 commit into from Oct 31, 2022
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
12 changes: 3 additions & 9 deletions RecoEgamma/EgammaElectronProducers/test/GEDValueMapAnalyzer.cc
Expand Up @@ -3,19 +3,17 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"

#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/Common/interface/ValueMap.h"

#include <iostream>

class GEDValueMapAnalyzer : public edm::EDAnalyzer {
class GEDValueMapAnalyzer : public edm::one::EDAnalyzer<> {
public:
GEDValueMapAnalyzer(const edm::ParameterSet&);
~GEDValueMapAnalyzer();
virtual void beginRun(edm::Run const&, edm::EventSetup const&);
virtual void analyze(const edm::Event& iEvent, const edm::EventSetup& c);
void analyze(const edm::Event& iEvent, const edm::EventSetup& c) override;

private:
edm::InputTag inputTagValueMapElectrons_;
Expand All @@ -27,10 +25,6 @@ GEDValueMapAnalyzer::GEDValueMapAnalyzer(const edm::ParameterSet& iConfig) {
inputTagValueMapElectrons_ = iConfig.getParameter<edm::InputTag>("ElectronValueMap");
}

GEDValueMapAnalyzer::~GEDValueMapAnalyzer() { ; }

void GEDValueMapAnalyzer::beginRun(edm::Run const&, edm::EventSetup const&) { ; }

void GEDValueMapAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& c) {
edm::Handle<reco::PFCandidateCollection> pfCandidatesH;
bool found = iEvent.getByLabel(inputTagPFCandidates_, pfCandidatesH);
Expand Down
9 changes: 3 additions & 6 deletions RecoEgamma/EgammaIsolationAlgos/test/TestEgammaTowerIso.cc
@@ -1,4 +1,4 @@
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand All @@ -7,16 +7,13 @@

#include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"

struct TestEgammaTowerIsolation : public edm::EDAnalyzer {
struct TestEgammaTowerIsolation : public edm::one::EDAnalyzer<> {
explicit TestEgammaTowerIsolation(const edm::ParameterSet&) {}
~TestEgammaTowerIsolation() {}

// static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

private:
virtual void beginJob() {}
virtual void analyze(const edm::Event&, const edm::EventSetup&);
virtual void endJob() {}
void analyze(const edm::Event&, const edm::EventSetup&) override;

std::string towerLabel = "towerMaker";
};
Expand Down