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

Bring back GEDGsfElectronFinalizer to be a stream module, instead of a global one #28853

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"

class GEDGsfElectronFinalizer : public edm::global::EDProducer<> {
class GEDGsfElectronFinalizer : public edm::stream::EDProducer<> {
public:
explicit GEDGsfElectronFinalizer(const edm::ParameterSet&);

void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
void produce(edm::Event&, const edm::EventSetup&) override;

private:
const edm::EDGetTokenT<reco::GsfElectronCollection> previousGsfElectrons_;
Expand Down Expand Up @@ -50,7 +50,7 @@ GEDGsfElectronFinalizer::GEDGsfElectronFinalizer(const edm::ParameterSet& cfg)
}
}

void GEDGsfElectronFinalizer::produce(edm::StreamID, edm::Event& event, const edm::EventSetup& setup) const {
void GEDGsfElectronFinalizer::produce(edm::Event& event, const edm::EventSetup& setup) {
// Output collection
reco::GsfElectronCollection outputElectrons;

Expand Down