57 virtual void endJob()
override ;
82 m_jetCollection(iConfig.getParameter<edm::
InputTag>(
"jetCollection")),
83 m_jetIDMap(iConfig.getParameter<edm::
InputTag>(
"jetIDMap")),
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";
133 if(jetIDmap->contains(jet.
id())) {
138 bool goodjet =
m_jetIDfunc((*jetcoll)[ijet],jetid,ret);
141 LogDebug(
"JetUnderTest") <<
"JetID passed";
virtual void endJob() override
#define DEFINE_FWK_MODULE(type)
ProductID id() const
Accessor for product ID.
Abs< T >::type abs(const T &t)
JetIDSelectionFunctor m_jetIDfunc
SimpleJetFilter(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginJob() override
Jet selector for pat::Jets and for CaloJets.
strbitset & set(bool val=true)
set method of all bits
virtual bool filter(edm::Event &, const edm::EventSetup &) override
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
edm::InputTag m_jetCollection