#include <TtFullLepHypothesis.h>
Public Member Functions | |
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 |
Protected Member Functions | |
virtual 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)=0 |
build event hypothesis from the reco objects of a semi-leptonic event More... | |
virtual void | buildKey ()=0 |
build the event hypothesis key More... | |
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 | |
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 |
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 |
Definition at line 34 of file TtFullLepHypothesis.h.
|
explicit |
default constructor
Definition at line 5 of file TtFullLepHypothesis.cc.
References looper::cfg, getMatch_, jetCorrectionLevel_, matchToken_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protectedpure virtual |
build event hypothesis from the reco objects of a semi-leptonic event
Implemented in TtFullLepHypGenMatch, and TtFullLepHypKinSolution.
Referenced by produce().
|
protectedpure virtual |
build the event hypothesis key
Implemented in TtFullLepHypGenMatch, and TtFullLepHypKinSolution.
Referenced by produce().
|
protected |
return event hypothesis
Definition at line 89 of file TtFullLepHypothesis.cc.
References reco::CompositeCandidate::addDaughter(), TtFullLepDaughter::B, b_, TtFullLepDaughter::BBar, bBar_, key(), TtEvent::kGenMatch, TtEvent::kKinSolution, TtFullLepDaughter::Lep, TtFullLepDaughter::LepBar, lepton_, leptonBar_, eostools::move(), neutrino_, neutrinoBar_, TtFullLepDaughter::Nu, TtFullLepDaughter::NuBar, recNu, recNuBar, AddFourMomenta::set(), TtFullHadDaughter::Top, TtFullLepDaughter::Top, TtFullLepDaughter::TopBar, TtFullHadDaughter::TopBar, TtFullLepDaughter::WMinus, TtFullHadDaughter::WMinus, TtFullLepDaughter::WPlus, and TtFullHadDaughter::WPlus.
Referenced by produce().
|
inlineprotected |
check if index is in valid range of selected jets
Definition at line 56 of file TtFullLepHypothesis.h.
References heavyIonCSV_trainingSettings::idx, and singleTopDQM_cfi::jets.
Referenced by ntupleDataFormat._Object::_checkIsValid(), TtFullLepHypGenMatch::buildHypo(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inlineprotected |
return key
Definition at line 52 of file TtFullLepHypothesis.h.
References key_.
Referenced by hypo(), and produce().
|
protected |
use one object in a collection to set a ShallowClonePtrCandidate
Definition at line 109 of file TtFullLepHypothesis.h.
References patZpeak::handle, and heavyIonCSV_trainingSettings::idx.
Referenced by TtFullLepHypKinSolution::buildHypo(), and TtFullLepHypGenMatch::buildHypo().
|
protected |
use one object in a jet collection to set a ShallowClonePtrCandidate with proper jet corrections
Definition at line 143 of file TtFullLepHypothesis.cc.
References reco::LeafCandidate::charge(), pat::Jet::correctedJet(), patZpeak::handle, heavyIonCSV_trainingSettings::idx, jetCorrectionLevel_, reco::LeafCandidate::p4(), and reco::LeafCandidate::vertex().
|
overrideprotected |
produce the event hypothesis as CompositeCandidate and Key
Definition at line 27 of file TtFullLepHypothesis.cc.
References buildHypo(), buildKey(), singleTopDQM_cfi::elecs, elecsToken_, edm::Event::getByToken(), getMatch_, hypo(), mps_fire::i, singleTopDQM_cfi::jets, jetsToken_, key(), match(), matchToken_, singleTopDQM_cfi::mets, metsToken_, eostools::move(), musToken_, edm::Event::put(), resetCandidates(), and trackerHitRTTI::vector.
|
protected |
reset candidate pointers before hypo build process
Definition at line 78 of file TtFullLepHypothesis.cc.
References b_, bBar_, lepton_, leptonBar_, neutrino_, and neutrinoBar_.
Referenced by produce().
|
protected |
Definition at line 95 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), TtFullLepHypGenMatch::buildHypo(), hypo(), and resetCandidates().
|
protected |
Definition at line 96 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), TtFullLepHypGenMatch::buildHypo(), hypo(), and resetCandidates().
|
protected |
Definition at line 82 of file TtFullLepHypothesis.h.
Referenced by produce().
|
protected |
internal check whether the match information exists or not, if false a blind dummy match vector will be used internally
Definition at line 79 of file TtFullLepHypothesis.h.
Referenced by produce(), and TtFullLepHypothesis().
|
protected |
specify the desired jet correction level (the default should be L3Absolute-'abs')
Definition at line 88 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), TtFullLepHypGenMatch::buildHypo(), makeCandidate(), and TtFullLepHypothesis().
|
protected |
Definition at line 84 of file TtFullLepHypothesis.h.
Referenced by produce().
|
protected |
hypothesis key (to be set by the buildKey function)
Definition at line 90 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildKey(), TtFullLepHypGenMatch::buildKey(), and key().
|
protected |
candidates for internal use for the creation of the hypothesis candidate
Definition at line 93 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), TtFullLepHypGenMatch::buildHypo(), hypo(), and resetCandidates().
|
protected |
Definition at line 94 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), TtFullLepHypGenMatch::buildHypo(), hypo(), and resetCandidates().
|
protected |
input label for all necessary collections
Definition at line 81 of file TtFullLepHypothesis.h.
Referenced by produce(), and TtFullLepHypothesis().
|
protected |
Definition at line 85 of file TtFullLepHypothesis.h.
Referenced by produce().
|
protected |
Definition at line 83 of file TtFullLepHypothesis.h.
Referenced by produce().
|
protected |
Definition at line 97 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), hypo(), and resetCandidates().
|
protected |
Definition at line 98 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypKinSolution::buildHypo(), hypo(), and resetCandidates().
|
protected |
candidates needed for the genmatch hypothesis
Definition at line 102 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypGenMatch::buildMatchingNeutrinos(), and hypo().
|
protected |
Definition at line 103 of file TtFullLepHypothesis.h.
Referenced by TtFullLepHypGenMatch::buildMatchingNeutrinos(), and hypo().