84 m_ptcut(iConfig.getParameter<double>(
"ptCut")),
85 m_etamaxcut(iConfig.getParameter<double>(
"maxRapidityCut")),
86 m_njetmin(iConfig.getParameter<unsigned
int>(
"nJetMin")),
113 bool selected =
false;
121 unsigned int goodjets = 0;
123 for(
unsigned int ijet=0;ijet<jetcoll->size();++ijet) {
127 LogDebug(
"JetUnderTest") <<
"Jet with eta = " << jet->eta() <<
" and pt = " << jet->pt() <<
" under test";
131 LogDebug(
"JetUnderTest") <<
"kincut passed";
138 bool goodjet =
m_jetIDfunc((*jetcoll)[ijet],jetid,ret);
141 LogDebug(
"JetUnderTest") <<
"JetID passed";
ProductID id() const
Accessor for product ID.
bool contains(ProductID id) const
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
JetIDSelectionFunctor m_jetIDfunc
SimpleJetFilter(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Jet selector for pat::Jets and for CaloJets.
strbitset & set(bool val=true)
set method of all bits
bool filter(edm::Event &, const edm::EventSetup &) override
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
~SimpleJetFilter() override
edm::InputTag m_jetCollection