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 45 of file JetIDProducer.h.
Definition at line 41 of file JetIDProducer.cc.
References reco::helper::JetIDHelper::approximatefHPD(), reco::helper::JetIDHelper::approximatefRBX(), reco::helper::JetMuonHitsIDHelper::calculate(), reco::helper::JetIDHelper::calculate(), DEFINE_FWK_MODULE, 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(), objects.autophobj::filler, 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::getByToken(), helper_, reco::helper::JetIDHelper::hitsInN90(), electrons_cff::ids, input_jet_token_, eostools::move(), 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(), and reco::helper::JetIDHelper::restrictedEMF().
49 auto jetIdValueMap = std::make_unique<reco::JetIDValueMap>();
54 size_t njets = h_jets->size();
55 std::vector<reco::JetID>
ids (njets);
59 jetsEnd = h_jets->end(),
61 ijet != jetsEnd; ++ijet ) {
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double approximatefRBX() const
double fSubDetector4() const
reco::helper::JetIDHelper helper_
double restrictedEMF() const
void calculate(const edm::Event &event, const edm::EventSetup &setup, const reco::CaloJet &jet, const int iDbg=0)
double fSubDetector1() const
void calculate(const edm::Event &event, const edm::EventSetup &isetup, const reco::Jet &jet, const int iDbg=0)
double approximatefHPD() const
double fSubDetector3() const
reco::helper::JetMuonHitsIDHelper muHelper_
int numberOfHits3RPC() const
double fSubDetector2() const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::CaloJet > > input_jet_token_
int numberOfHits2RPC() const
int numberOfHitsRPC() const