Description: Produces a value map of jet—> jet Id
Implementation: There are two modes: AOD only, in which case only a subset of the info is written, and RECO, when all the info is written. The AOD-only case will be suitable for the "very loose" jet ID, whereas the RECO case will be globally suitable.
Definition at line 46 of file JetIDProducer.h.
Implements edm::EDProducer.
Definition at line 38 of file JetIDProducer.cc.
References reco::helper::JetIDHelper::approximatefHPD(), reco::helper::JetIDHelper::approximatefRBX(), reco::helper::JetIDHelper::calculate(), reco::helper::JetMuonHitsIDHelper::calculate(), reco::helper::JetIDHelper::fEB(), reco::helper::JetIDHelper::fEE(), reco::helper::JetIDHelper::fHB(), reco::helper::JetIDHelper::fHE(), reco::helper::JetIDHelper::fHFOOT(), reco::helper::JetIDHelper::fHO(), reco::helper::JetIDHelper::fHPD(), edm::helper::Filler< Map >::fill(), reco::helper::JetIDHelper::fLong(), reco::helper::JetIDHelper::fLSbad(), reco::helper::JetIDHelper::fRBX(), reco::helper::JetIDHelper::fShort(), reco::helper::JetIDHelper::fSubDetector1(), reco::helper::JetIDHelper::fSubDetector2(), reco::helper::JetIDHelper::fSubDetector3(), reco::helper::JetIDHelper::fSubDetector4(), edm::Event::getByLabel(), helper_, reco::helper::JetIDHelper::hitsInN90(), edm::helper::Filler< Map >::insert(), muHelper_, reco::helper::JetIDHelper::n90Hits(), reco::helper::JetIDHelper::nECALTowers(), reco::helper::JetIDHelper::nHCALTowers(), reco::helper::JetMuonHitsIDHelper::numberOfHits2RPC(), reco::helper::JetMuonHitsIDHelper::numberOfHits3RPC(), reco::helper::JetMuonHitsIDHelper::numberOfHitsRPC(), edm::Event::put(), reco::helper::JetIDHelper::restrictedEMF(), and src_.
51 size_t njets = h_jets->size();
52 std::vector<reco::JetID> ids (njets);
56 jetsEnd = h_jets->end(),
58 ijet != jetsEnd; ++ijet ) {
95 filler.insert( h_jets, ids.begin(), ids.end() );
101 iEvent.
put( jetIdValueMap );
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
double approximatefRBX() const
double fSubDetector4() const
reco::helper::JetIDHelper helper_
double restrictedEMF() const
double fSubDetector1() const
void calculate(const edm::Event &event, const edm::EventSetup &isetup, const reco::Jet &jet, const int iDbg=0)
double approximatefHPD() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double fSubDetector3() const
reco::helper::JetMuonHitsIDHelper muHelper_
int numberOfHits3RPC() const
double fSubDetector2() const
int numberOfHits2RPC() const
int numberOfHitsRPC() const
void calculate(const edm::Event &event, const reco::CaloJet &jet, const int iDbg=0)