Skip to content

Commit 05c40a3

Browse files
committed
Thread friendly modules in JetMETCorrections/IsolatedParticles
Changed modules to edm::one::EDAnalyzer. This fixes the CMS deprecation warnings.
1 parent 9166b25 commit 05c40a3

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

JetMETCorrections/IsolatedParticles/test/TestIsoSimTracks.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// user include files
2222
#include "FWCore/Framework/interface/Frameworkfwd.h"
23-
#include "FWCore/Framework/interface/EDAnalyzer.h"
23+
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
2424

2525
#include "FWCore/Framework/interface/Event.h"
2626
#include "FWCore/Framework/interface/EventSetup.h"
@@ -77,13 +77,12 @@
7777
#include "TH1F.h"
7878
#include <TFile.h>
7979

80-
class TestIsoSimTracks : public edm::EDAnalyzer {
80+
class TestIsoSimTracks : public edm::one::EDAnalyzer<> {
8181
public:
8282
explicit TestIsoSimTracks(const edm::ParameterSet&);
83-
virtual ~TestIsoSimTracks(){};
8483

85-
virtual void analyze(const edm::Event&, const edm::EventSetup&);
86-
void endJob(void);
84+
void analyze(const edm::Event&, const edm::EventSetup&) override;
85+
void endJob() override;
8786

8887
private:
8988
TFile* m_Hfile;

JetMETCorrections/IsolatedParticles/test/TestIsoTracks.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// user include files
2222
#include "FWCore/Framework/interface/Frameworkfwd.h"
23-
#include "FWCore/Framework/interface/EDAnalyzer.h"
23+
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
2424

2525
#include "FWCore/Framework/interface/Event.h"
2626
#include "FWCore/Framework/interface/EventSetup.h"
@@ -91,15 +91,14 @@
9191
using namespace std;
9292
using namespace reco;
9393

94-
class TestIsoTracks : public edm::EDAnalyzer {
94+
class TestIsoTracks : public edm::one::EDAnalyzer<> {
9595
public:
9696
explicit TestIsoTracks(const edm::ParameterSet&);
97-
virtual ~TestIsoTracks(){};
9897

9998
void setPrimaryVertex(const reco::Vertex& a) { theRecVertex = a; }
10099
void setTracksFromPrimaryVertex(vector<reco::Track>& a) { theTrack = a; }
101-
virtual void analyze(const edm::Event&, const edm::EventSetup&);
102-
void endJob(void);
100+
void analyze(const edm::Event&, const edm::EventSetup&) override;
101+
void endJob() override;
103102

104103
private:
105104
TFile* m_Hfile;

0 commit comments

Comments
 (0)