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

Make HiGenCleaner a global module #29102

Merged
merged 1 commit into from Mar 6, 2020
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
16 changes: 8 additions & 8 deletions RecoHI/HiJetAlgos/interface/HiGenCleaner.h
Expand Up @@ -24,7 +24,7 @@

// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/global/EDProducer.h"

#include "FWCore/Framework/interface/Event.h"

Expand All @@ -38,21 +38,21 @@
//

template <class T2>
class HiGenCleaner : public edm::EDProducer {
class HiGenCleaner : public edm::global::EDProducer<> {
public:
typedef std::vector<T2> T2Collection;
explicit HiGenCleaner(const edm::ParameterSet&);
~HiGenCleaner() override;

private:
void produce(edm::Event&, const edm::EventSetup&) override;
void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
// ----------member data ---------------------------

edm::EDGetTokenT<edm::View<T2> > jetSrc_;
double deltaR_;
double ptCut_;
bool makeNew_;
bool fillDummy_;
const edm::EDGetTokenT<edm::View<T2> > jetSrc_;
const double deltaR_;
const double ptCut_;
const bool makeNew_;
const bool fillDummy_;
};

#endif
2 changes: 1 addition & 1 deletion RecoHI/HiJetAlgos/src/HiGenCleaner.cc
Expand Up @@ -82,7 +82,7 @@ HiGenCleaner<T2>::~HiGenCleaner() {

// ------------ method called to produce the data ------------
template <class T2>
void HiGenCleaner<T2>::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
void HiGenCleaner<T2>::produce(edm::StreamID, edm::Event& iEvent, const edm::EventSetup& iSetup) const {
using namespace edm;
using namespace reco;

Expand Down