Skip to content

Commit

Permalink
Remove SharedResources
Browse files Browse the repository at this point in the history
  • Loading branch information
mseidel42 committed Jun 16, 2023
1 parent 92ecc9d commit db427eb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "Rivet/AnalysisHandler.hh"
#include "GeneratorInterface/RivetInterface/interface/RivetAnalysis.h"

class ParticleLevelProducer : public edm::one::EDProducer<edm::one::SharedResources> {
class ParticleLevelProducer : public edm::one::EDProducer<> {
public:
ParticleLevelProducer(const edm::ParameterSet& pset);
~ParticleLevelProducer() override {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string>

class RivetAnalyzer
: public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::SharedResources> {
: public edm::one::EDAnalyzer<edm::one::WatchRuns> {
public:
RivetAnalyzer(const edm::ParameterSet &);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ using namespace Rivet;
using namespace edm;
using namespace std;

class HTXSRivetProducer : public edm::one::EDProducer<edm::one::WatchRuns, edm::one::SharedResources> {
class HTXSRivetProducer : public edm::one::EDProducer<edm::one::WatchRuns> {
public:
explicit HTXSRivetProducer(const edm::ParameterSet& cfg)
: _hepmcCollection(consumes<HepMCProduct>(cfg.getParameter<edm::InputTag>("HepMCCollection"))),
_lheRunInfo(consumes<LHERunInfoProduct, edm::InRun>(cfg.getParameter<edm::InputTag>("LHERunInfo"))) {
usesResource("Rivet");
_prodMode = cfg.getParameter<string>("ProductionMode");
m_HiggsProdMode = HTXS::UNKNOWN;
_HTXS = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ using namespace Rivet;

ParticleLevelProducer::ParticleLevelProducer(const edm::ParameterSet& pset)
: srcToken_(consumes<edm::HepMCProduct>(pset.getParameter<edm::InputTag>("src"))), pset_(pset) {
usesResource("Rivet");
genVertex_ = reco::Particle::Point(0, 0, 0);

produces<reco::GenParticleCollection>("neutrinos");
Expand Down
1 change: 0 additions & 1 deletion GeneratorInterface/RivetInterface/plugins/RivetAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ RivetAnalyzer::RivetAnalyzer(const edm::ParameterSet& pset)
_doFinalize(pset.getParameter<bool>("DoFinalize")),
_lheLabel(pset.getParameter<edm::InputTag>("LHECollection")),
_xsection(-1.) {
usesResource("Rivet");

_hepmcCollection = consumes<HepMCProduct>(pset.getParameter<edm::InputTag>("HepMCCollection"));
_genLumiInfoToken = consumes<GenLumiInfoHeader, edm::InLumi>(pset.getParameter<edm::InputTag>("genLumiInfo"));
Expand Down

0 comments on commit db427eb

Please sign in to comment.