97 :
src_ (iConfig.getParameter<
edm::InputTag> (
"src"))
99 ,
jetIDMap_(iConfig.getUntrackedParameter<
edm::InputTag> (
"jetIDMap",
edm::InputTag(
"ak5JetID")))
104 produces<JetCollection>();
138 <<
"Expect quality to be one of MINIMAL, LOOSE_AOD, LOOSE, MEDIUM, TIGHT" << std::endl;
173 iend = jets->end(), iJet = ibegin;
174 iJet != iend; ++iJet ) {
180 const std::type_info &
type =
typeid((*jets)[
idx]);
184 reco::JetID const & jetId = (*hJetIDMap)[ jetRef ];
185 passed = (*jetIDFunctor)( calojet, jetId);
191 bool passingLoose=
false;
192 bool passingMedium=
false;
193 bool passingTight=
false;
194 bool ThisIsClean=
true;
197 && fabs(pfjet.
eta())<2.4) ThisIsClean=
false;
199 && fabs(pfjet.
eta())<2.4 ) ThisIsClean=
false;
229 "Criteria for jets other than CaloJets and PFJets are not yet implemented";
234 const T& goodJet =
static_cast<const T&
>((*jets)[
idx]);
256 cout<<
"++++++++++++++++++++++++++++++++++++++++++++++++++" 257 <<
"\n"<<
moduleLabel_ <<
"(JetIdSelector) SUMMARY:\n"<<ss.str()
258 <<
"++++++++++++++++++++++++++++++++++++++++++++++++++"
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Jets made from CaloTowers.
float chargedEmEnergy() const
chargedEmEnergy
JetIDSelectionFunctor * jetIDFunctor
virtual double eta() const final
momentum pseudorapidity
#define DEFINE_FWK_MODULE(type)
JetIdSelector< reco::CaloJet > CaloJetIdSelector
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
JetIdSelector(const edm::ParameterSet &iConfig)
int chargedMultiplicity() const
chargedMultiplicity
unsigned int nJetsPassed_
Jets made from PFObjects.
float neutralEmEnergy() const
neutralEmEnergy
JetIdSelector< reco::JPTJet > JPTJetIdSelector
Jets made from CaloJets corrected for ZSP and tracks.
virtual double energy() const final
energy
Jets made from MC generator particles.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Jet selector for pat::Jets and for CaloJets.
JetIdSelector< reco::GenJet > GenJetIdSelector
virtual int nConstituents() const
of constituents
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
float neutralHadronEnergy() const
neutralHadronEnergy
std::vector< T > JetCollection
JetIdSelector< reco::PFJet > PFJetIdSelector
float chargedHadronEnergy() const
chargedHadronEnergy