Public Member Functions | |
TtFullLepHypKinSolution (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 full-leptonic event More... | |
void | buildKey () override |
build the event hypothesis key More... | |
Private Attributes | |
edm::EDGetTokenT< std::vector< reco::LeafCandidate > > | nuBarsToken_ |
edm::EDGetTokenT< std::vector< reco::LeafCandidate > > | nusToken_ |
edm::EDGetTokenT< std::vector< double > > | solWeightToken_ |
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... | |
Protected Attributes inherited from TtFullLepHypothesis | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | b_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | bBar_ |
edm::EDGetTokenT< std::vector< pat::Electron > > | elecsToken_ |
bool | getMatch_ |
std::string | jetCorrectionLevel_ |
edm::EDGetTokenT< std::vector< pat::Jet > > | jetsToken_ |
int | key_ |
hypothesis key (to be set by the buildKey function) More... | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | lepton_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | leptonBar_ |
edm::EDGetTokenT< std::vector< std::vector< int > > > | matchToken_ |
input label for all necessary collections More... | |
edm::EDGetTokenT< std::vector< pat::MET > > | metsToken_ |
edm::EDGetTokenT< std::vector< pat::Muon > > | musToken_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | neutrino_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | neutrinoBar_ |
std::unique_ptr< reco::LeafCandidate > | recNu |
candidates needed for the genmatch hypothesis More... | |
std::unique_ptr< reco::LeafCandidate > | recNuBar |
Definition at line 4 of file TtFullLepHypKinSolution.cc.
|
explicit |
Definition at line 26 of file TtFullLepHypKinSolution.cc.
|
overrideprivatevirtual |
build event hypothesis from the reco objects of a full-leptonic event
Implements TtFullLepHypothesis.
Definition at line 32 of file TtFullLepHypKinSolution.cc.
References TtFullLepHypothesis::b_, TtFullLepHypothesis::bBar_, singleTopDQM_cfi::elecs, edm::Event::getByToken(), TtFullLepHypothesis::jetCorrectionLevel_, PDWG_EXODelayedJetMET_cff::jets, TtFullLepHypothesis::lepton_, TtFullLepHypothesis::leptonBar_, TtFullLepHypothesis::makeCandidate(), match(), TtFullLepHypothesis::neutrino_, TtFullLepHypothesis::neutrinoBar_, nuBarsToken_, nusToken_, TtFullLepEvtBuilder_cfi::solWeight, and solWeightToken_.
|
inlineoverrideprivatevirtual |
build the event hypothesis key
Implements TtFullLepHypothesis.
Definition at line 10 of file TtFullLepHypKinSolution.cc.
References TtFullLepHypothesis::key_, and TtEvent::kKinSolution.
|
private |
Definition at line 22 of file TtFullLepHypKinSolution.cc.
Referenced by buildHypo().
|
private |
Definition at line 21 of file TtFullLepHypKinSolution.cc.
Referenced by buildHypo().
|
private |
Definition at line 23 of file TtFullLepHypKinSolution.cc.
Referenced by buildHypo().