Public Member Functions | |
TtFullHadHypGenMatch (const edm::ParameterSet &cfg) | |
Public Member Functions inherited from TtFullHadHypothesis | |
TtFullHadHypothesis (const edm::ParameterSet &cfg) | |
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 Attributes | |
edm::EDGetTokenT< TtGenEvent > | genEvtToken_ |
Protected Attributes inherited from TtFullHadHypothesis | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | b_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | bBar_ |
bool | getMatch_ |
std::string | jetCorrectionLevel_ |
edm::EDGetTokenT< std::vector< pat::Jet > > | jetsToken_ |
input label for all necessary collections More... | |
int | key_ |
hypothesis key (to be set by the buildKey function) More... | |
std::unique_ptr< reco::ShallowClonePtrCandidate > | lightP_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | lightPBar_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | lightQ_ |
std::unique_ptr< reco::ShallowClonePtrCandidate > | lightQBar_ |
edm::EDGetTokenT< std::vector< std::vector< int > > > | matchToken_ |
Private Member Functions | |
void | buildHypo (edm::Event &evt, const edm::Handle< std::vector< pat::Jet > > &jets, 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... | |
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 TtFullHadHypothesis | |
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... | |
std::string | jetCorrectionLevel (const std::string &quarkType) |
helper function to construct the proper correction level string for corresponding quarkType 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 5 of file TtFullHadHypGenMatch.cc.
|
explicit |
Definition at line 22 of file TtFullHadHypGenMatch.cc.
|
overrideprivatevirtual |
build event hypothesis from the reco objects of a semi-leptonic event
Implements TtFullHadHypothesis.
Definition at line 25 of file TtFullHadHypGenMatch.cc.
References funct::abs(), TtFullHadEvtPartons::B, TtFullHadHypothesis::b_, TtFullHadEvtPartons::BBar, TtFullHadHypothesis::bBar_, TtGenEvtProducer_cfi::genEvt, genEvtToken_, edm::Event::getByToken(), heavyIonCSV_trainingSettings::idx, TtFullHadHypothesis::isValid(), TtFullHadHypothesis::jetCorrectionLevel(), singleTopDQM_cfi::jets, TtFullHadEvtPartons::LightP, TtFullHadHypothesis::lightP_, TtFullHadEvtPartons::LightPBar, TtFullHadHypothesis::lightPBar_, TtFullHadEvtPartons::LightQ, TtFullHadHypothesis::lightQ_, TtFullHadEvtPartons::LightQBar, TtFullHadHypothesis::lightQBar_, TtFullHadHypothesis::makeCandidate(), and match().
|
inlineoverrideprivatevirtual |
build the event hypothesis key
Implements TtFullHadHypothesis.
Definition at line 11 of file TtFullHadHypGenMatch.cc.
References TtFullHadHypothesis::key_, and TtEvent::kGenMatch.
|
protected |
Definition at line 19 of file TtFullHadHypGenMatch.cc.
Referenced by buildHypo().