Skip to content

Commit

Permalink
rename TopLHEFilter -> LHEJetFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto Hindrichs committed Aug 20, 2019
1 parent 412e613 commit 0435ac1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FWCore.ParameterSet.Config as cms

TopLHEFilter = cms.EDFilter('TopLHEFilter',
LHEJetFilter = cms.EDFilter('LHEJetFilter',
jetPtMin = cms.double(350.),
jetR = cms.double(0.8),
src = cms.InputTag('externalLHEProducer')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
using namespace std;
using namespace fastjet;

class TopLHEFilter : public edm::EDFilter
class LHEJetFilter : public edm::EDFilter
{
public:
explicit TopLHEFilter(const edm::ParameterSet&);
virtual ~TopLHEFilter() {}
explicit LHEJetFilter(const edm::ParameterSet&);
virtual ~LHEJetFilter() {}

private:
bool filter(edm::Event&, const edm::EventSetup&) override;
Expand All @@ -38,17 +38,16 @@ class TopLHEFilter : public edm::EDFilter

};

TopLHEFilter::TopLHEFilter(const edm::ParameterSet& params)
LHEJetFilter::LHEJetFilter(const edm::ParameterSet& params)
: tokenLHEEvent_(consumes<LHEEventProduct>(params.getParameter<edm::InputTag>("src"))),
jetPtMin_(params.getParameter<double>("jetPtMin")),
jetdef_(antikt_algorithm, params.getParameter<double>("jetR"))
{

}

bool TopLHEFilter::filter(edm::Event& evt, const edm::EventSetup& params)
bool LHEJetFilter::filter(edm::Event& evt, const edm::EventSetup& params)
{

edm::Handle<LHEEventProduct> lheinfo;
evt.getByToken(tokenLHEEvent_, lheinfo);

Expand All @@ -75,4 +74,4 @@ bool TopLHEFilter::filter(edm::Event& evt, const edm::EventSetup& params)
}

// Define module as a plug-in
DEFINE_FWK_MODULE(TopLHEFilter);
DEFINE_FWK_MODULE(LHEJetFilter);

0 comments on commit 0435ac1

Please sign in to comment.