Public Member Functions | |
TtFullLepHypGenMatch (const edm::ParameterSet &) | |
Public Member Functions inherited from TtFullLepHypothesis | |
TtFullLepHypothesis (const edm::ParameterSet &) | |
default constructor More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Private Member Functions | |
void | buildHypo (edm::Event &evt, const edm::Handle< std::vector< pat::Electron > > &elecs, const edm::Handle< std::vector< pat::Muon > > &mus, const edm::Handle< std::vector< pat::Jet > > &jets, const edm::Handle< std::vector< pat::MET > > &mets, std::vector< int > &match, const unsigned int iComb) override |
build event hypothesis from the reco objects of a semi-leptonic event More... | |
void | buildKey () override |
build the event hypothesis key More... | |
void | buildMatchingNeutrinos (edm::Event &, const edm::Handle< std::vector< pat::MET > > &) |
template<typename O > | |
int | findMatchingLepton (const reco::GenParticle *, const edm::Handle< std::vector< O > > &) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Protected Member Functions inherited from TtFullLepHypothesis | |
reco::CompositeCandidate | hypo () |
return event hypothesis More... | |
bool | isValid (const int &idx, const edm::Handle< std::vector< pat::Jet > > &jets) |
check if index is in valid range of selected jets More... | |
int | key () const |
return key More... | |
template<typename C > | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | makeCandidate (const edm::Handle< C > &handle, const int &idx) |
use one object in a collection to set a ShallowClonePtrCandidate More... | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | makeCandidate (const edm::Handle< std::vector< pat::Jet > > &handle, const int &idx, const std::string &correctionLevel) |
use one object in a jet collection to set a ShallowClonePtrCandidate with proper jet corrections More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
produce the event hypothesis as CompositeCandidate and Key More... | |
void | resetCandidates () |
reset candidate pointers before hypo build process More... | |
Definition at line 7 of file TtFullLepHypGenMatch.cc.
|
explicit |
Definition at line 31 of file TtFullLepHypGenMatch.cc.
|
overrideprivatevirtual |
build event hypothesis from the reco objects of a semi-leptonic event
Implements TtFullLepHypothesis.
Definition at line 34 of file TtFullLepHypGenMatch.cc.
References TtFullLepEvtPartons::B, TtFullLepHypothesis::b_, TtFullLepEvtPartons::BBar, TtFullLepHypothesis::bBar_, buildMatchingNeutrinos(), singleTopDQM_cfi::elecs, findMatchingLepton(), TtGenEvtProducer_cfi::genEvt, genEvtToken_, edm::Event::getByToken(), heavyIonCSV_trainingSettings::idx, TtFullLepHypothesis::isValid(), TtFullLepHypothesis::jetCorrectionLevel_, PDWG_EXODelayedJetMET_cff::jets, WDecay::kElec, WDecay::kMuon, TtFullLepHypothesis::lepton_, TtFullLepHypothesis::leptonBar_, TtFullLepHypothesis::makeCandidate(), match(), and singleTopDQM_cfi::mets.
|
inlineoverrideprivatevirtual |
build the event hypothesis key
Implements TtFullLepHypothesis.
Definition at line 13 of file TtFullLepHypGenMatch.cc.
References TtFullLepHypothesis::key_, and TtEvent::kGenMatch.
|
private |
Definition at line 152 of file TtFullLepHypGenMatch.cc.
References TtGenEvtProducer_cfi::genEvt, genEvtToken_, edm::Event::getByToken(), singleTopDQM_cfi::mets, TtFullLepHypothesis::recNu, TtFullLepHypothesis::recNuBar, and mathSSE::sqrt().
Referenced by buildHypo().
|
private |
Definition at line 138 of file TtFullLepHypGenMatch.cc.
References PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, reco::LeafCandidate::eta(), mps_fire::i, heavyIonCSV_trainingSettings::idx, TtSemiLepHitFitProducer_Electrons_cfi::leps, HLT_2024v12_cff::minDR, and reco::LeafCandidate::phi().
Referenced by buildHypo().
|
protected |
Definition at line 28 of file TtFullLepHypGenMatch.cc.
Referenced by buildHypo(), and buildMatchingNeutrinos().